title: SOAP call in PHP not working at all
body: <p>Unfortunately I have never worked with SOAP before, so I hope I can express myself well anyways.</p>
  
  <p>I have the following SOAP request (it's for creating tickets in HPSM):</p>
  
  <pre><code>        &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;ns:SubmitIntApiIncidentRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updateconstraint="-1"&gt;
           &lt;ns:model query="?"&gt;
              &lt;ns:keys query="?" updatecounter="?"&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:id type="Decimal" mandatory="?" readonly="?"&gt;?&lt;/ns:id&gt;
              &lt;/ns:keys&gt;
              &lt;ns:instance query="?" uniquequery="?" recordid="?" updatecounter="?"&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:registrationId type="String" mandatory="?" readonly="0"&gt;HPSM Registration ID&lt;/ns:registrationId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:contactId type="String" mandatory="?" readonly="?"&gt;???&lt;/ns:contactId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:affectedUserId type="String" mandatory="?" readonly="?"&gt;User ID&lt;/ns:affectedUserId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:serviceId type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:serviceId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:affectedCiId type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:affectedCiId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:priority type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:priority&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:title type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:title&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:description type="String" mandatory="?" readonly="?"&gt;description&lt;/ns:description&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:returnCode type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:returnCode&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:returnMessage type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:returnMessage&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:returnTicketId type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:returnTicketId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:submittedBy type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:submittedBy&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:submitterGroup type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:submitterGroup&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:assignmentGroup type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:assignmentGroup&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:externalReferenceId type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:externalReferenceId&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:category type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:category&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:resolveImmediately type="Boolean" mandatory="?" readonly="?"&gt;?&lt;/ns:resolveImmediately&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:solutionCode type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:solutionCode&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:solution type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:solution&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:contactInfo type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:contactInfo&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:incidentType type="String" mandatory="?" readonly="?"&gt;?&lt;/ns:incidentType&gt;
                 &lt;!--Optional:--&gt;
                 &lt;ns:attachments&gt;
                    &lt;!--Zero or more repetitions:--&gt;
                    &lt;com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" upload.by="?" upload.date="?" attachmentType="?"&gt;cid:933455187673&lt;/com:attachment&gt;
                 &lt;/ns:attachments&gt;
              &lt;/ns:instance&gt;
              &lt;!--Optional:--&gt;
              &lt;ns:messages&gt;
                 &lt;!--Zero or more repetitions:--&gt;
                 &lt;com:message type="String" mandatory="?" readonly="?" severity="?" module="?"&gt;?&lt;/com:message&gt;
              &lt;/ns:messages&gt;
           &lt;/ns:model&gt;
        &lt;/ns:SubmitIntApiIncidentRequest&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>By now I have the following code in my soapcall.php file:</p>
  
  <pre><code>    &lt;?php         
  
      $wsdl ='asdf?wsdl';
      $client = new SoapClient($wsdl, array('login' =&gt; "user", 'password' =&gt; "pw"));
  
  
      $request = array(
          'SubmitIntApiIncident'=&gt;(array(
              'model' =&gt; '',
              'registrationID' =&gt; 'registrationid',
              'contactId' =&gt; 'me',
              'affectedUserId' =&gt; 'affuser',
              'serviceId' =&gt; 'serviceid',
              'affectedCiId' =&gt; '',
              'priority' =&gt; '4',
              'title' =&gt; 'Test Title',
              'description' =&gt; 'description',
              'submittedBy' =&gt; 'me',
              'assignmentGroup' =&gt; 'assignment group',
              'externalReferenceId' =&gt; '',
              'category' =&gt; 'incident',
              'resolveImmediately' =&gt; ''
          )));
  
      $response = $client-&gt;__soapCall("SubmitIntApiIncident", $request);
      var_dump($response);
  
  
  ?&gt;
  </code></pre>
  
  <p>This does not work at all - right now I don't get any error message, there is just a blank page. But every time I change something in the code there is another error message. So I don't even know if I am on the right track or if everything I try just makes it worse.</p>
  
  <p>I would really appreciate if you could tell me if there is any big error in my code or how I could successfully submit a ticket with the php file.</p>