Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to access ComplexType Variables
    text
    copied!<p>I got a WSDL, and some variables are sended to me, but I don't know in which way to acces them....</p> <p>The WSDL part that I need looks like this:</p> <pre><code>&lt;s:element name="SaveRelation"&gt; &lt;s:complexType&gt; &lt;s:sequence&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="persistance" type="tns:Relation"/&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;/s:element&gt; &lt;s:complexType name="Relation"&gt; &lt;s:sequence&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="GUID" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="ParentRelation" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="RelationName" type="s:string"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="VisitAddress" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="DeliveryAddress" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="Person_1" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="Person_2" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="Person_3" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="Person_4" nillable="true" type="s1:guid"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="Country" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="ChamberOfCommerceNumber" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="VatNumber" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="Fax" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="Telephone" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="InternetAddress" type="s:string"/&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="E_mail" type="s:string"/&gt; &lt;s:element minOccurs="1" maxOccurs="1" name="Obsolete" type="s:boolean"/&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;wsdl:message name="SaveRelationSoapIn"&gt; &lt;wsdl:part name="parameters" element="tns:SaveRelation"/&gt; &lt;/wsdl:message&gt; </code></pre> <p>These variables are sended to my server, I need to process them and put them in the database, and then return ok/fail based on succes or failure. I've got everything working, accept for accesing the variables.</p> <p>I've tried things like <code>$parameters.GUID , $parameters[0][0], $parameters[0].GUID</code> , the 1st returns ArrayGUID, the second return nothing/empty, the third also returns nothing/empty.</p> <p>So to sum it up, <strong>I don't know how to acces the variables in the Relation ComplexType.</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload