[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Sending an XML DOM Document to a webService

  • To: xml-dev@l...
  • Subject: Sending an XML DOM Document to a webService
  • From: Daniele Bellucci <daniele.bellucci@g...>
  • 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)

soapenv server.userexception
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.