Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > consuming the web service

Reply
Thread Tools

consuming the web service

 
 
Sam Takoy
Guest
Posts: n/a
 
      05-20-2010
Hi,

I've been tasked with building an application that will consume this web
service:

http://epfr.com/epfrdata.asmx?WSDL

I know java and tomcat, but I know nothing about SOAP and WSDL. I hoping
that someone will point me in the right direction for approaching this task?

Is axis2 the right tool to look at here?

Thanks,

Sam
 
Reply With Quote
 
 
 
 
Mike Schilling
Guest
Posts: n/a
 
      05-20-2010
Sam Takoy wrote:
> Hi,
>
> I've been tasked with building an application that will consume this
> web service:
>
> http://epfr.com/epfrdata.asmx?WSDL
>
> I know java and tomcat, but I know nothing about SOAP and WSDL. I
> hoping that someone will point me in the right direction for
> approaching this task?
> Is axis2 the right tool to look at here?


There are a number of tools that, given a service's WSDL, will generate a
Java client for that service. Axis 2 is one of them. Try reading about its
wsdl2java tool.


 
Reply With Quote
 
 
 
 
Tom Anderson
Guest
Posts: n/a
 
      05-20-2010
On Thu, 20 May 2010, Sam Takoy wrote:

> I've been tasked with building an application that will consume this web
> service:
>
> http://epfr.com/epfrdata.asmx?WSDL
>
> I know java and tomcat, but I know nothing about SOAP and WSDL. I hoping that
> someone will point me in the right direction for approaching this task?
>
> Is axis2 the right tool to look at here?


It's one of the options. Last time i did this, i used Metro:

https://jax-ws.dev.java.net/

Because it's the reference implementation of JAX-WS, and because from the
little research i did, it seemed to have better support for the particular
WSDL features i needed than Axis2.

To use Metro, you apply the wsimport tool to your WSDL file, and it
generates a load of code (as source or class files). You put the generated
classes and the Metro libraries on your classpath, and you're away.

I should warn you, though: i just ran that WSDL through JBoss's WSDL
importer, and it rejected it because of a missing import in the schema.
You may have to do some hacking of the WSDL file to get it to work right.

tom

--
OK, mostly because of Tom, but not only because of his bloody irritating
character and songs.
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      05-20-2010
On 20-05-2010 01:46, Sam Takoy wrote:
> I've been tasked with building an application that will consume this web
> service:
>
> http://epfr.com/epfrdata.asmx?WSDL
>
> I know java and tomcat, but I know nothing about SOAP and WSDL. I hoping
> that someone will point me in the right direction for approaching this
> task?
>
> Is axis2 the right tool to look at here?


The most important rule for web service beginners are: don't
focus on SOAP and WSDL, but let the tools take care of that.

Axis2 is one of those tools.

wsdl2java -uri http://epfr.com/epfrdata.asmx?WSDL

will generate a file:

src/com/epfr/epfrdata/EPFRDataStub.java

which encapsulate the web service call.

Arne


 
Reply With Quote
 
jaap
Guest
Posts: n/a
 
      05-21-2010
Op 20-05-10 14:46, schreef Tom Anderson:
> On Thu, 20 May 2010, Sam Takoy wrote:
>
>> I've been tasked with building an application that will consume this
>> web service:
>>
>> http://epfr.com/epfrdata.asmx?WSDL
>>
>> I know java and tomcat, but I know nothing about SOAP and WSDL. I
>> hoping that someone will point me in the right direction for
>> approaching this task?
>>
>> Is axis2 the right tool to look at here?

>
> It's one of the options. Last time i did this, i used Metro:
>
> https://jax-ws.dev.java.net/
>
> Because it's the reference implementation of JAX-WS, and because from
> the little research i did, it seemed to have better support for the
> particular WSDL features i needed than Axis2.
>
> To use Metro, you apply the wsimport tool to your WSDL file, and it
> generates a load of code (as source or class files). You put the
> generated classes and the Metro libraries on your classpath, and you're
> away.
>
> I should warn you, though: i just ran that WSDL through JBoss's WSDL
> importer, and it rejected it because of a missing import in the schema.
> You may have to do some hacking of the WSDL file to get it to work right.
>
> tom
>


I know both Axis2 and JAX-WS and I prefer the latter. So follow Tom's
advise. The examples are very clear (and easy).

Jaap
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      05-21-2010
On 21-05-2010 05:12, jaap wrote:
> I know both Axis2 and JAX-WS and I prefer the latter.


So you know that JAX-WS is a standard and Axis2 is software
that implements the JAX-WS standard?



Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Consuming local web service - ok, remote web service -problem? dgleeson422111 ASP .Net Web Controls 0 01-26-2010 11:17 AM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Security 1 01-22-2008 09:08 PM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Web Services 1 01-20-2008 01:47 PM
SOAP Header in a Dot Net 2.0 Web Service Client Consuming a WCF 3.0 service. Curt K ASP .Net Web Services 3 06-15-2007 10:19 PM
vs2005 consuming web service, adding web reference ? only_me ASP .Net Web Services 2 09-25-2005 12:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57