2012-11-13

使用PI 7.1生成WSDL

在SOAP2IDOC场景下,发送方的adaper为SOAP,PI能为调用web service的第三方提供WSDL。生成WSDL有两种方式,一种是通过Sender Agreement,另一种是通过Integration Repository –> Tools -> Display WSDL菜单。其中前者要求调用者提供访问PI的用户名和密码,而后者则无需提供。

Recently I had a requirement from third party system, to send message to PI without user name and password.

We having the scenario SOAP to IDOC. In sender side SOAP adapter and in IDOC as the receiver. I have developed the Interface and tested using SOAP test tool. After my testing I had send the WSDL to the thirdparty SaaS system. They told that they can't use this WSDL and use the URL end point instead. But here is the problem. Their Even Brocker system can't call the PI webservice with User ID and Password. They want webservice URL which should not have any user credential requirement.

As the SOAP adapter in PI requires the user ID and password to send message to PI. The normal way of extracting WSDL at the Sender Agreement level (Display WSDL) use Adapter Engine to send message and it requires user credentials.

Solution

Go to

Integration Repository –> Tools -> Display WSDL

This will popup another window.

Press the continue button and click on the button propose URL.

http://<server>:<port>/sap/xi/engine?type=entry

Then click continue and specify Interface and Specify Sender and finally save the WSDL to your computer.

没有评论:

发表评论