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

java axis client

Expand Messages
  • Mohammadreza
    Hi, This is probably one of the most common problem people have had, but I have seen that they have overcome the problem. I also read all emails on this but
    Message 1 of 1 , Sep 1, 2004
    • 0 Attachment
      Hi,

      This is probably one of the most common problem people have had, but I
      have seen that they have overcome the problem. I also read all emails
      on this but unfortunately I am still struggling with this;

      this is my WSDL:

      <?xml version='1.0' encoding='UTF-8'?>
      <definitions name='MESDK' targetNamespace='urn:MESDK'

      xmlns='http://schemas.xmlsoap.org/wsdl/'
      xmlns:tns='urn:MESDK'
      xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
      xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
      xmlns:enc='http://schemas.xmlsoap.org/soap/encoding/'
      xmlns:xsd='http://www.w3.org/2001/XMLSchema'>

      <types>
      <xsd:schema targetNamespace="urn:MESDK">
      <xsd:complexType name="tsubmtr">
      <xsd:element name="fname" type="xsd:string" />
      <xsd:element name="lname" type="xsd:string" />
      </xsd:complexType>
      <xsd:complexType name="resultset">
      <xsd:sequence>
      <xsd:element name="rc" type="xsd:int" />
      <xsd:element name="tsubmtr" type="tns:tsubmtr" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
      </types>

      <message name='MXSDK_InitialDatabaseConnectRequest'>
      <part name='login' type='xsd:string'/>
      <part name='password' type='xsd:string'/>
      <part name='dsn' type='xsd:string'/>
      </message>
      <message name='MXSDK_InitialDatabaseConnectResponse'>
      <part name='MXSDK_InitialDatabaseConnectResult' type='xsd:int'/>
      </message>

      <message name='MXSDK_IsExistSubmitterRequest'>
      <part name='login' type='xsd:string'/>
      </message>
      <message name='MXSDK_IsExistSubmitterResponse'>
      <part name='MXSDK_IsExistSubmitterResult' type='tns:resultset'/>
      </message>

      <portType name='MESDKPortType'>
      <operation name='MXSDK_InitialDatabaseConnect'>
      <input message='tns:MXSDK_InitialDatabaseConnectRequest'/>
      <output message='tns:MXSDK_InitialDatabaseConnectResponse'/>
      </operation>
      <operation name='MXSDK_IsExistSubmitter'>
      <input message='tns:MXSDK_IsExistSubmitterRequest'/>
      <output message='tns:MXSDK_IsExistSubmitterResponse'/>
      </operation>
      </portType>
      <binding type='tns:MESDKPortType' name='MESDKBinding'>
      <soap:binding style='document'
      transport='http://schemas.xmlsoap.org/soap/http' />
      <operation name='MXSDK_InitialDatabaseConnect' >
      <soap:operation soapAction='urn:MESDK#MXSDK_InitialDatabaseConnect'/>
      <input>
      <soap:body use='literal'
      namespace='urn:MESDK'
      />
      </input>
      <output>
      <soap:body use='literal'
      namespace='urn:MESDK'
      />
      </output>
      </operation>
      <operation name='MXSDK_IsExistSubmitter' >
      <soap:operation soapAction='urn:MESDK#MXSDK_IsExistSubmitter'/>
      <input>
      <soap:body use='literal'
      namespace='urn:MESDK'
      />
      </input>
      <output>
      <soap:body use='literal'
      namespace='urn:MESDK'
      />
      </output>
      </operation>
      </binding>
      <service name='MESDK'>
      <documentation>
      MIAMExpress SDK web service
      </documentation>

      <port name='MESDKPort' binding='tns:MESDKBinding'>
      <soap:address location='http://localhost:7000/'/>
      </port>
      </service>
      </definitions>


      and this is soap request being sent to the server:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <MXSDK_IsExistSubmitter xmlns="urn:MESDK">
      <login xmlns="">helen</login>
      </MXSDK_IsExistSubmitter>
      </soapenv:Body>
      </soapenv:Envelope>


      and this is the soap response I ma getting from the server:

      <?xml version="1.0" encoding="UTF-8"?>
      <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:Body>
      <MXSDK_IsExistSubmitterResponse>
      <resultset>
      <rc>-1</rc>
      <tsubmtr>
      <tsubmtr_fname>helen</tsubmtr_fname>
      <tsubmtr_lname>keller</tsubmtr_lname>
      </tsubmtr>
      </result>
      </MXSDK_IsExistSubmitterResponse>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>


      this is the perl API:

      sub MXSDK_IsExistSubmitter
      {
      shift;
      my $login = shift(); # an scalar
      my $submitter = new SX_TSUBMTR; # SX_SUBMTR object

      my $rc = STATUS_OK;

      $rc = MX_DB_IsExistSubmitter($login,$submitter);

      my $params = SOAP::Data->name("resultset" =>
      \SOAP::Data->value( SOAP::Data->name("rc"=>$rc),
      SOAP::Data->name("tsubmtr" =>
      \SOAP::Data->value(SOAP::Data->name("tsubmtr_fname" =>
      $submitter->tsubmtr_fname),
      SOAP::Data->name("tsubmtr_lname" =>
      $submitter->tsubmtr_lname)
      )
      )
      )
      );

      return $params;
      }


      and for client I am using DynamicInvoker.java which is an example in
      Axis package.

      and this is what I get from it

      org.xml.sax.SAXException: Deserializing parameter 'resultset': could
      not find deserializer for type {urn:MIAMExpressSDK}resultset
      .....
      .....


      the very same SOAP-lite server is working with perl client.


      I would really appreciate your help.
      Regards
    Your message has been successfully submitted and would be delivered to recipients shortly.