kermit007 0 Newbie Poster

I have been stumpted with this problem for a couple of days now and can't figure out what i am doing wrong. I am trying to build a XML Document object and then create a Envelope, which is where the problem occurs i get the an error when i try create the Envelope object doing the following:

Envelope msgEnv = Envelope.unmarshall(docu.getDocumentElement());

the error:

Exception in sendAndReceiveSoapMessage : Root element of a SOAP message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.

The problem is that when i build the Document i put that attribute in the soapenv:Envelope section.

Not sure if i am building the Document object correctly but it opens in internet explorer if i save it to file without any problems