cancel
Showing results for 
Search instead for 
Did you mean: 

OPENXML with Array an Attribute

Baron
Participant
0 Kudos
1,370

I am trying to retrieve the value of Client Element which is a row in array returned as XML SOAP.

I use the following call, but don't know why I dont get any result (and no any error too).

select * from openxml('

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">

 <soap-env:body>

  <ns1:getdetailresponse xmlns:ns1="urn:tempuri:Ver1">

   <ns1:result xsi:nil="true"/>

   <mydataset xmlns="urn:tempuri:Ver1">

    <![CDATA[<?xml version="1.0"?>

     <dsclients xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

     <ttclient>

      <client>200403</client>

     </ttclient>

     </dsclients>]]>

   </mydataset>

  </ns1:getdetailresponse>

 </soap-env:body>

</soap-env:envelope>',

'//*:Body/*:GetDetailResponse/*:MyDataset/*:DsClients/ttClient') with (CusotmerID varchar (100) 'Client');

Can anyone help please?

Accepted Solutions (0)

Answers (0)