Jim

I'm assuming you know how to create the XML payload of the SOAP body,
and parse the response body.

OMElement payload = ....;

ServiceClient sc = new ServiceClient("url-to-service");
sc.setAction(SOAPAction);
OMElement response = sc.sendReceive(payload);

You can also dynamically use the URL information and Actions etc from a WSDL:

ServiceClient sc = new ServiceClient(null, new URL(wsdlLocation), null,null);
In this case you need to specify the operation you are calling:

QName operation = new QName("submitPurchase");
response = sc.sendReceive(operation, payload);

Paul




On 3/23/07, Jim Alateras <[EMAIL PROTECTED]> wrote:
[resend with a more appropriate subject]

I was wondering whether someone could tell me whether axis2 can support
stubless (i.e. dynamic stubs) invocation of web services.

If so can you pls point me to any resources\examples?

cheers
</jima>


---------------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to