- 论坛徽章:
- 0
|
我这儿有这样一个 WSDL 文件: OAPush.wsdl- <wsdl:definitions targetNamespace="http://192.168.10.194/oapush/services/OAPush"
- xmlns:apachesoap="http://xml.apache.org/xml-soap"
- xmlns:impl="http://192.168.10.194/oapush/services/OAPush"
- xmlns:intf="http://192.168.10.194/oapush/services/OAPush"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--WSDL created by Apache Axis version: 1.2.1
- Built on Jun 14, 2005 (09:15:57 EDT)-->
- <wsdl:message name="push_OA_DataResponse">
- <wsdl:part name="push_OA_DataReturn" type="soapenc:string" />
- </wsdl:message>
- <wsdl:message name="push_OA_DataRequest">
- <wsdl:part name="sXmlContent" type="soapenc:string" />
- <wsdl:part name="sDocID" type="soapenc:string" />
- <wsdl:part name="sUserID" type="soapenc:string" />
- <wsdl:part name="sFrom" type="soapenc:string" />
- </wsdl:message>
- <wsdl:portType name="IOAPush">
- <wsdl:operation name="push_OA_Data" parameterOrder="sXmlContent sDocID sUserID sFrom">
- <wsdl:input message="impl:push_OA_DataRequest" name="push_OA_DataRequest" />
- <wsdl:output message="impl:push_OA_DataResponse" name="push_OA_DataResponse" />
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="OAPushSoapBinding" type="impl:IOAPush">
- <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="push_OA_Data">
- <wsdlsoap:operation soapAction="" />
- <wsdl:input name="push_OA_DataRequest">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- namespace="http://oa..leadtone.com" use="literal" />
- </wsdl:input>
- <wsdl:output name="push_OA_DataResponse">
- <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- namespace="http://192.168.10.194/oapush/services/OAPush" use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="IOAPushService">
- <wsdl:port binding="impl:OAPushSoapBinding" name="OAPush">
- <wsdlsoap:address location="http://192.168.10.194/oapush/services/OAPush" />
- </wsdl:port>
- </wsdl:service>
- </wsdl:definitions>
复制代码 wsdl2java 运行结果:- C:\lyc>wsdl2java -uri OAPush.wsdl -p lyc -d adb -s -ss -sd -ssi -o build/service
- Using AXIS2_HOME: D:\JavaSoft\AXIS2\axis2-1.3
- Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_03
- Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.
- reflect.InvocationTargetException
- at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
- at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
- at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
- Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
- at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218)
- ... 2 more
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
- ... 3 more
- Caused by: org.apache.axis2.schema.SchemaCompilationException: {[url]http://schemas.xmlsoap.org/soap/encoding/[/url]}string is not
- supported.
- at org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler.java:819)
- at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:699)
- at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:478)
- at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1899)
- at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1788)
- at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:977)
- at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:886)
- at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:867)
- at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:518)
- at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
- at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:302)
- at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:212)
- at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80)
- ... 8 more
复制代码
[ 本帖最后由 chouy 于 2008-2-13 13:38 编辑 ] |
|