Hi
 
To add to this. Where is the Document Serializer in AXIS. I can see ElementSerializer but no Document in axis.jar
 
Any answers would be grateful.
 
Regards
Krishnakumar B
-----Original Message-----
From: Krishnakumar B
Sent: Wednesday, February 05, 2003 8:49 PM
To: [EMAIL PROTECTED]
Subject: RE: DOM as Parameter to Document Style Service

Hi
 
I generated the client stubs for Document style that takes 
a DOM as parameter & returns a DOM but am getting this exception ( No serializer found for XmlDocument ). How do i fix this.
 
java.io.IOException: No serializer found for class org.apache.crimson.tree.XmlDo
cument in registry org.apache.axis.encoding.SerializationContextImpl@587c94
        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 localhost.IPlanMessageServiceSoapBindingStub.updateProject(IPlanMessa
geServiceSoapBindingStub.java:99)
        at IPlanStubClient.main(IPlanStubClient.java:32)
Caused by: java.io.IOException: No serializer found for class org.apache.crimson
.tree.XmlDocument in registry org.apache.axis.encoding.SerializationContextImpl@
587c94
        at org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unk
nown Source)
        at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown S
ource)
        at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Unk
nown Source)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source)
        at org.apache.axis.message.MessageElement.output(Unknown Source)
 
Regards
Krishnakumar B
-----Original Message-----
From: Krishnakumar B
Sent: Wednesday, February 05, 2003 5:47 PM
To: [EMAIL PROTECTED]
Subject: DOM as Parameter to Document Style Service

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.

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.

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.

Reply via email to