知道有wsdl2java,不知道有没有java2wsdl,呵呵.
解决方案 »
- spring问题?
- Sun Portal, OpenSSO, GlassFish, Single sign-on
- 请教:在一个视图里面有统计函数的时候出现UPDATE is not updatable
- 关于Struts页面映射的问题
- jsp/jsf页面显示的问题:根据session显示或不显示某些内容,不想内嵌片段<%%>代码
- jsp中同一个用户重复登录
- 怎样用JSP实现下面的功能?
- 导师给我出难题,J2EE做网站
- 请问大虾,哪里有xml文件的编码中文规范 tapestry的中文编码规范
- 怎样可以在servlet中设定时间自动执行一个动作(web app)
- 一个struts的问题
- 小弟急切请问如何将一个字符串变量作为方法名,万分火急!
真的有Java2WSDL。
用org.apache.axis.wsdl.Java2WSDL就能根据class文件生成wsdl
这是它的用法:
-h, --help
print this message and exit
-I, --input <argument>
input WSDL filename
-o, --output <argument>
output WSDL filename
-l, --location <argument>
service location url
-P, --portTypeName <argument>
portType name (obtained from class-of-portType if not specif
ied)
-b, --bindingName <argument>
binding name (--servicePortName value + "SOAPBinding" if not
specified)
-S, --serviceElementName <argument>
service element name (defaults to --servicePortName value +
"Service")
-s, --servicePortName <argument>
service port name (obtained from --location if not specified
)
-n, --namespace <argument>
target namespace
-p, --PkgtoNS <argument>=<value>
package=namespace, name value pairs
-m, --methods <argument>
space or comma separated list of methods to export
-a, --all
look for allowed methods in inherited class
-w, --outputWsdlMode <argument>
output WSDL mode: All, Interface, Implementation
-L, --locationImport <argument>
location of interface wsdl
-N, --namespaceImpl <argument>
target namespace for implementation wsdl
-O, --outputImpl <argument>
output Implementation WSDL filename, setting this causes --o
utputWsdlMode to be ignored
-i, --implClass <argument>
optional class that contains implementation of methods in cl
ass-of-portType. The debug information in the class is used
to obtain the method parameter names, which are used to set
the WSDL part names.
-x, --exclude <argument>
space or comma separated list of methods not to export
-c, --stopClasses <argument>
space or comma separated list of class names which will stop
inheritance search if --all switch is given
-T, --typeMappingVersion <argument>
indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC c
ompliant 1.2 indicates SOAP 1.1 encoded.)
-A, --soapAction <argument>
value of the operation's soapAction field. Values are DEFAUL
T, OPERATION or NONE. OPERATION forces soapAction to the nam
e of the operation. DEFAULT causes the soapAction to be set
according to the operation's meta data (usually ""). NONE
forces the soapAction to "". The default is DEFAULT.
-y, --style <argument>
The style of binding in the WSDL, either DOCUMENT, RPC, or W
RAPPED.
-u, --use <argument>
The use of items in the binding, either LITERAL or ENCODED
-e, --extraClasses <argument>
A space or comma separated list of class names to be added t
o the type section.
-C, --importSchema
A file or URL to an XML Schema that should be physically imp
orted into the generated WSDL
-X, --classpath
additional classpath elements
-d, --deploy
generate wsdd and java classes for deploying
Details:
portType element name= <--portTypeName value> OR <class-of-portType name>
binding element name= <--bindingName value> OR <--servicePortName value>Soap
Binding
service element name= <--serviceElementName value> OR <--portTypeName value>
Service
port element name= <--servicePortName value>
address location = <--location value>