[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Sending an XML DOM Document to a webService
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|