This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Regarding Spring-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Regarding Spring-WS" Watch "Regarding Spring-WS" New topic
Author

Regarding Spring-WS

Navin Pillu
Ranch Hand

Joined: Apr 19, 2005
Posts: 103
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
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!


My free books and tutorials: http://www.slideshare.net/krizsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding Spring-WS
 
Similar Threads
WSDL - One way operations
Need to create a web service in Java that reads data and results in XML.
Client for Axis2 POJO webservice giving error
Use the simpliest web server ever
How to bind JAXB persistant objects to WS parameters?