Hi
I have
a web service deployed that has the following method
public org.w3c.Document process(org.w3c.Document
doc)
{
...
return Document;
}
My
Client To access this web Service Looks like this
The
doc contains a XML Document.
String
namespace = "http://localhost:8080/IPlanMessageUpdate/services/IPlanMessageService"
;
String wsdlURL = "http://localhost:8080/IPlanMessageUpdate/services/IPlanMessageService?wsdl"; QName serviceQN = new QName( namespace, "IPlanMessageService"); QName portQN = new QName( namespace, "IPlanMessageService"); Service service = new Service(new URL(wsdlURL), serviceQN ); Call call = (Call) service.createCall( portQN, "updateProject" ); call.addParameter( "updateProjectRequest", Constants.XSD_ANYTYPE, ParameterMode.PARAM_MODE_IN ); call.addParameter("in",Constants.XSD_ANYTYPE,ParameterMode.PARAM_MODE_IN); call.setReturnType( Constants.XSD_ANYTYPE ); Document result = (Document) call.invoke( new Object[] { doc } ); I get
an exception like this which i am not able to solve
java.io.IOException: No mapped schema type for
org.w3c.dom.Document
at org.apache.axis.AxisFault.makeFault(Unknown Source) at org.apache.axis.SOAPPart.getAsString(Unknown Source) at org.apache.axis.SOAPPart.getAsBytes(Unknown Source) at org.apache.axis.Message.getContentLength(Unknown Source) at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source) at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source) at org.apache.axis.SimpleChain.doVisiting(Unknown Source) at org.apache.axis.SimpleChain.invoke(Unknown Source) at org.apache.axis.client.AxisClient.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 org.apache.axis.client.Call.invoke(Unknown Source) at test.TestIPlanMessage.doit(TestIPlanMessage.java:58) at test.TestIPlanMessage.main(TestIPlanMessage.java:67) Caused by: java.io.IOException: No mapped schema type for org.w3c.dom.Document at org.apache.axis.encoding.ser.ArraySerializer.serialize(Unknown Source) at org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unknown Source) at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown Source) at org.apache.axis.message.RPCParam.serialize(Unknown Source) at org.apache.axis.message.RPCElement.outputImpl(Unknown Source) at org.apache.axis.message.MessageElement.output(Unknown Source) at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source) at org.apache.axis.message.MessageElement.output(Unknown Source) ... 14 more Exception in thread "main" Any ideas as to how to write the client. Regards Krishnakumar B
DISCLAIMER: |
- RE: DOM as Parameter to Document Style Service Krishnakumar B
- RE: DOM as Parameter to Document Style Service Krishnakumar B
- RE: DOM as Parameter to Document Style Service Krishnakumar B
- RE: DOM as Parameter to Document Style Service Anjaneya Swamy Varada