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

Need help with namespaces, nested arrays

Expand Messages
  • warren_gill
    I ve been trying to write a client to this web service that requires a request that s a bit complicated. I can t figure out all the tricks to set the
    Message 1 of 1 , Apr 6, 2007
    • 0 Attachment
      I've been trying to write a client to this web service that requires a request that's a bit complicated. I can't figure out all the tricks to set the namespaces and types to perform this "queryJobs" function.
      I'm not a PERL expert, but I'm trying to learn, and I've done this task in PHP (it wasn't easy).

      Here's the XML that I'm trying to produce:

      <?xml version="1.0" encoding="UTF-8"?>
        <SOAP-ENV:Envelope
          xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:ns1="http://services.ws.tws.ibm.com/TWS-Scheduling"
          xmlns:ns2="http://types.ws.tws.ibm.com/TWS-Types"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <SOAP-ENV:Body>
            <ns1:queryJobs>
            <ns1:engineName xsi:nil="true"/>
            <ns1:filter xsi:type="ns2:FilterCriteria">
              <ns2:details/>
              <ns2:value>
                <xsd:string>HOLD</xsd:string>
                <xsd:string>SUCC</xsd:string>
              </ns2:value>
              <ns2:minimum/>
              <ns2:maximum/>
              <ns2:dataType>INTERNAL_STATUS_LIST</ns2:dataType>
            </ns1:filter>
            </ns1:queryJobs>
          </SOAP-ENV:Body>
        </SOAP-ENV:Envelope>


      #! perl -w

      use SOAP::Lite +trace => 'debug';

      $WSDL = "http://localhost:31115/PlanServicesWeb/services/SchedulingFactory/wsdl/SchedulingFactory.wsdl";
      $serviceNS = "http://services.ws.tws.ibm.com/TWS-Scheduling";
      $typeNS = "http://types.ws.tws.ibm.com/TWS-Types";

      $service = SOAP::Lite->uri($serviceNS)->proxy($WSDL);

    Your message has been successfully submitted and would be delivered to recipients shortly.