thx a lot for the answer.
i read the document and did how it was told, but i keep getting the same
error.
Here is the code snippet i use:
TCPServer t = new TCPServer(7777,"C:\\axis2"); //axis2.xml in this
repository contains <module ref="addressing"/>
t.start();
ConfigurationContext cc =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:\\test\\prova",
"C:\\test\\axis2.xml");//repository with addressing module
ServiceClient service = new ServiceClient(cc,null);
service.engageModule("addressing");
Options o = new Options();
EndpointReference er = new
EndpointReference("tcp://localhost:777/ConnectionManager");
o.setTo(er);
o.setAction("PerformNetworkMonitoring");
service.setOptions(o);
service.sendReceive(payload);
The service name is ConnectionManager and the operation is
PerformNetworkMonitoring. Using TCPMon i was able
to sniff the packet and i can see there is no reference to the service
name (in the W3C document http://www.w3.org/Submission/ws-addressing/
there is a <wsa:ServiceName
PortName="/xs:NCName/"?>/xs:QName/</wsa:ServiceName> but i cant find a
way to set it), so i dont
really know how the service dispatcher could dispatch this request.
thx for any help
yari
Deepal Jayasinghe ha scritto:
> Hi Yari ,
> When you start the server , you have to give axis2.xml or there will be
> axis2.xml in your repository . Please add
> <module ref="addressing"/> , there in that axis2.xml.
>
> In the client side , you have to call
>
> ServiceClient client = new ServiceClient();
> client.engageModule("addressing");
>
>
> The problem is discuss in http://wso2.org/library/233
>
> Thanks
> Deepal
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]