Are you making the best out your Test tool? – Tips on SOAP UI
Prologue:
There was a time when I used to use XML Spy trial versions to help me test my SOAP scenarios. Then one day someone recommended SOAPUI. I fell in love…..
Chapter 1: A Disclosure
Most of us use SOAPUI as a test tool for testing Sender SOAP scenarios in PI. Whenever someone wants to simulate a SOAP all into PI, we are happy to recommend SOAPUI or XMLSpy as a testing tool. But then what about a SOAP receiver?
There are situations when there is an ongoing interface build. Lets say in this particular case, the requirement is that PI will be invoking a WS call to an application.The WS team has shared the WSDL to the PI team but they have not yet shared the target URL since they are building the application logic in parallel and hence the WS is not yet hosted. So hard working consultants as we are, we end up finishing our build but the dilemma of unit testing lingers around. I never knew this before but seems this is where SOAPUI can help us again.
Many of you might already know this feature but some ignoramus human such as me might still be left in the dark. Hence hope this blog will be of help to many of those getting bored in that darkness.
Chapter 2: Mock a Service
There is a cool feature in SOAPUI that lets you run or mock a Web Service. In short, you can replicate the functionality and run the web service on your desktop.
Once you load the WSDL as a project, you can use the option Generate MockService.
You can select the particular operation, provide the path (which will result in your Target URL) and the port
Once you have the Mock Service setup, you can edit the response of the operation to whatever value that you may desire.
Setting up the mock response from the Web service:
Once the response is setup, we can start the mock service which will run on the local machine.
All you now need to do is update the SOAP receiver adapter with the Target URL.
The target URL will be http://* :8080/<path defined when creating the mock service>
Run your scenario and you will find a synchronous response coming back to PI from your mock service.
SXMB_MONI:
Well, I hope this information sure does help you 🙂
Arman
Cheers, Fred
so one bit of that 'ignoramus' quotient is reduced ... 😉
And I've only just scrathed the surface with it.
It's the most awesome tool & I hope it grows from strength to strength!
Regards, Trevor
Think I should explore what you have mentioned 🙂
Regards
Stefan
I was also one of those ignoramus:)
Thanks,
Sami.
Hi Shabarish Vijayakumar,
This blog has lost its content formatting. I have gone through this blog in the earlier days, thought of referring now, but not able to read, is there a way to fix it?
yeah .. guess this was post migration of SCN onto Jive platform. Let me find sometime to fix this. thanks for notifying me!
Zameer Farook , hope the blog is now formatted.
Yes 🙂
Hi Shabarish,
We can help out in case there are any issues with the images. Just let me know.
And you may also want to move it into the correspondent space afterwards. Reference: Why move your blogs into SCN spaces
Thanks,
Mariana
Mariana Mihaylova , would you be able to help me get back the images on this blog? would do me a lot of good in terms of reduced efforts in rewritting this one 🙂
Sure - will get back to you promptly.
Have a great weekend everyone!
I just added them back.
thanks Jason Lax and Mariana Mihaylova . The blog is now back in format.