wsgen not creating wsdl file

别等时光非礼了梦想. 提交于 2019-12-25 02:26:29

问题


I was following http://code.google.com/appengine/articles/soap.html to create a Web Service in Google App Engine. After reach item no 4, where i need to run wsgen to generate wsdl file for my Web Service, I found the sample syntax was given for Linux. I managed to find the syntax for Window but when i run it, It creates a package called jaxws but no xsd and wsdl file created. It only creates package com.example.jaxws and no other java files created in side the package.

What I did:

1st I compile the java file in CMD

C:\Smartag_Eclipse_Project\HelloSOAPServer\src>javac com\example\Greeter.java

2nd I run wsgen

C:\Smartag_Eclipse_Project\HelloSOAPServer\src>wsgen -cp . com.example.Greeter -
wsdl

Appreciate if someone could help me on this. Thanks.


回答1:


Problem solved.

wsgen -cp C:\Smartag_Eclipse_Project\HelloSOAPServer\war\WEB-INF\classes -wsdl -keep -r C:\Smartag_Eclipse_Project\HelloSOAPServer\war -d C:\Smartag_Eclipse_Project\HelloSOAPServer\war\WEB-INF\classes -s C:\Smartag_Eclipse_Project\HelloSOAPServer\src com.example.Greeter



来源:https://stackoverflow.com/questions/9598533/wsgen-not-creating-wsdl-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!