|
Now I’ve changed my code turning it
similar to the Tungsten SimpleTrader client. The code now is: -------------------------------- ConfigurationContext
configurationContext = null; EndpointReference targetEPR = new
EndpointReference(
"http://localhost:9762/axis2/services/calculator2"); String repo =
"C:\\tungsten-1.0-beta\\tungsten-1.0-beta\\repository\\services"; String axis2_xml =
"C:\\tungsten-1.0-beta\\tungsten-1.0-beta\\conf\\axis2.xml"; configurationContext =
ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, axis2_xml); ServiceClient sender = new
ServiceClient(configurationContext,new AxisService("calculator2"));
sender.getOptions().setTo(targetEPR); sender.engageModule(new
QName("sandesha2")); Options options = new Options(); options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP); sender.setOptions(options); OMElement payload =
ClientUtil.getCalculator2OMElement(); OMElement result =
sender.sendReceive(payload); StringWriter writer = new
StringWriter();
result.serialize(XMLOutputFactory.newInstance()
.createXMLStreamWriter(writer)); writer.flush();
System.out.println(writer.toString()); -------------------------------- And I always get: org.apache.axis2.AxisFault: Module not
found at
org.apache.axis2.description.AxisService.engageModule(AxisService.java:295) at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:284) at
calculator2.EchoBlockingClient.main(EchoBlockingClient.java:61) … The error is when he is engaging the
modules but I really don’t know what’s happening here since I have
sandesha2.mar in \repository\modules. This is really strange and I’m
getting out of ideas :( Cheers, Nuno From: Paul Fremantle
[mailto:[EMAIL PROTECTED] Hi On 4/13/06, confusionvalley
< [EMAIL PROTECTED]>
wrote:
|
- Sandesha2 Client confusionvalley
- Re: Sandesha2 Client Paul Fremantle
- RE: Sandesha2 Client Nuno Rodrigues
- RE: Sandesha2 Client Nuno Rodrigues
- RE: Sandesha2 Client Nuno Rodrigues
- Re: Sandesha2 Client Chamikara Jayalath
- Re: Sandesha2 Client Chamikara Jayalath
- RE: Sandesha2 Client Nuno Rodrigues
- Re: Sandesha2 Client Chamikara Jayalath
