I'd like someone make a comment on my solution.
Thanks
Mikelantonio
ServiceGroupContext
sgc=MessageContext.getCurrentMessageContext().getServiceGroupContext();
Is this code in client side or the server side ?
HashMap<QName,OMElement> map=new HashMap<QName,OMElement>();
QName qn=new QName("http://ws.apache.org/namespaces/axis2",
"ServiceGroupId");
OMElement el = AXIOMUtil.stringToOM("<axis2:ServiceGroupId
xmlns:axis2=\"http://ws.apache.org/namespaces/axis2\
<http://ws.apache.org/namespaces/axis2%5C>"
xmlns:wsa=\"http://www.w3.org/2005/08/addressing\
<http://www.w3.org/2005/08/addressing%5C>"
wsa:IsReferenceParameter=\"true\">"+sgc.getId()+"</axis2:ServiceGroupId>");
map.put(qn, el);
AdministratorServiceStub ass=new
AdministratorServiceStub("http://localhost:8080/Profiler0.1/services/AdministratorService");
ass._getServiceClient().engageModule("addressing-1.3");
ass._getServiceClient().getOptions().setManageSession(true);
ass._getServiceClient().getOptions().getTo().setReferenceParameters(map);
Please have a look at his too
http://wso2.org/library/3184
Thank you!
Deepal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]