Web服务到SAP PI中的Web服务

时间:2016-01-11 10:53:56

标签: soap wsdl sap

我正在SAP PI中为webservice做一个名为webservice的场景。 我按照以下网址: http://saptechnical.com/Tutorials/XI/WebService2WS/Page9.htm

我最后使用tools-> display WSDL创建了WSDL文件。 我在WSDL URL步骤中给出了以下UR: http://BCHSAP003:55000/sap/xi/engine?channel=:SOAP_Request_BS_1:BS_Sender

在文件中创建的WSDL URL是: http://bchsap003:55000/sap/xi/engine?channel=:soap_request_bs_1:BS_Sender&amp 当我在浏览器中打开URL时,它提供以下内容:

 <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header></SOAP:Header>
<SOAP:Body>
<SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>SOAP:Client</faultcode>
<faultstring>Empty HTTP request received</faultstring>
<faultactor>http://sap.com/xi/XI/Message/30</faultactor>
<detail>
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"         SOAP:mustUnderstand="1">
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>
<SAP:P1/>
<SAP:P2/>
<SAP:P3/>
<SAP:P4/>
<SAP:AdditionalText/>
<SAP:Stack>
Empty HTTP query received; message processing not possible
</SAP:Stack>
</SAP:Error>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>

当我从SOAP UI测试WSDL文件时,它没有返回任何响应。 我将SOAP中的身份验证更改为抢占式,然后获得以下响应:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">     <SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>System Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context/>
<code>MESSAGE.GENERAL</code>
<text/>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>**strong text**

我认为WSDL存​​在一些问题。

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

我在PI无法识别的目标网址中写了主机名。 我把它改成了IP。 它现在正常工作。