Search code examples
xmlsoaphpsa

SOAP XML valid xsi:type


I'm trying to write a SOAP call and the sample request is as follows:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://server.opsware.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:attachPolicies soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <self xsi:type="xsd:anyType">?</self>
         <policies xsi:type="ser:ArrayOf_xsd_anyType" soapenc:arrayType="xsd:anyType[]"/>
      </ser:attachPolicies>
   </soapenv:Body>
</soapenv:Envelope>

Any ideas on what ArrayOf_xsd_anyType could mean or how I could find valid options for this?


Solution

  • The name ser:ArrayOf_xsd_anyType refers to a type that you would expect to find defined in the schema for namespace xmlns:ser="http://server.opsware.com".

    I don't know where to find that schema; the recipient of this message is expected to know about it. Perhaps this page helps: https://en.wikipedia.org/wiki/Opsware