axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjula Peiris <manj...@wso2.com>
Subject Re: How to modify the SOAP envelope
Date Tue, 17 Feb 2009 16:04:15 GMT

On Tue, 2009-02-17 at 14:56 +0100, Rutger van Eerd - Vanboxtel BV wrote:
> Hello,
> 
> I am using Axis2/C 1.4 (actually WSF/C 1.3 which includes Axis2/C 1.4) to 
> send a SOAP 1.1 request, over HTTP, to a third-party SOAP server. The server 
> returns a SOAP fault (E_FAIL, Unspecified error).
> 
> However when I use a third party SOAP client to send the message, the SOAP 
> server does reply correctly.
> 
> I can see two differences between the Axis2 generated SOAP message and the 
> third party client SOAP message.
> - Axis2/C does not add an XML version preprocessing instruction before the 
> SOAP enveloppe.
> - The third party defines additional namespaces in the SOAP envelop element.
> 
> I am using the service client API and I build the payload manually (using 
> axiom_element_create() and friends).
> 
> Questions.
> - How can I make Axis2 add an XML version preprocessing instruction?

Set <parameter name="xml-declaration" insert="true"/> inside your http
transport_sender entry in the axis2.xml. 

> - How can I make Axis2 define additional namespaces to the SOAP envelop 
> element?

I am not sure this can be done from an Axis2/c client. BTW, why you want
this ? Are you adding custom headers(more than one) which are defined in
a single namespace? 

> 
> Regards,
> Rutger
> 
> 
> Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676
> 


Mime
View raw message