0 Replies Latest reply: Sep 11, 2008 7:01 AM by 85613 RSS

    Web Service XML

    85613
      Hi,

      I am trying to extract the elements returned from the cdb Axis servlet with little success. The XML returned when calling the web service is as follows:

      <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getCurrentUserResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="http://xmlns.oracle.com/content/ws"><getCurrentUserReturn href="#id0"/></ns1:getCurrentUserResponse><multiRef
      id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Item"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://xmlns.oracle.com/content/ws"><id
      xsi:type="xsd:long">68659</id><name xsi:type="xsd:string">testuser1@testserver,=.com</name><requestedAttributes
      soapenc:arrayType="ns2:NamedValue[2]" xsi:type="soapenc:Array"><requestedAttributes href="#id1"/><requestedAttributes
      href="#id2"/></requestedAttributes><type xsi:type="xsd:string">USER</type></multiRef><multiRef id="id1" soapenc:root="0"
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:NamedValue"
      xmlns:ns3="http://xmlns.oracle.com/content/ws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><name
      xsi:type="xsd:string">FIRST_NAME</name><value xsi:type="soapenc:string">Test</value></multiRef><multiRef id="id2"
      soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:NamedValue"
      xmlns:ns4="http://xmlns.oracle.com/content/ws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><name
      xsi:type="xsd:string">LAST_NAME</name><value
      xsi:type="soapenc:string">User1</value></multiRef></soapenv:Body></soapenv:Envelope>

      ..

      I can extract the /Envelope/Body/ Xpath however I do not know how to extract the multiRef elements. Am I missing something very simple or is there some other reason why I cant use a basic xpath query to get the user attributes I am after?