dwallace
10 years agoNew Contributor
Can't access properties in webservice response object
Hi,
I'm trying to run a test on a webservice that returns an object ("WebServiceResponse".) I'm receiving this response, but having trouble accessing properties deeper within the object. The WebServiceResponse object includes two properties: "ErrorMessage" and "Result," the latter of which points to another object, called "GetTicketPriceResponse". I can pull the values from the error message, but not the sub-object; they all return empty.
One thing I've noticed is that the GetTicketPriceResponse object is only ever used in this indirect way, never directly as the response or included in a request, so it doesn't appear to have been included in the catalog of webservice types for the TypeFactory. Is this what could be affecting my ability to access its properties? If so, what can I do to get TestComplete to recognize this object type? If not, what else might be causing the problem?
Thanks,
Danielle
I'm trying to run a test on a webservice that returns an object ("WebServiceResponse".) I'm receiving this response, but having trouble accessing properties deeper within the object. The WebServiceResponse object includes two properties: "ErrorMessage" and "Result," the latter of which points to another object, called "GetTicketPriceResponse". I can pull the values from the error message, but not the sub-object; they all return empty.
One thing I've noticed is that the GetTicketPriceResponse object is only ever used in this indirect way, never directly as the response or included in a request, so it doesn't appear to have been included in the catalog of webservice types for the TypeFactory. Is this what could be affecting my ability to access its properties? If so, what can I do to get TestComplete to recognize this object type? If not, what else might be causing the problem?
Thanks,
Danielle