aspose file tools*
The moose likes Web Services and the fly likes http get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "http get" Watch "http get" New topic
Author

http get

Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi
I created a educational webservice, you can find it here
http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/

so how to send an HTTP get to it??
I tried
http://localhost:8080/WebServiceExample/circlefunctions/getArea?radius=5.0

I had nothing as a respons

thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
"Nothing" sounds a bit improbable. How are you sending the request to the service? If you're using a browser it's possible that the response is rendered as an empty page; check the page source.

You might also want to check the server logs to see if there are any error messages.


Ping & DNS - my free Android networking tools app
Nishant Modak
Greenhorn

Joined: Sep 29, 2006
Posts: 27
You can also try using cURL to post the message through command line.

Ref. URL:

cURL - command-line URL
Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi
I cannot locate loggers, since it is server embedded with j2ee, also
the page source contains nothing at all!!

I am still stuck they said in the tutorial that if I get WSDL
by
http://localhost:8080/WebServiceExample/circlefunctions?wsdl

this means it correctly deployed, I tried that and it work!

but
http://localhost:8080/WebServiceExample/circlefunctions?getArea=0.5
does not work

Is there a chance that this lib is not for http REST web-services and it is only supports SOAP, which I know nothing about it, and don't want to use it!!

Help I am stuck.

thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Judging by its URL, the article is about JAX-WS, which is indeed a SOAP-based API. JAX-WS services can't be accessed using REST-style URLs.

Check out JAX-RS (and its reference implementation called Jersey) instead: http://wikis.sun.com/display/Jersey/Main
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http get