• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create WSDL file for my spring web service ?

 
somayeh khodadad
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic