Creating a simple SOAP MockService (help!)
Folks,
I used SOAPUI years ago to perform basic XML testing. I'd import the WSDL into SOAPUI and it would 'digest it'. I'd select the operation (?method) to perform and the s/w would put up a sample screen with boxes for the input fields. I'd plug in values for the various input parameters and then submit the request (and receive the response). That's about my experience with Webservices testing...
Now I have to test a TBD web API and found references to creating a "mock" service. I have no idea how to do this and tried reading the several articles and forum posts, but they are beyond my knowledge base. While many web API's are conversational in nature, where you have to make several calls, in sequence, to accomplish a business task, the TBD API I'll be testing is very simple. It'll be a simple GET with parameters that returns information. E.g., the call is username, password, business ID, start date, end date, and optional vendor ID. It returns the business ID, the name associated with the business ID, City, State, ZIP Code, # orders (within state - end date), and percent of orders completed.
It appears that I simply don't have the web background needed to create a mock service for this. The examples I've seen have scripting, Xpath stuff, and to me, foreign syntax and concepts that are beyond my knowledge. If someone can point me to the basic topics/disciplines I need to become familiar with, it'd be much appreciated and I'll start learning/training.
Thanks much, Dave
Hi Dave,
Ah! OK, the port of 8080 was a bad choice, looks like you've got something on there already! Have a go with 9001 or something else until that 'address already in use' error goes away.
Regards,
Rup