title: SOAP Client - how to to correctly create request?
body: <p>I'm trying to connect to the SOAP server and call one from his methods named: 
  <strong>GetContactPerson</strong></p>
  
  <p>For testing I'm using SoapUI who generate example request for me : </p>
  
  <pre><code>&lt;soap:Header/&gt;
   &lt;soap:Body&gt;
    &lt;v2:GetReferencedDataRequest version="2.0.0"&gt;
       &lt;v2:authentication&gt;USERNAME:PASSWORD&lt;/v2:authentication&gt;
       &lt;!--Optional:--&gt;
       &lt;v2:payload&gt;
          &lt;!--Optional:--&gt;
          &lt;v2:extensionPoint&gt;WHATS SHOULD I PUT HERE ?&lt;/v2:extensionPoint&gt;
       &lt;/v2:payload&gt;
    &lt;/v2:GetReferencedDataRequest&gt;
  &lt;/soap:Body&gt;
  </code></pre>
  
  <p>Response from server after sending that request : </p>
  
  <pre><code>Could not unmarshal SOAP message due to invalid request: Unable to create an 
  instance of *.model.v20.PayloadType
  </code></pre>
  
  <p>I know that this is a error, but I don't know what shout I put between tags : <code>&lt;v2:extensionPoint&gt;</code></p>
  
  <p>From documentation XSD I have : </p>
  
  <pre><code>&lt;xsd:complexType name="PayloadType" abstract="true"&gt;
      &lt;xsd:annotation&gt;
          &lt;xsd:documentation xml:lang="en"&gt;The payload is the base type of the business content of a request or response.&lt;/xsd:documentation&gt;
      &lt;/xsd:annotation&gt;
      &lt;xsd:sequence&gt;
          &lt;xsd:element name="extensionPoint" type="xsd:anyType" minOccurs="0"&gt;
              &lt;xsd:annotation&gt;
                  &lt;xsd:documentation xml:lang="en"&gt;Generic extension point&lt;/xsd:documentation&gt;
              &lt;/xsd:annotation&gt;
          &lt;/xsd:element&gt;
      &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>Ok, but now I'm trying to send request from PHP.
  First I'm fireing method : <code>$client-&gt;__getFunctions();</code></p>
  
  <p>Result : 
  <code>GetContactPersonResponse GetContactPerson(GetContactPersonRequest $GetContactPersonRequest)</code></p>
  
  <p>From documentation : </p>
  
  <pre><code>&lt;xsd:element name="GetContactPersonRequest"&gt;
      &lt;xsd:complexType&gt;
          &lt;xsd:complexContent&gt;
              &lt;xsd:extension base="GetCustomerReferencingEntityRequestType"/&gt;
          &lt;/xsd:complexContent&gt;
      &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  </code></pre>
  
  <p>E.q code : </p>
  
  <pre><code>$client = new SoapClient( $wsdlAddress, [
   'login' =&gt; 'PlainText',
   'password' =&gt; 'PlanText',
   'soap_version' =&gt; SOAP_1_2
  ] );
  
  $someTest = $client-&gt;GetContactPerson( $params );
  </code></pre>
  
  <p>How correctly create request from php? 
  How to create <code>$params</code> that should be <code>GetContactPersonRequest</code> type ?  </p>