• 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

Regarding Spring-WS

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I've written a webservice in Spring. It is dynamically generating the wsdl which i can see from the browser (using http://localhost:8080/EchoWS/services/contract.wsdl ) . Now i want to test the webservice from browser. I used http://localhost:8080/EchoWS/services/Hello but it is giving me the error "HTTP Status 405", "The specified HTTP method is not allowed for the requested resource ().."

Could anybody tell me what is wrong. Following is the wsdl which i can see in browser.



Thanks
Navin
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

Navin Pillu wrote:Now i want to test the webservice from browser. I used http://localhost:8080/EchoWS/services/Hello but it is giving me the error "HTTP Status 405", "The specified HTTP method is not allowed for the requested resource ().."


You cannot test a SOAP web service from a web browser. The error you see is because all request from clients of a SOAP web service are sent using HTTP POST requests (when HTTP transport is used). A web browser sends a GET requests, which is not allowed.
I advice you to use a tool like soapUI to test your web service.
Best wishes!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic