You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Roman Brückner <rb...@ivu.de> on 2002/04/11 16:45:46 UTC

Strange think

Hi,
I have a AXIS WebService which is working fine, if I call it from a .NET
client. But when I take the the client code generated by (axis tool)
wsdl2java I get the following error:
 
java.lang.NoSuchMethodError
            at
org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown Source)
            at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at
localhost.GISConverterSoapBindingStub.getSystems(GISConverterSoapBindingStub.
java:161)
            at de.ivu.gis.coordinates.samples.Client.main(Client.java:22)
Exception in thread "main"
 
So what I checked the response, coming from the service which looks fine:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 3772
Date: Thu, 11 Apr 2002 14:40:11 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <ns1:getSystemsResponse
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://localhost:8070/axis/services/GISConverter">
   <getSystemsResult xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:string[70]"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <item xsi:type="xsd:string">LatLon</item>
    <item xsi:type="xsd:string">UTM</item>
   </getSystemsResult>
  </ns1:getSystemsResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
Does anybody knows what to do?

RE: Strange think

Posted by Brenda Coulson <bc...@cysive.com>.
You have an incompatibility with your XML parser - make sure it is JAXP
compliant.  Furthermore, ensure that your client and server are both using a
JAXP compliant XML parser.
 
brenda
-----Original Message-----
From: Roman Brückner [mailto:rbr@ivu.de]
Sent: Thursday, April 11, 2002 10:46 AM
To: axis-user@xml.apache.org
Subject: Strange think


Hi,
I have a AXIS WebService which is working fine, if I call it from a .NET
client. But when I take the the client code generated by (axis tool)
wsdl2java I get the following error:
 
java.lang.NoSuchMethodError
            at
org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown Source)
            at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at org.apache.axis.client.Call.invoke(Unknown Source)
            at
localhost.GISConverterSoapBindingStub.getSystems(GISConverterSoapBindingStub
.java:161)
            at de.ivu.gis.coordinates.samples.Client.main(Client.java:22)
Exception in thread "main"
 
So what I checked the response, coming from the service which looks fine:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 3772
Date: Thu, 11 Apr 2002 14:40:11 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <ns1:getSystemsResponse
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://localhost:8070/axis/services/GISConverter">
   <getSystemsResult xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:string[70]"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <item xsi:type="xsd:string">LatLon</item>
    <item xsi:type="xsd:string">UTM</item>
   </getSystemsResult>
  </ns1:getSystemsResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
Does anybody knows what to do?