Powered By Blogger

Sunday, 1 December 2013

SOAPUI: Integration Helper for Salesforce

Recently I connected with hundred of developers. While taking to them, I felt that 75% of them were scared when it came to integration. So I thought to write this to make their life bit easier.

If you have a perfect WSDL file, which can be parsed easily in Saleforce, and you are the luckiest one. You can easily use generated wsdl classes for integrating Salesforce with other application. Picture starts when you have wsdl, but Salesforce is unable to parse it because of some constraints. 

Few common issues are:
  1. You have wsdl, but that is not in Salesforce supported format.
  2. You start modifying the wsdl to make it in Salesforce supported format, but it’s getting too hard and complex.
  3. Now you decide to go with HTTP request, but you don’t know the request body format.
  4. What you need to set in the request header?
  5. You have username and password, but you don’t know how to use that.
Please add your ones if I missed anything above.

SOAPUI: I would highly recommend downloading (http://www.soapui.org/Downloads/latest-release.html) and installing this tool. This allows you to create projects using WSDL files. When you create a project using wsdl, SOAPUI creates separate requests for each operation.

Creating a project in SOAPUI using wsdl

  1. Once you have been downloaded and installed SOAPUI, open soapui.
  2. Go to File -> New Project
  3. Choose your wsdl file and click on okay.
  4. You will see a new project is created in WSDL and it has all the operations.
  5. Select any operation and click on request1. It will show you complete request format.
  6. Now put your variables in request xml and hit the service.
  7. Click on Raw tab to see the request and response headers.
So now what you have all is:
EndPoint: As shown in screen-shot above
Method: Post
Content-Type: text/xml;charset=UTF-8
SOAP Action: As shown above
Request Body: As shown above

This is all enough to create your HTTP request in Salesforce and hit the endpoint. So how this will be implemented in Salesforce now:

You can create the requestBody string in Salesforce either by using the DOM class or you can also create a direct string like 
String requestBody = ‘<……..></…….>’;

//Request
HttpRequest request = new HttpRequest();
request.setEndpoint(endpoint);
request.setMethod(‘POST’);
request.setHeader('SOAPAction', soapAction);
request.setHeader('Content-Type', 'text/xml;charset=UTF-8');
request.setBody(requestBody);

//Response
Http http = new Http();
HttpResponse response = http.send(request);

Now if you wish the parse the response, you can use DOM class to parse that.

If you have credentials and that need to be passed for authorization, then you can use these credentials in SOAPUI as given below:


In Salesforce this will be passed as :
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(headerValue);
req.setHeader('Authorization', authorizationHeader);

Please do not forget to leave your comments. It will help me to improve the quality in next.

112 comments:

  1. Salesforce Developer convert the typical task into an simple one. Due to the experiences they solve the task with ease.

    ReplyDelete
  2. Nice content. To get trained in salesforce from professionals click this link http://www.salesforcetraining.in/ . This is very useful

    ReplyDelete
  3. It is very nice blog and very useful to ease integration in salesforce, Thanks

    ReplyDelete
  4. Thanks for sharing informative article on Salesforce technology. Your article helped me a lot to understand the career prospects in cloud computing technology. Salesforce.com Training in Chennai

    ReplyDelete
  5. I have read your post, it was good to read & i am getting some useful info's through your blog keep sharing...Salesforce is a new technology which helps you to get your career destination. Learn salesforce from corporate professionals with very good experience in Salesforce CRM.
    Salesforce training institutes in Chennai|Salesforce training center in Chennai

    ReplyDelete
  6. The information you have given here is truly helpful to me. CCNA- It’s a certification program based on routing & switching for starting level network engineers that helps improve your investment in knowledge of networking & increase the value of employer’s network, if you want to take ccna course in Chennai get into FITA, thanks for sharing…
    ccna training in Chennai | ccna training institute in Chennai | ccna course in Velachery

    ReplyDelete
  7. Your blog is really awesome and I got some useful information from your blog. This is really useful for me. Thanks for sharing such a informative blog. Keep posting.

    Regards..
    Cloud Computing Training in Chennai

    ReplyDelete
  8. It was really a wonderful article and I was really impressed by reading this blog. Your technical information is very useful for me. Thanks for sharing your ideas.

    Regards...
    Hacking Course in Chennai

    ReplyDelete
  9. thanks for sharing this blog..really i got some useful information in your blog..really it's very nice..soup ui online training

    ReplyDelete
  10. Thanks for providing information. We are providing online training classes
    <a href="http://hyderabadsys.com/http://hyderabadsys.com/http://hyderabadsys.com/soap ui-online-training/”> soup ui Online Training</a>

    ReplyDelete
  11. Thanks for sharing these information. It’s a very nice topic. We are providing online training classes soapuionlinetraining

    ReplyDelete
  12. Thank you for sharing this kind of useful information,
    It is very useful to me and like who are searching for SOAP UI online training from USA, UK and India.

    ReplyDelete
  13. It's very nice blog it has very useful information SalesForce online training

    ReplyDelete
  14. This includes the ability to send and receive text messages, as well as make and receive phone calls via the soapuI salesforce developer API. If want become learn for Hadoop Training with Java code using MapReduce concepts and learn Big Data knowledge to real-time projects reach us Besant Technologies.To click the training details,Hadoop Training in Chennai | Hadoop Training Institute in Chennai

    ReplyDelete
  15. I have read your blog its very attractive and impressive. I like your blog. salesforce Online Course Bangalore

    ReplyDelete
  16. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    Best Hadoop Training Institute In chennai

    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  17. And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
    selenium training in chennai

    ReplyDelete
  18. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    Hadoop Training in Chennai
    Hadoop Training in Bangalore
    Big data training in tambaram
    Big data training in Sholinganallur

    ReplyDelete
  19. I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favourites blog site list and will be checking back soon.

    python training in omr

    python training in annanagar | python training in chennai

    python training in marathahalli | python training in btm layout

    python training in rajaji nagar | python training in jayanagar

    ReplyDelete
  20. Thank you so much for a well written, easy to understand article on this. It can get really confusing when trying to explain it – but you did a great job. Thank you!
    java training in chennai | java training in bangalore

    java online training | java training in pune

    ReplyDelete
  21. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  22. Nice post. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated posts…
    Data Science training in Chennai
    Data science training in bangalore
    Data science training in pune
    Data science online training

    ReplyDelete
  23. This is very good content you share on this blog. it's very informative and provide me future related information.
    Devops training in sholinganallur
    Devops training in velachery

    ReplyDelete
  24. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    Best Selenium Training in Chennai | Selenium Training Institute in Chennai | Besant Technologies

    Selenium Training in Bangalore | Best Selenium Training in Bangalore

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    ReplyDelete
  25. Great job.... Awesome list, just starting a blog and this is going to be a massive help. Thank you!

    Cloud Training
    Software Testing Training
    Oracle DBA Training
    Angular Training in Chennai

    ReplyDelete
  26. Great job.... Awesome list, just starting a blog and this is going to be a massive help. Thank you!

    Cloud Training
    Software Testing Training
    Oracle DBA Training
    Angular Training in Chennai

    ReplyDelete
  27. Hello! This is my first visit to When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added
    fire and safety course in chennai

    ReplyDelete
  28. Thanks for sharing this unique information with us. Your post is really awesome. Your blog is really helpful for me..
    Top college in Jaipur

    ReplyDelete
  29. Thanks for your interesting ideas.the information's in this blog is very much useful for me to improve my knowledge.
    android training in bangalore
    Android Training in Anna Nagar
    Android Training in T nagar
    Android Training in OMR

    ReplyDelete
  30. Amazing post!!! This post is very comprehensive and i learn more ideas. Thanks for your post, i like more updates from your blog...
    PHP Training in Bangalore
    PHP Institutes in Bangalore
    PHP Course in Chennai
    PHP Course in Annanagar
    PHP Course in Aminjikarai
    PHP Course in Sholinganallur

    ReplyDelete
  31. Brilliant ideas that you have share with us.It is really help me lot and i hope it will help others also.update more different ideas with us.
    Selenium Training Institutes in OMR
    Selenium Courses in T nagar

    selenium testing training in bangalore
    selenium institutes in bangalore

    ReplyDelete
  32. Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
    devops Training in Perambur
    devops Training in Mogappair
    devops bangalore
    devops classroom training in bangalore

    ReplyDelete
  33. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    microsoft azure training in bangalore
    rpa interview questions and answers
    automation anywhere interview questions and answers
    blueprism interview questions and answers
    uipath interview questions and answers
    rpa training in bangalore

    ReplyDelete
  34. Great thoughts you got there, believe I may possibly try just some of it throughout my daily life.
    Best Devops Training in pune
    Devops Training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  35. I was recommended this web site by means of my cousin. I am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training


    ReplyDelete
  36. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
    big data course malaysia

    ReplyDelete
  37. Nice and good post. This is a wonderful article, Given so much info in it, keep sharing.


    Data Science in Bangalore

    ReplyDelete
  38. I really enjoyed reading this post, big fan. Keep up the good work andplease tell me when can you publish more articles or where can I read more on the subject?




    BIG DATA COURSE MALAYSIA

    ReplyDelete
  39. I have express a few of the articles on your website now, and I really like your style of Python classes in pune blogging. I added it to my favorite’s blog site list and will be checking back soon…

    ReplyDelete
  40. This is an awesome blog. Really very informative and creative contents. This concept is a good way to enhance the knowledge. Thanks for sharing.
    ExcelR business analytics course

    ReplyDelete
  41. Attend The Business Analytics Course From ExcelR. Practical Business Analytics Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Course.
    Business Analytics Course
    Data Science Interview Questions

    ReplyDelete
  42. Wow what a Great Information about World Day its exceptionally pleasant educational post. a debt of gratitude is in order for the post.
    data scientist course in malaysia

    ReplyDelete
  43. Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.
    data scientist course malaysia

    ReplyDelete
  44. Rihan electronics is one of the best repairing service provider all over india we are giving our service in many different different cities like Noida,Gazibad,Delhi,Delhi NCR nice page
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  45. Nice article. I liked very much. All the information given by you are really helpful for my research. keep on posting your views.
    data science course in delhi

    ReplyDelete
  46. Well we really like to visit this site, there is a lot of useful information we can get here.
    Best Data Science Courses in Hyderabad


    ReplyDelete
  47. I enjoy it for creating the details, keep up the truly amazing perform continuing
    data scientist training in hyderabad

    ReplyDelete
  48. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!
    artificial intelligence training in aurangabad

    ReplyDelete
  49. Big Data training in Chennai is nowadays not easy for many students. They don’t know how to start this?? Here, is the secured and Certified placewhich is INFYCLE who were all offering good courses with training and with top salary package placement. HURRY UP!!!

    ReplyDelete
  50. Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post.Keep up your work
    data science course in malaysia

    ReplyDelete
  51. I have been searching to find a comfort or effective procedure to complete this process and I think this is the most suitable way to do it effectively.
    cyber security course in malaysia

    ReplyDelete
  52. Really an awesome blog. Informative and knowledgeable content. Keep sharing more blogs with us. Thank you.
    Data Science Courses in Hyderabad

    ReplyDelete
  53. I am heartily impressed by your blog and learned more from your article. Thank you so much for sharing with us. I find another blog as like it. If you want to look, visit here Inovi Solutions , It’s also more informative.

    ReplyDelete
  54. Thank you for the useful information. I'd like to point out that this blog was instrumental in convincing me to do it! Thanks, very well written.
    Health related new information provide my website : Medsvilla
    LIKE, Cenforce-100-mg tablets are one of the most well-known and well-known little blue pills for the treatment of erectile dysfunction.

    ReplyDelete
  55. Thank you very much for sharing such a useful article. Will definitely saved and revisit your site
    cyber security course

    ReplyDelete
  56. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post.
    cyber security course

    ReplyDelete
  57. "AM Computers LLC - Discover the ultimate convenience of Buy Laptop Online UAE, and enjoy a seamless shopping experience with us!"

    ReplyDelete
  58. "Discover the perfect laptop that suits your needs at AM Computers LLC, your ultimate destination for Buying Laptop with unmatched quality and service."

    ReplyDelete
  59. "Experience the freedom to roll your way with A2Z Tobacco's exquisite Loose Leaf Wraps - Unleash your creativity and savor the taste!"

    ReplyDelete
  60. "Indulge in irresistible flavor with Runtz Wraps - the perfect choice for discerning tobacco enthusiasts, brought to you exclusively by A2Z Tobacco!"

    ReplyDelete
  61. "Enhance your security infrastructure with Taylor Made Solutions, the go-to experts for Exeter CCTV , safeguarding your premises with cutting-edge surveillance technology."

    ReplyDelete
  62. "Invigilo: Empowering your security vision with cutting-edge Video Surveillance Software – see safety in a new light!"

    ReplyDelete
  63. "Elevate your materials to new heights with Applied Physics USA's Silica Powder – Uncompromising quality for a refined future!"

    ReplyDelete
  64. "Elevate Your Style at The Head Game: Your Ultimate Destination for Hair Salon Roseville!"

    ReplyDelete
  65. "Take the Leap into Financial Success with My Off Plan Investment: Transforming Futures, One Investment at a Time!"

    ReplyDelete
  66. "Experience the exotic blend of flavors with A2Z Tobacco's Banana Backwoods - elevate your smoking journey today!"

    ReplyDelete
  67. "Experience the buzz of quality at Karatom Point - where every product is crafted with the precision of bumble bee botanicals." 🌿🐝

    ReplyDelete

  68. "Experience the pinnacle of botanical bliss with Karatom Point: Where the essence of kat botanicals meets unparalleled quality."

    ReplyDelete
  69. Discover the flavor revolution with A2Z Tobacco's Mini Loose Leaf - unlock a world of indulgence in every puff!

    ReplyDelete
  70. "Indulge in tantalizing tastes with A2Z Tobacco's Dutch Wraps Flavors – elevate your smoking experience today!"

    ReplyDelete
  71. SOAPUI is a great tool for integrating and testing Salesforce web services, allowing you to test SOAP and REST API calls with ease. It's especially useful for validating requests and handling OAuth authentication for secure connections. This makes it a perfect choice for developers working with Salesforce integrations.

    Data science courses in Pune

    ReplyDelete
  72. This is a great read! Data science courses in Kochi offer amazing hands-on learning experiences. If you're looking to dive into this field, don't miss out on the Data science courses in Kochi!"

    ReplyDelete
  73. The article covers how to use SoapUI for testing Salesforce web services, including setup and configuration.
    Data science courses in the Netherlands

    ReplyDelete
  74. Thank you for shedding light on SOAPUI's role in Salesforce integrations! This post is both informative and inspiring for anyone in the integration space. Kudos!
    Data science Courses in Sydney

    ReplyDelete
  75. thanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
    Data science Courses in Melbourne

    ReplyDelete
  76. Great post! I’ve been using SoapUI for API testing, but I didn’t realize its full potential for Salesforce integration. The step-by-step guide you’ve provided is very helpful for beginners. I also appreciate the tips on handling authentication and managing test cases. Looking forward to more tutorials like this!
    Data science courses in Glasgow

    ReplyDelete
  77. SOAPUI is a fantastic tool for simplifying Salesforce integration, especially when dealing with WSDL files that Salesforce struggles to parse. By using SOAPUI, developers can easily test and troubleshoot web services, making the integration process much smoother. It’s a great resource for overcoming challenges with WSDL compatibility and ensuring seamless connectivity between Salesforce and other applications.
    Data science Courses in City of Westminster

    Neel KBH
    kbhneel@gmail.com

    ReplyDelete