that one has me stumped as well. sorry... -----Original Message----- From: Roman Br�ckner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: AW: Strange think
Thanks Brenda,
After your hint I checked my parser and am now using the same as the server,
actually it works fine for two methods in the service one returning a
java.util.Date Object the other returning a String, but the one which
returns a ComplexType (bean conform) causes the following exception:
java.lang.IllegalArgumentException: java.lang.NullPointerException@d1f0ad on
object "axisservice.AXISService", method name "getUserInfo", tried argument
types:
at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown
Source)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown
Source)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1550)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
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.MyServiceSoapBindingStub.getUserInfo(MyServiceSoapBindingStub.java
:123)
at axisservice.Client.main(Client.java:31)
Well I got a bit frustrated on this, because I don't know what could cause
the Problem.
Roman
-----Urspr�ngliche Nachricht-----
Von: Brenda Coulson [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. April 2002 16:52
An: [EMAIL PROTECTED]
Betreff: RE: Strange think
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:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 10:46 AM
To: [EMAIL PROTECTED]
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?
<<attachment: winmail.dat>>
