axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnakumar B" <krishnakum...@mindtree.com>
Subject DOM as Parameter to Document Style Service
Date Wed, 05 Feb 2003 12:17:09 GMT
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:
This message (including attachment if any) is confidential and may be privileged. Before opening
attachments please check them for viruses and defects. MindTree Consulting Private Limited
(MindTree) will not be responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this message by mistake
please notify the sender by return  e-mail and delete this message from your system. Any unauthorized
use or dissemination of this message in whole or in part is strictly prohibited.  Please note
that e-mails are susceptible to change and MindTree shall not be liable for any improper,
untimely or incomplete transmission.

Mime
View raw message