Anne-You are correct.  It's just the only thing in the XML that looks like a processing instruction, so admittedly we were shooting in the dark about this.
 
We've solved the problem on the WebLogic server side. I don't know the exact solution, except this wasn't the problem.

Thanks for your help, Anne.
-Doug


From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006 6:03 AM
To: [email protected]
Subject: Re: FW: sendXMLDeclaration not working?

The XML declaration is not a processing instruction. That isn't the cause of your error.

Anne

On 4/25/06, Doug Cottrell (Interactions) < [EMAIL PROTECTED]> wrote:

Hello-

I have created Axis client code to call a webservice hosted on a WebLogic server.  The Axis generated SOAP XML has the line:

        <?xml version="1.0" encoding="utf-8"?>
in it.  However, when the SOAP request is sent to WebLogic, WebLogic returns a SAX Exception "Processing instructions are not allowed within SOAP messages".

So we attempt to turn this off by using:
  <parameter name="sendXMLDeclaration" value="false"/>
in the <globalConfiguraton> section of the a client-config.wsdd file.  We've can verify it is reading this file, but the line we don't want is still being sent!

We are using Axis 1.3. Is sendXMLDeclaration not working, or are we doing something wrong?

Thanks
Doug


Reply via email to