问题描述
我遵循在Google App Engine中创建Web服务。在达到4号项目后,我需要运行wsgen为我的Web服务生成wsdl文件,我发现示例语法是针对Linux提供的。我设法找到Window的语法,但是当我运行它时,它创建了一个名为jaxws的包,但没有创建xsd和wsdl文件。它仅创建包 com.example.jaxws
,并且不在包内创建其他java文件。
我做了什么:
第一次我在CMD中编译java文件
C:\ Smartmart_Eclipse_Project\HelloSOAPServer\rcrc> javac com\example\Greeter.java
第二次运行wsgen
C:\ Smartmart_Eclipse_Project \你好SoAPServer \src> wsgen -cp。 com.example.Greeter -
wsdl
感谢有人能帮助我解决这个问题。
$ b
wsgen -cp C:\Smartag_Eclipse_Project\HelloSOAPServer\war\WEB-INF\classes -wsdl -keep -r C:\ Smartmart_Eclipse_Project\HelloSOAPServer\war -d
C:\Smartag_Eclipse_Project\HelloSOAPServer\war\WEB-INF\classes -s
C:\ Smartmart_Eclipse_Project\HelloSOAPServer\src com.example.Greeter
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.
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
这篇关于wsgen不创建wsdl文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!