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 Andy Karseras <ak...@gmail.com> on 2008/07/07 15:49:13 UTC

Changing/Adding SOAP Envelope

Hi,

I would like to set the SOAP envelope to a particular Namespace.

Once created (I used axiom_soap_envelope_create), how is this new envelope
used ?

Is it added to the ServiceClient ?  If so, how ?

Many thanks.


Andy

Re: Changing/Adding SOAP Envelope

Posted by Supun Kamburugamuva <su...@gmail.com>.
Hi,

Service client is for simple usages like specifying the payload. If you want
to go in to SOAP envelope level please consider about the op_client. op
client is used underneath the service client.

Supun.

On Mon, Jul 7, 2008 at 6:49 PM, Andy Karseras <ak...@gmail.com> wrote:

> Hi,
>
> I would like to set the SOAP envelope to a particular Namespace.
>
> Once created (I used axiom_soap_envelope_create), how is this new envelope
> used ?
>
> Is it added to the ServiceClient ?  If so, how ?
>
> Many thanks.
>
>
> Andy
>

Re: Changing/Adding SOAP Envelope

Posted by Andy Karseras <ak...@gmail.com>.
On Mon, Jul 7, 2008 at 11:30 AM, Manjula Peiris <ma...@wso2.com> wrote:

>
> On Mon, 2008-07-07 at 10:34 -0400, Andy Karseras wrote:
> >
> >
>
> >
> >
> > My aim is to change
> >
> > <?xml version='1.0' encoding='utf-8'?>
> > <soapenv:Envelope
> > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> > <soapenv:Header>
> >
> > to
> >
> > <?xml version='1.0' encoding='utf-8'?>
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> > <soapenv:Header>
> >
> > Is this possible at the Payload level ?
>
> Seems to me you want set the SOAP version 1.1. This can be done by
> adding the following line in your client code.
>
> axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
>
> Thanks,
> -Manjula.
>

That's it - perfect...many thanks.


>
> >
> >
> > Andy
> >
> >
> >
> >
> >
> >
> >                 Once created (I used axiom_soap_envelope_create), how
> >                 is this new envelope used ?
> >
> >                 Is it added to the ServiceClient ?  If so, how ?
> >
> >                 Many thanks.
> >
> >
> >                 Andy
> >
> >                 No virus found in this incoming message.
> >                 Checked by AVG - http://www.avg.com Version: 8.0.138 /
> >                 Virus Database: 270.4.6/1538 - Release Date: 7/7/2008
> >                 7:40 AM
> >
> >
> >
> >         --
> >         Samisa Abeysinghe Director, Engineering; WSO2 Inc.
> >
> >         http://www.wso2.com/ - "The Open Source SOA Company"
> >
> >
> >
> ---------------------------------------------------------------------
> >         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> >         For additional commands, e-mail:
> >         axis-c-user-help@ws.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Changing/Adding SOAP Envelope

Posted by Manjula Peiris <ma...@wso2.com>.
On Mon, 2008-07-07 at 10:34 -0400, Andy Karseras wrote:
> 
> 

> 
> 
> My aim is to change
> 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Header>
> 
> to
> 
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header>
> 
> Is this possible at the Payload level ?

Seems to me you want set the SOAP version 1.1. This can be done by
adding the following line in your client code.

axis2_options_set_soap_version(options, env, AXIOM_SOAP11);

Thanks,
-Manjula.

> 
> 
> Andy
> 
> 
>  
>         
>         
>                 
>                 Once created (I used axiom_soap_envelope_create), how
>                 is this new envelope used ?
>                 
>                 Is it added to the ServiceClient ?  If so, how ?
>                 
>                 Many thanks.
>                 
>                 
>                 Andy
>                 
>                 No virus found in this incoming message.
>                 Checked by AVG - http://www.avg.com Version: 8.0.138 /
>                 Virus Database: 270.4.6/1538 - Release Date: 7/7/2008
>                 7:40 AM
>                  
>         
>         
>         -- 
>         Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>         
>         http://www.wso2.com/ - "The Open Source SOA Company"
>         
>         
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>         For additional commands, e-mail:
>         axis-c-user-help@ws.apache.org
>         
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Changing/Adding SOAP Envelope

Posted by Andy Karseras <ak...@gmail.com>.
On Mon, Jul 7, 2008 at 10:26 AM, Samisa Abeysinghe <sa...@wso2.com> wrote:

> Andy Karseras wrote:
>
>> Hi,
>>
>> I would like to set the SOAP envelope to a particular Namespace.
>>
>
> Why do you want to do this at SOAP envelope level? You can do that at
> Payload level.
>
> Samisa...



My aim is to change

<?xml version='1.0' encoding='utf-8'?>
*<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">*
<soapenv:Header>

to

<?xml version='1.0' encoding='utf-8'?>
*<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
">*
<soapenv:Header>

Is this possible at the Payload level ?


Andy




>
>
>
>> Once created (I used axiom_soap_envelope_create), how is this new envelope
>> used ?
>>
>> Is it added to the ServiceClient ?  If so, how ?
>>
>> Many thanks.
>>
>>
>> Andy
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database:
>> 270.4.6/1538 - Release Date: 7/7/2008 7:40 AM
>>
>>
>
>
> --
> Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>
> http://www.wso2.com/ - "The Open Source SOA Company"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Changing/Adding SOAP Envelope

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Andy Karseras wrote:
> Hi,
>
> I would like to set the SOAP envelope to a particular Namespace.

Why do you want to do this at SOAP envelope level? You can do that at 
Payload level.

Samisa...

>
> Once created (I used axiom_soap_envelope_create), how is this new 
> envelope used ?
>
> Is it added to the ServiceClient ?  If so, how ?
>
> Many thanks.
>
>
> Andy
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.4.6/1538 - Release Date: 7/7/2008 7:40 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org