Re: WO Tools for Consuming WebServices
Re: WO Tools for Consuming WebServices
- Subject: Re: WO Tools for Consuming WebServices
- From: Dov Rosenberg <email@hidden>
- Date: Tue, 08 Aug 2006 09:52:13 -0400
- Thread-topic: WO Tools for Consuming WebServices
Title: Re: WO Tools for Consuming WebServices
If you generate the client stubs for the WSDL using the Apache Axis tools (you can do that in an ANT script) it is very easy to consume webservices.
For example – to use a web service that provides an authenticate method in the WSDL do the following:
// URL To web services
url = "" URL(urlDomain + "/imws/services/SecurityServices");
// SecurityServicesSoapBindingStub is a generated client stub using the WSDL2Java
security = new SecurityServicesSoapBindingStub(url, null);
// execute the method from the web service that you want
result = security.authenticate(inputXml);
Steps:
- Generate java client bindings using WSDL2Java
- Put the generated code in your classpath
- write code like above
- Done
HTH
Dov Rosenberg
On 8/8/06 9:29 AM, "Jason Stratton" <email@hidden> wrote:
All,
WO has tools for creating web service applications and direct to web service applications, but are there any WO tools (outside of the Java community tools like JAX-WS) for consuming a web service? Thanks.
Jason
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Dov Rosenberg
Inquira Inc
370 Centerpointe Circle, ste 1178
Altamonte Springs, FL 32701
(407) 339-1177 x 102
(407) 339-6704 (fax)
email@hidden
AOL IM: dovrosenberg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden