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 Brecht Yperman <Br...@invenso.com> on 2007/02/13 14:13:40 UTC

[Axis2] Hacking WS-AddressingConstants to support WSE2.0

Hi,

 

I'm trying to communicate with a WSE2.0-enhanced webservice.

 

So far I got the requests 90% equal using this:

in my code

client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSIO
N, Submission.WSA_NAMESPACE);

 

in ServiceClient (in sendReceive method)

getOptions().setAction(mc.getAxisOperation().getSoapAction());

 

I'm having but one problem left, I think, and that's the namespace of
WS-Addressing. In my example request this is 2004/03, the constant
Submission.WSA_NAMESPACE is 2004/08.

 

I tried to change the axis2-kernel-1.1.jar file, changing the constants
containing the namespace to
http://schemas.xmlsoap.org/ws/2004/03/addressing in the file
org.apache.axis2.addressing.AddressingConstants$Submission.

 

In my client code this is used, but in the addressing.mar-file, some
other class seems to be used as this:

 

if
(Submission.WSA_NAMESPACE.equals(addressingVersionFromCurrentMsgCtxt))

 

always returns false and the content of
addressingVersionFromCurrentMsgCtxt is
http://schemas.xmlsoap.org/ws/2004/03/addressing

 

 

Does anyone know how I can fix this, or is there a proper way to do
this, or...?

 

Thanks,

Brecht


Re: [Axis2] Hacking WS-AddressingConstants to support WSE2.0

Posted by David Illsley <da...@gmail.com>.
I suspect the problem is that the original string constant has been
compiled into the class in the mar.

I suggest re-building the mar using classes compiled against your
patched Constants file.

David

On 13/02/07, Brecht Yperman <Br...@invenso.com> wrote:
>
>
>
>
> Hi,
>
>
>
> I'm trying to communicate with a WSE2.0-enhanced webservice.
>
>
>
> So far I got the requests 90% equal using this:
>
> in my code
>
> client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
> Submission.WSA_NAMESPACE);
>
>
>
> in ServiceClient (in sendReceive method)
>
> getOptions().setAction(mc.getAxisOperation().getSoapAction());
>
>
>
> I'm having but one problem left, I think, and that's the namespace of
> WS-Addressing. In my example request this is 2004/03, the constant
> Submission.WSA_NAMESPACE is 2004/08.
>
>
>
> I tried to change the axis2-kernel-1.1.jar file, changing the constants
> containing the namespace to
> http://schemas.xmlsoap.org/ws/2004/03/addressing in the
> file
> org.apache.axis2.addressing.AddressingConstants$Submission.
>
>
>
> In my client code this is used, but in the addressing.mar-file, some other
> class seems to be used as this:
>
>
>
> if
> (Submission.WSA_NAMESPACE.equals(addressingVersionFromCurrentMsgCtxt))
>
>
>
> always returns false and the content of
> addressingVersionFromCurrentMsgCtxt is
> http://schemas.xmlsoap.org/ws/2004/03/addressing
>
>
>
>
>
> Does anyone know how I can fix this, or is there a proper way to do this,
> or…?
>
>
>
> Thanks,
>
> Brecht


-- 
David Illsley - IBM Web Services Development

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