locked
How to Parse a soap response returned by external webservice using C# RRS feed

Answers

  • You should not be manipulating XML. You should use "Add Service Reference" to create classes which will connect to the web service. These classes will do the communication for you, as well as parse the XML.

    See How to Consume a Web Service for details.


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    • Marked as answer by edhickey Monday, August 23, 2010 8:08 PM
    Monday, August 9, 2010 7:10 PM
    Moderator

All replies

  • Using C# to parse SOAP response

    http://stackoverflow.com/questions/2876012/using-c-to-parse-a-soap-response

    This link might help you.

    Monday, August 9, 2010 3:52 PM
  • You should not be manipulating XML. You should use "Add Service Reference" to create classes which will connect to the web service. These classes will do the communication for you, as well as parse the XML.

    See How to Consume a Web Service for details.


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    • Marked as answer by edhickey Monday, August 23, 2010 8:08 PM
    Monday, August 9, 2010 7:10 PM
    Moderator
  • Hi Rajeev,

        It is easy process,first you should need to remove all name spaces from your soap xml document ,And try to search "How to Remove name spaces from soap xml" on google,you will sure to get answer.


    Friday, December 7, 2012 5:10 AM
  • There is no need to parse the XML, as I said above.

    If you decide to arse it, then removing namespaces is unncessary, and undesireable. Simply use LINQ to XML, which is quite capable of handling namespaces properly.


    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects

    Friday, December 7, 2012 12:47 PM
    Moderator