If your Axis2 client is working (without RM) then you should simply need to add:
serviceClient.engageModule("Sandesha2");
I *think* you can now have the Sandesha2.mar file just in the classpath. If that doesn't work then you need to have a repository and set AXIS2_REPOSITORY there.
Paul
PS you could also look at the samples in the Tungsten package which does this.
On 4/13/06, confusionvalley <
[EMAIL PROTECTED]> wrote:
Hello all,
I'm developing a client to use with Axis 2 and Sandesha 2.
In the server side the Sandesha 2 module is engaged and running.
To test the service i'm creating a very simple client but your "user guide" seems to be very poor to develop a client.
Can you give me a better guide to develop sandesha clients?
Do I need an Axis2.xml for the client? I need to do a repo for the client with the sandesha modules? Where the .class files will be then?
I can't understand very well how we can use Sandesha 2. I worked with Sandesha 1 and it was very simple to use...
This is the code i'm using just to use axis2 *without* sandesha:
---------------------------------------------------------
OMElement payload = ClientUtil.getCalculator2OMElement();
Options options = new Options();
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
//Blocking invocation
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(payload);
StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance ()
.createXMLStreamWriter(writer));
writer.flush();
System.out.println(writer.toString());
---------------------------------------------------------
Can you give me some help with this code and the module engaging in the client?
Best regards,
Nuno
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
