You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Yang Xiang <ya...@quest.com> on 2006/03/20 23:42:21 UTC
Absolute Newbie Question: how to enable SOAP 1.2 support in the sample userguide code?
I have just started playing with Axis2.0 and I need to know what are
required to convert the samples/userguide code to be SOAP1.2 messages. I
watched the HTTP traffic and they are still in SOAP1.1 format from the
0.93 source release. I am in dire need for a SOAP1.2 client to test one
of our services. So the question is:
What do I need to do to implement SOAP1.2 client support using Axis 2.0?
Thanks in advance,
Yang Xiang
Quest Software
Re:[Axis2] Absolute Newbie Question: how to enable SOAP 1.2 support
in the sample userguide code?
Posted by Eran Chinthaka <ch...@opensource.lk>.
Hi Yang,
Set the soap version using following method.
options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
HTH.
-- Eran Chinthaka
Yang Xiang wrote:
> I have just started playing with Axis2.0 and I need to know what are
> required to convert the samples/userguide code to be SOAP1.2 messages. I
> watched the HTTP traffic and they are still in SOAP1.1 format from the
> 0.93 source release. I am in dire need for a SOAP1.2 client to test one
> of our services. So the question is:
>
> What do I need to do to implement SOAP1.2 client support using Axis 2.0?
>
>
>
> Thanks in advance,
>
>
>
>
>
> Yang Xiang
>
> Quest Software
>
>
>
Re: Absolute Newbie Question: how to enable SOAP 1.2 support in the
sample userguide code?
Posted by Deepal Jayasinghe <de...@opensource.lk>.
hmm , sorry for the late reply.
Axis2 is in now 0.95 state and hope to release 1.0 soon , anyway answer
to your question is very simple.
- From 0.94 onwards we have ServiceClient and OperationClinet and
they can be configured using what is called "options" , so by using
following code you can set the SOAP version that you want to use , then
Axis2 automatically send the request correctly (even the HTTP herders)
Options options = new Options();
options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
ServiceClient client = new ServiceClinet();
client.setOption(options);
Yang Xiang wrote:
> I have just started playing with Axis2.0 and I need to know what are
> required to convert the samples/userguide code to be SOAP1.2 messages.
> I watched the HTTP traffic and they are still in SOAP1.1 format from
> the 0.93 source release. I am in dire need for a SOAP1.2 client to
> test one of our services. So the question is:
>
> What do I need to do to implement SOAP1.2 client support using Axis 2.0?
>
>
>
> Thanks in advance,
>
>
>
>
>
> Yang Xiang
>
> Quest Software
>
>
>
--
Thanks,
Deepal
................................................................
~Future is Open~