Re: Problem with XML QName when sending it to a webservice

2006-02-23 Thread Anne Thomas Manes
When using the messaging API, you must create the entire document that goes into the SOAP Body, not just the parameters. According to your WSDL, the child element of the SOAP Body must be , therefore that should be the root element of your document. AnneOn 2/22/06, Pedro Silva <[EMAIL PROTECTED]> w

Re: Problem with XML QName when sending it to a webservice

2006-02-22 Thread Pedro Silva
This a more detailed and accurate piece of my code and error. Just so that everybody understands what I'm trying to do is for the client to pass to my service some initializations parameters. Pedro *My Client Function* private void setSOAPDefaultSetttings() throws Exception { Document document =

Re: Problem with XML QName when sending it to a webservice

2006-02-22 Thread Anne Thomas Manes
Based on the error, my guess is that the services is not expected the child element of the SOAP Body to contain the element. (This element should be namespace qualified.)Can you provide the WSDL for the service? AnneOn 2/22/06, Pedro Silva <[EMAIL PROTECTED]> wrote: Hi again,Sorry I sent you some

Re: Problem with XML QName when sending it to a webservice

2006-02-22 Thread Pedro Silva
Hi again, Sorry I sent you some buggy code, sorry. I'm looking at this for hours This is the correct code: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); Document db = dbf.newDocumentBuilder(); Document document = db.newDocument(); Element docRoot = document.createElement("i

Problem with XML QName when sending it to a webservice

2006-02-22 Thread Pedro Silva
Hi everybody! I'm trying to build some XML document and send it on the fly to a webservice. I've managed to do this with a file using the parse method from javax.xml.parsers, But now I'm tryning to do it building my own XML doc. If I print the document I built everything looks ok, but when I inv