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]

Reply via email to