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
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 =
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
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
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