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