[Home] [By Thread] [By Date] [Recent Entries]
Hi all,
not sure if this ML is the right place to post such a question .. please
give me a try:
i need to deploy a Java Web Service (by using the Axis Container for
Tomcat) whose aim is to publish a Class Method to recieve an XML DOM
Document, parse it and then perform some action.
I tried to define such a method in the following way:
public class MYWS {
public void getXML(Document doc) { ... }
}
the WSDL looks fine to me:
...
<wsdl:message name="getXMLRequest">
<wsdl:part name="in0" type="tns1:Element"/>
</wsdl:message>
....
but when i try to post a request with curl i get the following error:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">wild</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
can anyone help me?
is there any link/tutorial to explain how to code a webservice to
receive a wellformed document?
many tnx in avance
|

Cart



