Web services response question
Hi,
I'm working on a project which requires parsing the SOAP responses from webservices. All the test services I've produced in VS 2005 have returned data in the format
Code:
<soap:Envelope .....>
<soap:Body .....>
<TestServiceResponse xmlns=...>
<TestServiceResult>
... response attributes here ...
</TestServiceResult>
</TestServiceResponse>
</soap:Body>
</soap:Envelope>
So far, the program I have can parse results in that format. My question is, is it valid for a web service response to contain either
a) multiple TestServiceResponse sections
b) multiple TestServiceResult sections in a TestServiceResponse block
or would there only ever be a maximum of one of each block? (I know VS can omit the TestServiceResponse tag by changing the wrapped option).
Thanks in advance,
Adam
Re: Web services response question
Quote:
My question is, is it valid for a web service response to contain either...
It could be depending on the webservice. Look at your WSDL and it will tell you.
Re: Web services response question
Quote:
Originally Posted by Mutilated1
It could be depending on the webservice. Look at your WSDL and it will tell you.
Thank you for your help. Unfortunately, this is generic software that won't be used to read from just a single web service, however just knowing it's valid is enough for me to know to account for the possiblility.