严重: Couldn't invoke servlet request.
org.codehaus.xfire.XFireRuntimeException: Cannot create two schema elements with the same name and of different types: {http://Service_jws.adc_ws.zhongxing.com}in0
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createDocLitPart(WSDLBuilder.java:501)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createPart(WSDLBuilder.java:412)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.writeParameters(WSDLBuilder.java:570)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputParts(WSDLBuilder.java:548)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputMessage(WSDLBuilder.java:373)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createAbstractInterface(WSDLBuilder.java:234)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:161)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104)
at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380)
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125)
at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
org.codehaus.xfire.XFireRuntimeException: Cannot create two schema elements with the same name and of different types: {http://Service_jws.adc_ws.zhongxing.com}in0
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createDocLitPart(WSDLBuilder.java:501)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createPart(WSDLBuilder.java:412)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.writeParameters(WSDLBuilder.java:570)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputParts(WSDLBuilder.java:548)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputMessage(WSDLBuilder.java:373)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createAbstractInterface(WSDLBuilder.java:234)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:161)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104)
at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380)
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125)
at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
解决方案 »
- 学习hibernate报:Exception in thread "main" org.hibernate.Mapping异常Exception
- 求助 tomcat+jms的 具体实现。(openjms,activeMQ)
- 请教关于Spring Security
- 如何解决web程序不同浏览器窗口使用同一账号重复登录问题
- birt 文档
- 中小型企业系统的最佳解决方案
- 开发struts用eclipse还是MyEclipse好类?
- ibatis 框架 批量添加的写法
- 如何配置web.xml使得*.html的页面不经过Spring去解析?
- 很简单的问题,快来拿分
- myeclipse发布时如何包含引用JDK中的包?
- 单点登录谁搞过
有多个同名的schema标签。
document/literal service can't have method with the same params
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
- <wsdl:definitions targetNamespace="http://Service_jws.adc_ws.zhongxing.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://Service_jws.adc_ws.zhongxing.com" xmlns:intf="http://Service_jws.adc_ws.zhongxing.com" 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.3
Built on Oct 05, 2005 (05:23:37 EDT) -->
- <wsdl:message name="hashCodeResponse">
<wsdl:part name="hashCodeReturn" type="xsd:int" />
</wsdl:message>
- <wsdl:message name="equalsResponse">
<wsdl:part name="equalsReturn" type="xsd:boolean" />
</wsdl:message>
- <wsdl:message name="CorpBindRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="StaffBindResponse">
<wsdl:part name="StaffBindReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="deptBindingResponse">
<wsdl:part name="deptBindingReturn" type="xsd:string" />
</wsdl:message>
<wsdl:message name="hashCodeRequest" />
<wsdl:message name="toStringRequest" />
- <wsdl:message name="staffBindingRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="toStringResponse">
<wsdl:part name="toStringReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="corpBindingRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="corpBindingResponse">
<wsdl:part name="corpBindingReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="CorpBindResponse">
<wsdl:part name="CorpBindReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="StaffBindRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="deptBindingRequest">
<wsdl:part name="in0" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="staffBindingResponse">
<wsdl:part name="staffBindingReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="equalsRequest">
<wsdl:part name="in0" type="xsd:anyType" />
</wsdl:message>
- <wsdl:portType name="APService">
- <wsdl:operation name="hashCode">
<wsdl:input message="impl:hashCodeRequest" name="hashCodeRequest" />
<wsdl:output message="impl:hashCodeResponse" name="hashCodeResponse" />
</wsdl:operation>
- <wsdl:operation name="equals" parameterOrder="in0">
<wsdl:input message="impl:equalsRequest" name="equalsRequest" />
<wsdl:output message="impl:equalsResponse" name="equalsResponse" />
</wsdl:operation>
- <wsdl:operation name="toString">
<wsdl:input message="impl:toStringRequest" name="toStringRequest" />
<wsdl:output message="impl:toStringResponse" name="toStringResponse" />
</wsdl:operation>
- <wsdl:operation name="corpBinding" parameterOrder="in0">
<wsdl:input message="impl:corpBindingRequest" name="corpBindingRequest" />
<wsdl:output message="impl:corpBindingResponse" name="corpBindingResponse" />
</wsdl:operation>
- <wsdl:operation name="deptBinding" parameterOrder="in0">
<wsdl:input message="impl:deptBindingRequest" name="deptBindingRequest" />
<wsdl:output message="impl:deptBindingResponse" name="deptBindingResponse" />
</wsdl:operation>
- <wsdl:operation name="staffBinding" parameterOrder="in0">
<wsdl:input message="impl:staffBindingRequest" name="staffBindingRequest" />
<wsdl:output message="impl:staffBindingResponse" name="staffBindingResponse" />
</wsdl:operation>
- <wsdl:operation name="CorpBind" parameterOrder="in0">
<wsdl:input message="impl:CorpBindRequest" name="CorpBindRequest" />
<wsdl:output message="impl:CorpBindResponse" name="CorpBindResponse" />
</wsdl:operation>
- <wsdl:operation name="StaffBind" parameterOrder="in0">
<wsdl:input message="impl:StaffBindRequest" name="StaffBindRequest" />
<wsdl:output message="impl:StaffBindResponse" name="StaffBindResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ServiceSoapBinding" type="impl:APService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="hashCode">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="hashCodeRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="hashCodeResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="equals">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="equalsRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="equalsResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="toString">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="toStringRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="toStringResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="corpBinding">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="corpBindingRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="corpBindingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="deptBinding">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="deptBindingRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="deptBindingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="staffBinding">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="staffBindingRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:input>
- <wsdl:output name="staffBindingResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="CorpBind">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="CorpBindRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://Service_jws.adc_ws.zhongxing.com" use="encoded" />
满足ws-I的要求。
不要采用rpc-encoded的方式,有些元素类型都没定义。
如:
<wsdl:message name="equalsRequest">
<wsdl:part name="in0" type="xsd:anyType" />
</wsdl:message>
- <wsdl:definitions targetNamespace="http://Service_jws.adc_ws.zhongxing.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://Service_jws.adc_ws.zhongxing.com" xmlns:intf="http://Service_jws.adc_ws.zhongxing.com" 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.3
Built on Oct 05, 2005 (05:23:37 EDT)
以上红色部分全部相同,确实不同的namespace,这是不允许的,所以,会报错误:
two schema elements with the same name and of different types: {http://Service_jws.adc_ws.zhongxing.com}
却是不同的namespace