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 "Markus Wahl XA (KC/EMW)" <ma...@ericsson.com> on 2004/12/14 07:58:05 UTC

WASP - Axis Compatibility Issues

Are Wasp compatibel with Axis?

I have a Wasp web service I can consume using Wasp. But I do not succeed in consuming it using Axis. I have used the axis tool to generate java stubs from the wsdl of the Wasp service.

The Wasp web service is handling and returning the method invocation but the axis runtime throws an exception (below).

It should be noted that the method (startSession) uses in/out parameters.

I have attached the wsdl-file and included my axis source code:
com.systinet.wsdl.org.ledsystt.connector.hello.HelloServiceProducerWSStrategy_BindingStub binding;
try {
binding = (com.systinet.wsdl.org.ledsystt.connector.hello.HelloServiceProducerWSStrategy_BindingStub)
new com.systinet.wsdl.org.ledsystt.connector.hello.HelloServiceProducerWSStrategy_ServiceLocator().getHelloServiceProducerWSStrategy();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new NullPointerException("JAX-RPC ServiceException caught: " + jre);
}
System.out.println( "binding: " + binding );


// Time out after a minute
binding.setTimeout(60000);

// Test operation
try {
com.systinet.wsdl.data.kernel.Session value = null;

// SignatureHolder challengeReponse,
// CredStringHolder xmlCredentials

javax.xml.rpc.holders.ByteArrayHolder bh = new javax.xml.rpc.holders.ByteArrayHolder( challengeReponse.value );
com.systinet.wsdl.data.kernel.holders.CredStringHolder csh = new com.systinet.wsdl.data.kernel.holders.CredStringHolder(new com.systinet.wsdl.data.kernel.CredString( xmlCredentials.value.credentials ));

value = binding.startSession( serviceId, challenge, bh, csh );

challengeReponse.value = bh.value;
xmlCredentials.value.credentials = csh.value.getCredentials();

}
catch (com.systinet.wsdl.data.kernel.KernelException e1) {
throw new NullPointerException("KernelException9 Exception caught: " + e1);
} catch( java.rmi.RemoteException e ) {
e.printStackTrace();
}
 <<wsdl.xml>> 



07:41:54,312 ERROR - org.ledsystt.kernel.ComStratTimeouter.run(ComStratTimeouter.java:207) - Failure
java.lang.IncompatibleClassChangeError
at org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1387)
at org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:118)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at org.apache.axis.client.Call.invoke(Call.java:2702)
at org.apache.axis.client.Call.invoke(Call.java:2378)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at org.apache.axis.client.Call.invoke(Call.java:1758)
at com.systinet.wsdl.org.ledsystt.connector.hello.HelloServiceProducerWSStrategy_BindingStub.startSession(HelloServiceProducerWSStrategy_BindingStub
.java:779)
at org.ledsystt.connector.hello.HelloServiceConsumerWSStrategy.startSession(HelloServiceConsumerWSStrategy.java:157)
at org.ledsystt.kernel.ComStratTimeouter.run(ComStratTimeouter.java:183)
at java.lang.Thread.run(Thread.java:534)