OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Sending an XML DOM Document to a webService

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Sending an XML DOM Document to a webService
  • From: Daniele Bellucci <daniele.bellucci@gmail.com>
  • Date: Tue, 21 Feb 2006 11:47:12 +0100
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=qzUZ5ZBKuECTad0VSaRlLtrziAq1x7HuIGKPkjM+w8kNHIwfuujQ2xwn/ASfRTt7dc3sj7eZQLeP1Y3ZnYAMdoxFRZyg6pASIkSSEQ4r35Rl8b9EDZCQuhUH0jJbF51eaIPu/ujSFU25DFup+4r4xcIPXC9MjIY+E/0JKJzwTkE=
  • Openpgp: id=9A0E8190
  • User-agent: Mozilla Thunderbird 1.0.7 (X11/20051011)

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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS