Hi ,

Require help to have a dynamic client for webservices developed in
Axis2-1.5.1 and Xmlbeans as the binding framework.

I am successfully using code metioned below as dynamic client for invoking
web services written in Axis2-1.5.1 & ADB framework ,

Please mention or guide me as what all changes i have to do in order to make
this code work for invoking webservices
written in Axis2-1.5.1 & Xml-beans.


ServiceClient serviceClient = new ServiceClient();
Options options = new Options();
options.setTo(new EndpointReference(endpointRef));
options.setAction(methodName);
serviceClient.setOptions(options);
OMElement res = serviceClient.sendReceive(createPayLoad(inputXml));
responseXml = res.toString();
System.out.println(responseXml);

// createPayLoad method
parser = XMLInputFactory.newInstance().createXMLStreamReader( new
StringReader(inputXml));
StAXOMBuilder builder = new StAXOMBuilder(OMAbstractFactory.getOMFactory(),
parser);
return documentElement = builder.getDocumentElement();

Thanks & Regards,
M.Prasad Rao

Reply via email to