Maybe I'm wrong but actually the org.apache.axis.encoding.ser.JAFDataHandlerSerializer is not provided in the given binary installation (axis.jar)
Send and receive Hotmail on your mobile device: Click Here
--- Begin Message ---concerning my previous mail. see below
As the NamespaceURI is null when the invoke() (see Call.java) method is called (document centric approach : MsgDispatcher)....
I had to force this value as following :
String url = "http://localhost:8080/axis/services/POSubmission" Service service = new Service();
Call client = (Call) service.createCall();
client.getMessageContext(). setTargetService("PoSubmission");
client.setTargetEndpointAddress( new java.net.URL(url) );
client.setOperationName( "doSubmission" );
client.setRequestMessage(new Message(po, true));
MessageContext msgContext= client.getMessageContext();
Message reqMsg = msgContext.getRequestMessage();
SOAPEnvelope reqEnv = reqMsg.getSOAPPart().getAsSOAPEnvelope();
SOAPBodyElement bodyrq = reqEnv.getFirstBody();
bodyrq.setNamespaceURI("PoSubmission") ;
client.invoke();
It is normal or it is a bug ?
thanks
*********************************Herve Attia Cell (650) 922-1973 Home (650) 992-3997 http://www.chez.com/attia/resume/ >From: "herve attia" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Issue sample MsgDispatcher. Call with null namespace URI for method null ! >Date: Sat, 09 Mar 2002 14:54:15 -0800 > >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 : > >> > > > > >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 >
Join the world’s largest e-mail service with MSN Hotmail. Click Here
--- End Message ---