wood burning stoves 2.0*
The moose likes Web Services and the fly likes How to create WSDL file for my spring web service ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create WSDL file for my spring web service ?" Watch "How to create WSDL file for my spring web service ?" New topic
Author

How to create WSDL file for my spring web service ?

somayeh khodadad
Greenhorn

Joined: Oct 31, 2010
Posts: 14

hi everybody,
according to this document : http://static.springsource.org/spring/docs/current/spring-framework-reference/html/remoting.html , I've written a web service that using JAX-WS in spring.
Now, i want to test my web service by an application in php. Therefore I need the WSDL file , but I don't know how to create it.

I would be glad if someone could help.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

If you were using Spring Webservices you could configure Spring to generate this for you at runtime. As this is basically a question on how to write a WSDL it is not Spring specific so I am going to move this thread to the webservices forum.


[How To Ask Questions][Read before you PM me]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Do you mean like step 2 in this link
https://blogs.oracle.com/artf/entry/a_simple_howto_of_web

or, I believe if you are deploying on an app server that the app server automatically generates the wsdl when you deploy.

In Spring Web Services, not the link that you posted. But the Web Service's project from Spring there is a bean you can create that will generate a wsdl file, run a test against that spring config and it generate a wsdl that you can then copy and change to your needs. But again that is just from the Spring Web Services project which is NOT jax-ws.

Hope that helps without completely knowing the answer.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Normally it's a simple as http:// your server etc/ servicename?wsdl

Then you can save it via the browser.

WP
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

William P O'Sullivan wrote:Normally it's a simple as http:// your server etc/ servicename?wsdl

Then you can save it via the browser.

WP


Yes, but something has to generate it in the first place and that is what the OP is asking. Either you deploy in an App Server that generates it on deploy, or you manually type up a .wsdl file, etc.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create WSDL file for my spring web service ?
 
Similar Threads
Web Service Request Validation against WSDL
Accessing webservice using dynamic proxies
Spring-WS client domain classes
web service questions to ask based on the client wsdl file and XML sample files
First JAX-WS webservice results in UnsupportedMediaException