• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

http get

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
money grubbing section goes here:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic