You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Rutger van Eerd - Vanboxtel BV <rv...@vanboxtel.nl> on 2009/02/19 15:18:31 UTC

Operation Client API

Hello,

AFAIK Axis2/C always adds a SOAP Header element, even if there are no SOAP 
headers. In this case the Header element is empty, e.g. 
<soapenv:Header></soapenv:Header>.

I have to communicate to a SOAP service which appears to be broken; it 
cannot handle the SOAP Header element, even if it is empty. The best 
solution is of course to correct the service, but that is beyond my control.

So I want to remove the SOAP Header element from my SOAP message. I think I 
have to use the operation client API (instead of the service client) to do 
that. However I cannot find any examples, tutorials or documentation to get 
started. Can someone provide this? Can someone explain the basic steps for 
using the operation client?

Regards,
Rutger 


Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676


Re: Operation Client API

Posted by Rajika Kumarasiri <ra...@gmail.com>.
On Thu, Feb 19, 2009 at 7:48 PM, Rutger van Eerd - Vanboxtel BV <
rveerd@vanboxtel.nl> wrote:
hi,
Try op_client API,
http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/include/axis2_op_client.h

Hello,
>
> AFAIK Axis2/C always adds a SOAP Header element, even if there are no SOAP
> headers. In this case the Header element is empty, e.g.
> <soapenv:Header></soapenv:Header>.
>
> I have to communicate to a SOAP service which appears to be broken; it
> cannot handle the SOAP Header element, even if it is empty. The best
> solution is of course to correct the service, but that is beyond my control.
>
> So I want to remove the SOAP Header element from my SOAP message. I think I
> have to use the operation client API (instead of the service client) to do
> that. However I cannot find any examples, tutorials or documentation to get
> started. Can someone provide this? Can someone explain the basic steps for
> using the operation client?
>
> Regards,
> Rutger
>
> Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/

Re: Operation Client API

Posted by Supun Kamburugamuva <su...@gmail.com>.
Best example of using op_client is in the svc_client code. svc_client
internally uses the op_client. So if you look at svc_client code you can
find out how to use op_client.

Thanks,
Supun.

On Thu, Feb 19, 2009 at 7:18 PM, Rutger van Eerd - Vanboxtel BV <
rveerd@vanboxtel.nl> wrote:

> Hello,
>
> AFAIK Axis2/C always adds a SOAP Header element, even if there are no SOAP
> headers. In this case the Header element is empty, e.g.
> <soapenv:Header></soapenv:Header>.
>
> I have to communicate to a SOAP service which appears to be broken; it
> cannot handle the SOAP Header element, even if it is empty. The best
> solution is of course to correct the service, but that is beyond my control.
>
> So I want to remove the SOAP Header element from my SOAP message. I think I
> have to use the operation client API (instead of the service client) to do
> that. However I cannot find any examples, tutorials or documentation to get
> started. Can someone provide this? Can someone explain the basic steps for
> using the operation client?
>
> Regards,
> Rutger
>
> Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676
>
>


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Re: Operation Client API

Posted by Manjula Peiris <ma...@wso2.com>.
I am not sure about the previous Axis2/C releases but in the current svn
trunk Axis2/C does not send empty Headers. 

On Thu, 2009-02-19 at 15:18 +0100, Rutger van Eerd - Vanboxtel BV wrote:
> Hello,
> 
> AFAIK Axis2/C always adds a SOAP Header element, even if there are no SOAP 
> headers. In this case the Header element is empty, e.g. 
> <soapenv:Header></soapenv:Header>.
> 
> I have to communicate to a SOAP service which appears to be broken; it 
> cannot handle the SOAP Header element, even if it is empty. The best 
> solution is of course to correct the service, but that is beyond my control.
> 
> So I want to remove the SOAP Header element from my SOAP message. I think I 
> have to use the operation client API (instead of the service client) to do 
> that. However I cannot find any examples, tutorials or documentation to get 
> started. Can someone provide this? Can someone explain the basic steps for 
> using the operation client?
> 
> Regards,
> Rutger 
> 
> 
> Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676
>