WebServices...output
Brian,
I'm testing some web services. I want to know how to go about capturing the xml that is returned. For example, the ants tutorial provides a webservice test. There is a specific call:
employeesService.GetEmployeeDetails(employeeID)
how do i capture the xml that is generated by that call. Namely how do I capture (http://localhost/ANTSLoadTutorialWebSer ... yeeDetails) output.
Also, since GetEmployeeDetails only looks for 1 argument its understood tha employeeID will be passed. What happens when a webservice request is looking for multiple args??
Thanks,
Danish.
I'm testing some web services. I want to know how to go about capturing the xml that is returned. For example, the ants tutorial provides a webservice test. There is a specific call:
employeesService.GetEmployeeDetails(employeeID)
how do i capture the xml that is generated by that call. Namely how do I capture (http://localhost/ANTSLoadTutorialWebSer ... yeeDetails) output.
Also, since GetEmployeeDetails only looks for 1 argument its understood tha employeeID will be passed. What happens when a webservice request is looking for multiple args??
Thanks,
Danish.
This discussion has been closed.
Comments
Webservices always return XML, but the webservice consumer in ANTS Load will cast the data as whatever datatype the returned object is supposed to be represented as. In your case, you'd need to get the object back from the webservice and turn it back into XML. Here is an example script, assuming that you have referenced the antsloadtutorialweiservice/employees.asmx: