Contributions
Re: Creating a simple SOAP MockService (help!)
Ops, my post did not plainly state... think Young Frankenstein (Gene Wilder) 'It's alive!' It's now working and I'm starting to connect the dots. Now I need to move from connectivity with simple request/respond to creating a mockservice with input parameters and response(s). Thanks again. DaveK.775Views0likes1CommentRe: Creating a simple SOAP MockService (help!)
My error... changed port number to other than 8080. I didn't understand the concept of "running" the MockService. As I indicated initially I selected the run service (green triangle), but all that did was make the progress bar go back and forth. I thought that action was essentially executing the service and I expected it to return the string. So then the activitybar bounced back and forth, I'd waitand then kill it.... I didn't understand that running the MockService was putting it into a running state and that it needed to stay in that state and when in that running state I'd issue the http get request from a browser. As I said this is all strange to me. That said I really need to understand this path concept. It makes absolutely no sense to me. I'll gladly read/research if anyone can provide where to focus. The Mock Service options set the path to "/" which normally would be the root directory. The MockAction was "/hello" Why the heck is an action documented as a DIRECTORY PATH? There is just so much abstraction here I can't make any sense of this stuff.4.6KViews0likes2CommentsRe: Creating a simple SOAP MockService (help!)
Well I went home to my Windows 7 system (Home Premium) and installed SOAPUI. I repeated the steps above... If I use a browser with http://localhost:8080/hello OR http://computername:8080/hello OR http://127.0.0.1/hello I get the same pop up screen asking for a username and password and a message about XDB. (I recently installed an Oracle freeware test database system to learn SQL.. if that has anything to do with the error message. here's a 'photo'. If I try to use SOAPUI to run the mock service from the service screen (the green triangle)... I get a java bind error. Here's a 'photo' I'm really not getting this "path" thingee. Looks like a directory path. I'm stilllost in this sea, but am very, very grateful for those reaching out to help. I appreciate it very much. BTW, the video didn't really provide any new insights beyond the instructions here, but I watched it. I'll try anything else you can fire my way. DaveK.4.6KViews0likes4CommentsRe: Creating a simple SOAP MockService (help!)
Not quite working for me. It looks like my company laptop Windows hosts file is all commented out so I don't think localhost is defined. For MockService options I just put the actual computer name of my laptop rather than localhost. When I 'run' the mock service the activity bar just ping-pongs left to right, back and forth. If I fire up a browser and navigate directly I get a message there are 0 MockServices running. Here's a 'photo". Sorry but the size of the jpeg gets limited. I can't seem to get it to scale to full size...4.6KViews0likes6CommentsRe: Creating a simple SOAP MockService (help!)
Yep, saw that and other informational pages on Mock Services. The concept seems OK. I create a mock service (I guess give it a name). Then I create mock actions (which I guess are the ?methods? / functionality exposed by the API. Each mock action (I guess) has one or more responses; made up of success responses, warning, or error responses. For example, a success response can be 'here's the data you requested' or you made a valid request -there's just no data to return to you', or errors like XYZ is a required input parameter, or the format for DATE is incorrect, or username/password incorrect, etc. etc. I was able to name a mock service but couldn't get one step past that. I couldn't name/create a mock action (it was asking for a "resource path". I don't understand Resource Path or Dispatch. I guess Resource Path is a folder, but what do you put in the folder? Dispatch concept is foreign, I just don't understand it. I don't know any scripting languages... Clearly I don't have sufficient background to create & document a mock service ergo that's why I asked, where do I start? The API under development is REST based. It has 5 required inputs and 2 optional inputs. There's only onemock action, the data request. The user makes a request for data and the API responds. There isn't a 'conversation'. If successful data a 'table' of data (several of rows of data) is returned (the response) to the user.I know the fields/format of the data that's returned. Thanks, DaveK4.7KViews0likes8CommentsCreating 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 testingis 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, DaveSolved4.9KViews0likes11Comments