Loading ...
Sorry, an error occurred while loading the content.

Where did my namespace go???

Expand Messages
  • Christopher
    S::L is producing a bogus SOAP message. Consider the following... $proxy = SOAP::Lite- service($wsdl_path); $proxy- soap_addTask($task_type, $uid, $timeout,
    Message 1 of 1 , Apr 1 7:47 AM
    • 0 Attachment
      S::L is producing a bogus SOAP message. Consider the following...

      $proxy = SOAP::Lite->service($wsdl_path);
      $proxy->soap_addTask($task_type, $uid, $timeout, $task_params_s);

      Which produces the following SOAP message...

      <SOAP-ENV:Envelope
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
      <namesp1:soap_addTask xmlns:namesp1="TaskQueue">
      <task_type xsi:type="xsd:string">ocr</task_type>
      <uid xsi:type="xsd:string">cjb</uid>
      <timeout xsi:type="xsd:int">0</timeout>
      <task_params xsi:type="xsd1:StrArrayType"
      SOAP-ENC:arrayType="xsd:ur-type[6]">
      <item xsi:type="xsd:string">p2</item>
      <item xsi:type="xsd:string">int</item>
      <item xsi:type="xsd:string">2</item>
      <item xsi:type="xsd:string">p1</item>
      <item xsi:type="xsd:string">string</item>
      <item xsi:type="xsd:string">paramaeter 1</item>
      </task_params>
      </namesp1:soap_addTask>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Notice the line <task_params xsi:type="xsd1:StrArrayType". xsd1 is
      not defined anywhere and its causing my server to get pissed. My
      PHP, Python and C clients all work using the same WSDL. Whats up?

      Thanks for the help.
    Your message has been successfully submitted and would be delivered to recipients shortly.