Hello all,
I try to run sample based on a document-centric SOAP processing
(MsgDispatcher) approach with Axis Alpha3.
The deployment of this service look like :
<service name="POSubmission" pivot="MsgDispatcher">
<option name="className" value="bwsj.services.POSubmission"/>
<option name="methodName" value="doSubmission"/>
</service>
To invoke this document service, I have a client which looks like :
...
String url = "http://localhost:8080/axis/services/POSubmission"
Service service = new Service();
Call client = (Call) service.createCall();
client.setProperty( Call.NAMESPACE, "PoSubmission");
client.setTargetEndpointAddress( new java.net.URL(url) );
client.setRequestMessage(new Message(po, true));
client.setOperationName( "doSubmission" );
client.invoke();
...
I got the following error :
2002-03-09 14:39:58 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
Cannot invoke Call with null namespace URI for method null
at org.apache.axis.client.Call.invoke(Call.java:1221)
at bwsj.client.POSubmissionClient.invoke(Unknown Source)
so when I look at line 1221 of Call.java, it refers to this code section
if ( body.getNamespaceURI() == null ) {
throw new AxisFault("Call.invoke",
JavaUtils.getMessage("cantInvoke00", body.getName()),
null, null);
Why my namespace and method name are null ?!
It sounds that doing the following is not enough !?
client.setProperty( Call.NAMESPACE, "PoSubmission");
...
client.setOperationName( "doSubmission" );
thanks
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com