空的xml名称空间是不允许的

时间:2019-01-26 13:09:40

标签: wso2 wso2esb esb

我想在wso2 esb中添加一个php Web服务作为代理。在添加代理服务后,当我想尝试该服务时,在请求正文中出现此错误:

 xmlns:p: Empty XML namespace is not allowed

当我在soap ui中添加此服务时,一切正常,但是在绑定名称空间的wso2 esb中,它有一个错误,我的服务是:

<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://wbs.sepand4.com/soap/Psco4" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://wbs.sepand4.com/soap/Psco4">
<types>
<xsd:schema targetNamespace="http://wbs.sepand4.com/soap/Psco4">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:schema>
</types>
<message name="getPathRequest">
<part name="wbsId" type="xsd:string"/>
<part name="user" type="xsd:string"/>
<part name="pass" type="xsd:string"/>
</message>
<message name="getPathResponse">
<part name="output" type="xsd:string"/>
</message>
<message name="getPathRequest">
<part name="wbsId" type="xsd:string"/>
<part name="user" type="xsd:string"/>
<part name="pass" type="xsd:string"/>
</message>
<message name="getPathResponse">
<part name="output" type="xsd:string"/>
</message>
<binding name="Psco4Binding" type="tns:Psco4PortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>  
<operation name="getPath">
<documentation>get Paths </documentation>
<input message="tns:getPathRequest"/>
<output message="tns:getPathResponse"/>
</operation>
<operation name="getPath">
<soap:operation soapAction="http://wbs.sepand4.com/site-v4/server.php/getPath" style="rpc"/>
<input>
<soap:body use="encoded" namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="Psco4">
<port name="Psco4Port" binding="tns:Psco4Binding">
<soap:address location="http://wbs.sepand4.com/site-v4/server.php"/>
</port>
</service>
</definitions>  

0 个答案:

没有答案