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

Antworten

  • 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
    • Als Antwort markiert edhickey Montag, 23. August 2010 20:08
    Montag, 9. August 2010 19:10
    Moderator

Alle Antworten

  • Using C# to parse SOAP response

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

    This link might help you.

    Montag, 9. August 2010 15:52
  • 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
    • Als Antwort markiert edhickey Montag, 23. August 2010 20:08
    Montag, 9. August 2010 19:10
    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.


    Freitag, 7. Dezember 2012 05:10
  • 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

    Freitag, 7. Dezember 2012 12:47
    Moderator