SAP PI中的Web服务到Web服务调用

问题描述 投票:0回答:1

我在SAP PI中做了一个叫做webservice to webservice的方案,我按照下面的URL。http:/saptechnical.comTutorialsXIWebService2WSPage9.htm。

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

在文件中创建的WSDL URL是。http:/bchsap003:55000sapxiengine?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用户界面测试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有一些问题。

谁能帮帮我?

soap wsdl sap sap-xi sap-pi
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.