Y
yangjungis
Unregistered / Unconfirmed
GUEST, unregistred user!
WEB SERVICE 使用JAVA实现
出错信息:
JAXRPCTIE01: 处理请求时捕捉到异常: 意外的元素名称: expected=String_1,actual={urn:Res2BssWS/types}String_1
下面是WSDL文档内容:
<?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:Res2BssWS/wsdl" xmlns:ns2="urn:Res2BssWS/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="Res2BssWS" targetNamespace="urn:Res2BssWS/wsdl">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:Res2BssWS/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:Res2BssWS/types">
<complexType name="queryLogicNum">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryLogicNumResponse">
<sequence>
<element name="result" type="tns:EplNumVO" nillable="true" minOccurs="0" maxOccurs="unbounded"/></sequence></complexType>
<complexType name="EplNumVO">
<sequence>
<element name="LNum" type="string" nillable="true"/>
<element name="PNum" type="string" nillable="true"/>
<element name="id" type="decimal" nillable="true"/></sequence></complexType>
<complexType name="QueryNumberException">
<sequence>
<element name="message" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryPhysicNum">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryPhysicNumResponse">
<sequence>
<element name="result" type="tns:EplNumVO" nillable="true" minOccurs="0" maxOccurs="unbounded"/></sequence></complexType>
<element name="queryLogicNum" type="tns:queryLogicNum"/>
<element name="queryLogicNumResponse" type="tns:queryLogicNumResponse"/>
<element name="QueryNumberException" type="tns:QueryNumberException"/>
<element name="queryPhysicNum" type="tns:queryPhysicNum"/>
<element name="queryPhysicNumResponse" type="tns:queryPhysicNumResponse"/></schema></types>
<message name="Res2BssWSSEI_queryLogicNum">
<part name="parameters" element="ns2:queryLogicNum"/></message>
<message name="Res2BssWSSEI_queryLogicNumResponse">
<part name="result" element="ns2:queryLogicNumResponse"/></message>
<message name="QueryNumberException">
<part name="QueryNumberException" element="ns2:QueryNumberException"/></message>
<message name="Res2BssWSSEI_queryPhysicNum">
<part name="parameters" element="ns2:queryPhysicNum"/></message>
<message name="Res2BssWSSEI_queryPhysicNumResponse">
<part name="result" element="ns2:queryPhysicNumResponse"/></message>
<portType name="Res2BssWSSEI">
<operation name="queryLogicNum">
<input message="tns:Res2BssWSSEI_queryLogicNum"/>
<output message="tns:Res2BssWSSEI_queryLogicNumResponse"/>
<fault name="QueryNumberException" message="tns:QueryNumberException"/></operation>
<operation name="queryPhysicNum">
<input message="tns:Res2BssWSSEI_queryPhysicNum"/>
<output message="tns:Res2BssWSSEI_queryPhysicNumResponse"/>
<fault name="QueryNumberException" message="tns:QueryNumberException"/></operation></portType>
<binding name="Res2BssWSSEIBinding" type="tns:Res2BssWSSEI">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="queryLogicNum">
<soapperation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output>
<fault name="QueryNumberException">
<soap:fault name="QueryNumberException" use="literal"/></fault></operation>
<operation name="queryPhysicNum">
<soapperation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output>
<fault name="QueryNumberException">
<soap:fault name="QueryNumberException" use="literal"/></fault></operation></binding>
<service name="Res2BssWS">
<port name="Res2BssWSSEIPort" binding="tns:Res2BssWSSEIBinding">
<soap:address location="http://yangjun:8080/webservice/Res2BssWS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>
出错信息:
JAXRPCTIE01: 处理请求时捕捉到异常: 意外的元素名称: expected=String_1,actual={urn:Res2BssWS/types}String_1
下面是WSDL文档内容:
<?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:Res2BssWS/wsdl" xmlns:ns2="urn:Res2BssWS/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="Res2BssWS" targetNamespace="urn:Res2BssWS/wsdl">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:Res2BssWS/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:Res2BssWS/types">
<complexType name="queryLogicNum">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryLogicNumResponse">
<sequence>
<element name="result" type="tns:EplNumVO" nillable="true" minOccurs="0" maxOccurs="unbounded"/></sequence></complexType>
<complexType name="EplNumVO">
<sequence>
<element name="LNum" type="string" nillable="true"/>
<element name="PNum" type="string" nillable="true"/>
<element name="id" type="decimal" nillable="true"/></sequence></complexType>
<complexType name="QueryNumberException">
<sequence>
<element name="message" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryPhysicNum">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="queryPhysicNumResponse">
<sequence>
<element name="result" type="tns:EplNumVO" nillable="true" minOccurs="0" maxOccurs="unbounded"/></sequence></complexType>
<element name="queryLogicNum" type="tns:queryLogicNum"/>
<element name="queryLogicNumResponse" type="tns:queryLogicNumResponse"/>
<element name="QueryNumberException" type="tns:QueryNumberException"/>
<element name="queryPhysicNum" type="tns:queryPhysicNum"/>
<element name="queryPhysicNumResponse" type="tns:queryPhysicNumResponse"/></schema></types>
<message name="Res2BssWSSEI_queryLogicNum">
<part name="parameters" element="ns2:queryLogicNum"/></message>
<message name="Res2BssWSSEI_queryLogicNumResponse">
<part name="result" element="ns2:queryLogicNumResponse"/></message>
<message name="QueryNumberException">
<part name="QueryNumberException" element="ns2:QueryNumberException"/></message>
<message name="Res2BssWSSEI_queryPhysicNum">
<part name="parameters" element="ns2:queryPhysicNum"/></message>
<message name="Res2BssWSSEI_queryPhysicNumResponse">
<part name="result" element="ns2:queryPhysicNumResponse"/></message>
<portType name="Res2BssWSSEI">
<operation name="queryLogicNum">
<input message="tns:Res2BssWSSEI_queryLogicNum"/>
<output message="tns:Res2BssWSSEI_queryLogicNumResponse"/>
<fault name="QueryNumberException" message="tns:QueryNumberException"/></operation>
<operation name="queryPhysicNum">
<input message="tns:Res2BssWSSEI_queryPhysicNum"/>
<output message="tns:Res2BssWSSEI_queryPhysicNumResponse"/>
<fault name="QueryNumberException" message="tns:QueryNumberException"/></operation></portType>
<binding name="Res2BssWSSEIBinding" type="tns:Res2BssWSSEI">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="queryLogicNum">
<soapperation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output>
<fault name="QueryNumberException">
<soap:fault name="QueryNumberException" use="literal"/></fault></operation>
<operation name="queryPhysicNum">
<soapperation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output>
<fault name="QueryNumberException">
<soap:fault name="QueryNumberException" use="literal"/></fault></operation></binding>
<service name="Res2BssWS">
<port name="Res2BssWSSEIPort" binding="tns:Res2BssWSSEIBinding">
<soap:address location="http://yangjun:8080/webservice/Res2BssWS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>