CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2003
    Location
    London, England
    Posts
    4

    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

  2. #2
    Join Date
    May 2004
    Location
    Pell City, Alabama
    Posts
    126

    Re: Web services response question

    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.

  3. #3
    Join Date
    May 2003
    Location
    London, England
    Posts
    4

    Resolved 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured