Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - WebServices + JSP (how to get information)

 
Thread Tools Search this Thread
Old 10-31-2009, 12:11 PM   #1
Default WebServices + JSP (how to get information)


hi all,

I have no experience with Web Services. I have to do a small project
based on Web Service.
I would like to retrieve information from the Web services:
http://www.webservicex.net/WCF/Servi...ls.aspx?SID=48
I don't known how to do. I would like to retrieve information from
GetWeather method.
Please give me sample code.

best regards
Przemek


przemek_prv
  Reply With Quote
Old 10-31-2009, 01:19 PM   #2
Lew
 
Posts: n/a
Default Re: WebServices + JSP (how to get information)
przemek_prv wrote:
> hi all,
>
> I have no experience with Web Services. I have to do a small project
> based on Web Service.
> I would like to retrieve information from the Web services:
> http://www.webservicex.net/WCF/Servi...ls.aspx?SID=48
> I don't known how to do. I would like to retrieve information from
> GetWeather method.
> Please give me sample code.


<http://java.sun.com/webservices/>
<http://ws.apache.org/axis/java/index.html>

--
Lew


Lew
  Reply With Quote
Old 10-31-2009, 01:24 PM   #3
Arne Vajhøj
 
Posts: n/a
Default Re: WebServices + JSP (how to get information)
przemek_prv wrote:
> I have no experience with Web Services. I have to do a small project
> based on Web Service.
> I would like to retrieve information from the Web services:
> http://www.webservicex.net/WCF/Servi...ls.aspx?SID=48
> I don't known how to do. I would like to retrieve information from
> GetWeather method.


1) Get the Axis2 web service toolkit.

2) Use the WSDL2Java tool to generate a stub for the web service.

3) Call that Java code from your JSP (or Struts action or JSF
backing bean).

Item #1-2 can be replaced by running a suitable wizard in your IDE,
if it comes with web service client support (which the most popular
IDE's do).

Arne


Arne Vajhøj
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue 18 of The ISO 27000 Newsletter Released Sue Thomas Computer Security 0 05-15-2008 07:59 PM
Study at Institute of Information Sciences & Technology, Massey University, New Zealand - Computer Science, Electronic and Infocomm Engineering and Statistics Computer Information 0 12-08-2006 02:04 AM
DVD super multi drive cd write problem.. ashjas Computer Support 0 07-16-2006 06:14 AM
Disabling Task Mgr. in Windows XP Bob H Computer Support 9 02-05-2006 05:02 AM
Licensed CPU support information on OEM product purchase. =?Utf-8?B?UGV0ZXIgQnJhdGNoZXI=?= Windows 64bit 5 05-17-2005 10:42 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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