|
Hi all,
I have a problem with the addressing
module!!!
Actually this is the code of my
client:
WSTransferServiceStub stub = new
WSTransferServiceStub(configContext, "http://localhost:8080/axis2/services/WSTransferService");
ServiceClient sender =
stub._getServiceClient();
EndpointReference epr = new EndpointReference("http://localhost:8080/axis2/services/WSTransferService"); epr.addReferenceParameter(new QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","ResourceURI"), "http://harddisk" ); epr.addReferenceParameter(new QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","SelectorSet"), "3" ); System.out.println("EPR = "+ epr.ListReferenceParameters()); Options options = new Options(); options.setTo(epr); options.setAction("http://schemas.xmlsoap.org/ws/2004/09/transfer/GET"); stub._setServiceClient(sender); The SOAP message generated is the following:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap..org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:To>http://localhost:8080/axis2/services/WSTransferService</wsa:To>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo>
<wsa:MessageID>urn:uuid:BA4666E7C889EB8DB711543552270621</wsa:MessageID>
<wsa:Action>Get</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<Get />
</soapenv:Body>
</soapenv:Envelope>
The problem is that my reference parameters are not
added to the SOAP message.
I have checked into the code and it is due to a
null reference in the method processToEPR of the addressing module.
Moreover, the Action field is strange because it is
not http://schemas.xmlsoap.org/ws/2004/09/transfer/GET.
Personnally, I think the problem is located in the
method _setServiceClient.
First of all, I'd like to know if I'm using the
correct way to do this!!
Secondly, I'd like to know if you have heard about
this possible problem.
Any advices is welcome!
Thx a lot
Fabien
|
- [AXIS2] ReferenceParameter Fabien Couble
- Re: [AXIS2] ReferenceParameter Paul Fremantle
- Re: [AXIS2] ReferenceParameter Fabien Couble
- Re: [AXIS2] ReferenceParameter Paul Fremantle
