title: PHP SOAP Client, Error no such operation
body: <p>I've a problem with my SOAP Client in PHP, I think my request is correct.</p>
  
  <p>My PHP Client SOAP :</p>
  
  <pre><code>$soapURL = "http://mylink.fr/mywsdl?wsdl";
  $soapParameters = Array('login' =&gt; "MyLogin", 'password' =&gt; "MyPassword", 'trace' =&gt; 1);
  try {
  
     $service=new SoapClient($soapURL, $soapParameters);
  
     $request = array(
        'address' =&gt; array(
           'city' =&gt; '',
           'country' =&gt; '',
           'department' =&gt; '',
           'district' =&gt; '',
           'houseNumber' =&gt; '',
           'region' =&gt; '',
           'road' =&gt; '',
           'roadNumber' =&gt; '',
           'zipCode' =&gt; ''
        ),
        'category' =&gt; array(
           'logo' =&gt; '',
           'name' =&gt; '',
           'reference' =&gt; ''
        ),
        'companyName' =&gt; '',
        'contactMail' =&gt; '',
        'contactName' =&gt; '',
        'contactPhone' =&gt; '',
        'endTemporary' =&gt; '2015-02-15T13:00:10',
        'latitude' =&gt; 12.0,
        'longitude' =&gt; 12.0,
        'name' =&gt; '',
        'radius' =&gt; 520,
        'reference' =&gt; '',
        'startTemporary' =&gt; '2015-02-15T13:00:11',
        'temporary' =&gt; 0
     );
  
     $result = $service-&gt;createPOI($request);
  } catch(SoapFault $e) {
  
     echo $service-&gt;__getLastRequest();
     echo $e-&gt;__toString();
  
  }
  </code></pre>
  
  <p>My SOAP Request :</p>
  
  <pre><code>&lt;soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.webservices.masternaut.fr/MasterWS/services/POI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="urn:POI" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
     &lt;soap-env:body&gt;
        &lt;ns1:createpoi&gt;
           &lt;poi xsi:type="ns2:POI"&gt;
              &lt;address xsi:type="ns2:Address"&gt;
                 &lt;city xsi:type="xsd:string"&gt;&lt;/city&gt;
                 &lt;country xsi:type="xsd:string"&gt;&lt;/country&gt;
                 &lt;department xsi:type="xsd:string"&gt;&lt;/department&gt;
                 &lt;district xsi:type="xsd:string"&gt;&lt;/district&gt;
                 &lt;housenumber xsi:type="xsd:string"&gt;&lt;/housenumber&gt;
                 &lt;region xsi:type="xsd:string"&gt;&lt;/region&gt;
                 &lt;road xsi:type="xsd:string"&gt;&lt;/road&gt;
                 &lt;roadnumber xsi:type="xsd:string"&gt;&lt;/roadnumber&gt;
                 &lt;zipcode xsi:type="xsd:string"&gt;&lt;/zipcode&gt;
              &lt;/address&gt;
              &lt;category xsi:type="ns2:PoiCategory"&gt;
                 &lt;logo xsi:type="xsd:string"&gt;&lt;/logo&gt;
                 &lt;name xsi:type="xsd:string"&gt;&lt;/name&gt;
                 &lt;reference xsi:type="xsd:string"&gt;&lt;/reference&gt;
              &lt;/category&gt;
              &lt;companyname xsi:type="xsd:string"&gt;&lt;/companyname&gt;
              &lt;contactmail xsi:type="xsd:string"&gt;&lt;/contactmail&gt;
              &lt;contactname xsi:type="xsd:string"&gt;&lt;/contactname&gt;
              &lt;contactphone xsi:type="xsd:string"&gt;&lt;/contactphone&gt;
              &lt;endtemporary xsi:type="xsd:dateTime"&gt;2015-02-15T13:00:10&lt;/endtemporary&gt;
              &lt;latitude xsi:type="xsd:double"&gt;12&lt;/latitude&gt;
              &lt;longitude xsi:type="xsd:double"&gt;12&lt;/longitude&gt;
              &lt;name xsi:type="xsd:string"&gt;&lt;/name&gt;
              &lt;radius xsi:type="xsd:int"&gt;520&lt;/radius&gt;
              &lt;reference xsi:type="xsd:string"&gt;&lt;/reference&gt;
              &lt;starttemporary xsi:type="xsd:dateTime"&gt;2015-02-15T13:00:11&lt;/starttemporary&gt;
              &lt;temporary xsi:type="xsd:boolean"&gt;false&lt;/temporary&gt;
           &lt;/poi&gt;
           &lt;overwrite xsi:nil="true"&gt;&lt;/overwrite&gt;
        &lt;/ns1:createpoi&gt;
     &lt;/soap-env:body&gt;
  &lt;/soap-env:envelope&gt;
  </code></pre>
  
  <p>The WSDL :</p>
  
  <pre><code>&lt;complexType name="PoiCategory"&gt;
     &lt;sequence&gt;
        &lt;element name="logo" nillable="true" type="xsd:string"/&gt;
        &lt;element name="name" nillable="true" type="xsd:string"/&gt;
        &lt;element name="reference" nillable="true" type="xsd:string"/&gt;
     &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;complexType name="Address"&gt;
     &lt;sequence&gt;
        &lt;element name="city" nillable="true" type="xsd:string"/&gt;
        &lt;element name="country" nillable="true" type="xsd:string"/&gt;
        &lt;element name="department" nillable="true" type="xsd:string"/&gt;
        &lt;element name="district" nillable="true" type="xsd:string"/&gt;
        &lt;element name="houseNumber" nillable="true" type="xsd:string"/&gt;
        &lt;element name="region" nillable="true" type="xsd:string"/&gt;
        &lt;element name="road" nillable="true" type="xsd:string"/&gt;
        &lt;element name="roadNumber" nillable="true" type="xsd:string"/&gt;
        &lt;element name="zipCode" nillable="true" type="xsd:string"/&gt;
     &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;complexType name="POI"&gt;
     &lt;sequence&gt;
        &lt;element name="address" nillable="true" type="tns1:Address"/&gt;
        &lt;element name="category" nillable="true" type="tns1:PoiCategory"/&gt;
        &lt;element name="companyName" nillable="true" type="xsd:string"/&gt;
        &lt;element name="contactMail" nillable="true" type="xsd:string"/&gt;
        &lt;element name="contactName" nillable="true" type="xsd:string"/&gt;
        &lt;element name="contactPhone" nillable="true" type="xsd:string"/&gt;
        &lt;element name="endTemporary" nillable="true" type="xsd:dateTime"/&gt;
        &lt;element name="latitude" type="xsd:double"/&gt;
        &lt;element name="longitude" type="xsd:double"/&gt;
        &lt;element name="name" nillable="true" type="xsd:string"/&gt;
        &lt;element name="radius" type="xsd:int"/&gt;
        &lt;element name="reference" nillable="true" type="xsd:string"/&gt;
        &lt;element name="startTemporary" nillable="true" type="xsd:dateTime"/&gt;
        &lt;element name="temporary" type="xsd:boolean"/&gt;
     &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;wsdl:portType name="PoiWS"&gt;
     &lt;wsdl:message name="createPOIRequest"&gt;
        &lt;wsdl:part name="poi" type="tns1:POI"&gt;&lt;/wsdl:part&gt;
        &lt;wsdl:part name="overwrite" type="xsd:boolean"&gt;&lt;/wsdl:part&gt;
     &lt;/wsdl:message&gt;
     &lt;wsdl:message name="createPOIResponse"&gt;
        &lt;wsdl:part name="createPOIReturn" type="xsd:int"&gt;&lt;/wsdl:part&gt;
     &lt;/wsdl:message&gt;
  &lt;/wsdl:portType&gt;
  &lt;wsdl:binding name="POISoapBinding" type="impl:PoiWS"&gt;
     &lt;wsdl:operation name="createPOI"&gt;
        &lt;wsdlsoap:operation soapAction=""/&gt;
        &lt;wsdl:input name="createPOIRequest"&gt;
           &lt;wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://mylink.fr/wsdl" use="encoded"/&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output name="createPOIResponse"&gt;
           &lt;wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://mylink.fr/wsdl" use="encoded"/&gt;
        &lt;/wsdl:output&gt;
     &lt;/wsdl:operation&gt;
  &lt;/wsdl:binding&gt;
  &lt;wsdl:service name="PoiWSService"&gt;
     &lt;wsdl:port binding="impl:POISoapBinding" name="POI"&gt;
        &lt;wsdlsoap:address location="http://mylink.fr/wsdl"/&gt;
     &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>I'm getting this error :</p>
  
  <pre><code>SoapFault exception: [Server.userException] No such operation 'createPOI' in /var/www/devt/cronJobs/test.php:58 
  Stack trace: #0 /var/www/devt/cronJobs/test.php(58): SoapClient-&gt;__call('createPOI', Array) 
  #1 /var/www/devt/cronJobs/test.php(58): SoapClient-&gt;createPOI(Array) 
  #2 {main}
  </code></pre>
  
  <p>Can you say me where is my problem and explain me ?</p>
  
  <p>I'm a beginner with SOAP</p>
  
  <p>Thanks in advance</p>