Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to XPath this SOAP Response?

    When I call calloperation on a WCF web service and use //DoubleValue I receive a null exception (but I can see this XML response coming back):

    Code:
    <s:Body>
      <SumResponse xmlns="http://tempuri.org/">
         <SumResult xmlns:a="http://schemas.datacontract.org/2004/07/GettingStartedLib"         xmlns:i="http://www.w3.org/2001/XMLSchema-isntance">
              <a:DoubleValue>3</a:DoubleValue>
              <a:SomeInt>7</a:SomeInt>
              <a:StringValue>Hello</a:StringValue>

    #2
    Course this is not the best place to post a question like that, but you seem to be trying to ignore your namespaces.

    You could just change your expression to something like

    Code:
    //*[local-name()='DoubleValue']
    Or better yet, try here.

    Comment


      #3
      That did the trick, thank you very much.

      Comment

      Working...
      X