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

Glue to SOAP::Lite - nullPointerException

Expand Messages
  • edwardshallow
    Folks, (also posted to TME Yahoo Group) I am almost there on a Glue client to SOAP::Lite Perl server. Realize that this is more of a Glue question, but
    Message 1 of 1 , Aug 15, 2002
    • 0 Attachment
      Folks, (also posted to TME Yahoo Group)

      I am almost there on a Glue client to SOAP::Lite Perl server. Realize
      that this is more of a Glue question, but thought there might be some
      ideas out there.

      ENVELOPE sent to SOAP::Lite successfully digested and derserialized
      no problem. Here is what goes up to server from Glue:

      <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
      xmlns:xsd='http://www.w3.org/2001/XMLSchema'
      xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
      xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
      soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
      <soap:Body><n:Sign xmlns:n='http://localhost/EPMService'>
      <OrganizationID xsi:type='xsd:string'>Cisco</OrganizationID>
      <ApplicationID xsi:type='xsd:string'>Orders</ApplicationID>
      <Data xsi:type='xsd:string'>Data from EPMsimpleSOAPclient I want to
      sign</Data>
      </n:Sign>
      </soap:Body>
      </soap:Envelope>

      SOAP::Lite server picks this up and returns:

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><n:S
      ignResponse xmlns:n="http://localhost/EPMService"><TransactionStatus
      xsi:type="xsd:string">0</TransactionStatus>
      <PKCS7Data
      xsi:type="xsd:string">C2IrwYYqJ01uCoeYzLPtahdAJEtyHbp05oJxJBEnTMG0VCcr
      3PrdOEe3WCX7zWrq15M+VB1VRsb0M42rdSDgIzq0KKDbeiT84YZmBjJiOZ0kVJ9m+u/2SI
      MSaP3Ikg4BsgVIA8kRo5d0gXn7iyc7/jTT4GhqCAsSpTRPN+kg1g%3d%3d
      </PKCS7Data>
      </n:SignResponse>
      </soap:Body>
      </soap:Envelope>

      Here is the simple Java client which binds and invokes:

      String url = "http://localhost/epm-pme/EPMService.wsdl";
      Context context = new Context();
      context.setProperty( "endpoint", "http://localhost/epm-
      pme/EPMService.plx" );
      IEPMServicePortType epm =
      (IEPMServicePortType) Registry.bind( url,
      IEPMServicePortType.class, context );


      SignResponse resp = epm.Sign( "Cisco", "Orders", "Data from
      EPMsimpleSOAPclient I want to sign" );

      System.out.println( "TransactionStatus = " + resp.TransactionStatus );

      ... It bombs on the last line above while dereferencing the returned
      response object ??? with NullPointerException

      Here is map file:

      <?xml version='1.0' encoding='UTF-8'?>
      <!--generated by GLUE/wsdl2java on Thu Aug 15 11:22:29 EDT 2002-->
      <map:mappings xmlns:map='http://www.themindelectric.com/schema/'>
      <schema xmlns='http://www.w3.org/2001/XMLSchema'
      targetNamespace='http://localhost/EPMService'>
      <complexType name='SignResponse' map:class='SignResponse'>
      <sequence>
      <element name='TransactionStatus'
      map:field='TransactionStatus' type='string'/>
      <element name='PKCS7Data' map:field='PKCS7Data'
      type='string'/>
      </sequence>
      </complexType>
      </schema>
      </map:mappings>

      Help !!!! Big Project and I'm under the gun.
      Thanks in advance
      Ed
    Your message has been successfully submitted and would be delivered to recipients shortly.