大虾帮帮忙,我用myeclipse 6.5中的jax-ws自动生成webservices客户端代码时出现了问题,- <complexType name="GatewayOrderQueryRequest">
- <sequence>
<element name="endTime" nillable="true" type="soapenc:string" />
<element name="inputCharset" nillable="true" type="soapenc:string" />
<element name="merchantAcctId" nillable="true" type="soapenc:string" />
<element name="orderId" nillable="true" type="soapenc:string" />
<element name="queryMode" type="xsd:int" />
<element name="queryType" type="xsd:int" />
<element name="requestPage" nillable="true" type="soapenc:string" />
<element name="signMsg" nillable="true" type="soapenc:string" />
<element name="signType" type="xsd:int" />
<element name="startTime" nillable="true" type="soapenc:string" />
<element name="version" nillable="true" type="soapenc:string" />
</sequence>
</complexType>
其中type="soapenc:string"的soapenc:string无法解析我该怎么处理。
我用wsimport -keep ..............命令生成的错误提示如下
[WARNING] src-resolve: Cannot resolve the name 'soapenc:string' to a(n) 'type de
finition' component.
line 11 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl#t
ypes?schema1[WARNING] src-resolve: Cannot resolve the name 'impl:ArrayOf_tns1_GatewayOrderDe
tail' to a(n) 'type definition' component.
line 43 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl#t
ypes?schema1[ERROR] undefined simple or complex type 'soapenc:string'
line 11 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:Array'[ERROR] undefined attribute 'soapenc:arrayType'Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.internal.xjc.reader.internalizer.SCDBasedBindingSet.app
ly(SCDBasedBindingSet.java:201)
at com.sun.tools.internal.xjc.ModelLoader.createXSOM(ModelLoader.java:50
2)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem
aCompilerImpl.java:216)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem
aCompilerImpl.java:69)
at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bin
d(JAXBModelBuilder.java:120)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAX
BModel(WSDLModeler.java:2173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internal
BuildModel(WSDLModeler.java:173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildMod
el(WSDLModeler.java:119)
at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.jav
a:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:100)
at com.sun.tools.internal.ws.WsImport.main(WsImport.java:38)
大虾帮帮忙,谢谢大家了!!!
- <sequence>
<element name="endTime" nillable="true" type="soapenc:string" />
<element name="inputCharset" nillable="true" type="soapenc:string" />
<element name="merchantAcctId" nillable="true" type="soapenc:string" />
<element name="orderId" nillable="true" type="soapenc:string" />
<element name="queryMode" type="xsd:int" />
<element name="queryType" type="xsd:int" />
<element name="requestPage" nillable="true" type="soapenc:string" />
<element name="signMsg" nillable="true" type="soapenc:string" />
<element name="signType" type="xsd:int" />
<element name="startTime" nillable="true" type="soapenc:string" />
<element name="version" nillable="true" type="soapenc:string" />
</sequence>
</complexType>
其中type="soapenc:string"的soapenc:string无法解析我该怎么处理。
我用wsimport -keep ..............命令生成的错误提示如下
[WARNING] src-resolve: Cannot resolve the name 'soapenc:string' to a(n) 'type de
finition' component.
line 11 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl#t
ypes?schema1[WARNING] src-resolve: Cannot resolve the name 'impl:ArrayOf_tns1_GatewayOrderDe
tail' to a(n) 'type definition' component.
line 43 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl#t
ypes?schema1[ERROR] undefined simple or complex type 'soapenc:string'
line 11 of https://sandbox.99bill.com/apipay/services/gatewayOrderQuery?wsdl[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'
[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:string'[ERROR] undefined simple or complex type 'soapenc:Array'[ERROR] undefined attribute 'soapenc:arrayType'Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.internal.xjc.reader.internalizer.SCDBasedBindingSet.app
ly(SCDBasedBindingSet.java:201)
at com.sun.tools.internal.xjc.ModelLoader.createXSOM(ModelLoader.java:50
2)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem
aCompilerImpl.java:216)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(Schem
aCompilerImpl.java:69)
at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bin
d(JAXBModelBuilder.java:120)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAX
BModel(WSDLModeler.java:2173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internal
BuildModel(WSDLModeler.java:173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildMod
el(WSDLModeler.java:119)
at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.jav
a:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:100)
at com.sun.tools.internal.ws.WsImport.main(WsImport.java:38)
大虾帮帮忙,谢谢大家了!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货