Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http get

 
Costa Lamona
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Nishant Modak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also try using cURL to post the message through command line.

Ref. URL:

cURL - command-line URL
 
Costa Lamona
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic