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

Reply via email to