aspose file tools*
The moose likes Web Services and the fly likes Can anyone pls help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Can anyone pls help" Watch "Can anyone pls help" New topic
Author

Can anyone pls help

Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
Hi All,

I am using AXIS 1.4 to develop a Webservice client. The development tool I ma using is WSAD 5.1.

Using the WSDL2Java I have generated the Stub classes. In order to invoke a client message handler, I am not using the client-config.wsdd file but instead I have modified the Stub class with the following code to invoke the client message handlers.
// Set the request message handler
ClientMsgReqHandler reqHandler = new ClientMsgReqHandler();
ClientMsgResHandler resHandler = new ClientMsgResHandler();
_call.setClientHandlers(reqHandler,resHandler);
return _call;

When run the application I get the following exception:

[11/9/06 12:51:44:238 IST] 255b255b SystemErr R AxisFault
faultCode: {http://www.w3.org/2003/05/soap-envelope}Sender
faultSubcode:
{http://www.w3.org/2003/05/soap-rpc}BadArguments
faultString: string
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:string
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.rmi.RemoteException.<init>(RemoteException.java:71)
at org.apache.axis.AxisFault.<init>(AxisFault.java:154)
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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.XML11Configuration.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(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at nl.interpay.www.InterActive.AccountInformation.AccountInformation_BindingStub.getInfo(AccountInformation_BindingStub.java)
at com.abnamro.nl.webservice.ipn.helpers.InterpayTransportMessage.sendReceiveMessage(InterpayTransportMessage.java)
at com.abnamro.nl.webservice.ipn.helpers.InterpayMessageProcessor.processMessage(InterpayMessageProcessor.java)
at com.abnamro.nl.webservice.ipn.jmsmodule.InterpayWebserviceMessageBean.onMessage(InterpayWebserviceMessageBean.java:81)
at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:208)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java)
at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:197)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:175)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1043)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:924)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:697)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:482)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:449)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
at java.lang.reflect.Method.invoke(Method.java)
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)


However when the remove the code to invoke the message handlers, the code works fine and the webservice is accessed. The above error is not thrown in this case.

Can anyone pls help me solve this issue?

Kind regards,
Anup
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can anyone pls help
 
Similar Threads
Problem with MDB
AXIS and DOM exception
InvocationTargetException when transferring a custom class in inheritance
Unclear Axis fault
Object reference not set to an instance of an object