cancel
Showing results for 
Search instead for 
Did you mean: 

SAP >> Pi >>Web service scenario.

Former Member
0 Kudos

Dear All.

We have a scenario where SAP (ECC)  will generate a IDOC which has to be converted to XML and then send that XML to third party through WEB SERVICE.According to my findings I would need WSDL file and link from third party.

Can you please guide me to develop this interface in SAP PI.

Thanks

Aarush>>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks baskar for the reply.

The problem that I m facing here is third party has just  provided me XML schema and the link with usrename and password, asking me to generate wsdl file from that.Do we need location tag in wsdl file or how can i generate wsdl from XML schema?

Also do I need to get any IP or port opened?

Thanks

Aarush

manigram
Active Participant
0 Kudos

HI,

Import the XSD which is shared by the target team in ESR and and open that XSD and click the WSDL tab as like image below and click export button to export the WSDL.

Even if you convert the XSD in to WSDL , you wont get the end point URL. receiver team should provide the user name, pwd and end point URL to connect the receiver application.

Regards,

Manigandan

Former Member
0 Kudos

Dear Manigandan,

Do I need to provide URL and username  and password in WSDL file. Just providing Link and username and password in Receiver channel will work?.

Thanks

Aarush

vishal1889
Active Participant
0 Kudos


Yes Aarush,

You need to maintain the URL, Credentials and depending on your Scenerio you might need to set up few parameters like

1)Check box for Donot use SOAP Envelope.

2) Mention SOA Action in the channel, if it is mentioned in the WSDL.

Thanks

VJ

manigram
Active Participant
0 Kudos

Hi,

Yes Just provide Link and username and password in Receiver channel will work, this is enough.

Regards,

Manigandan

Former Member
0 Kudos


Hi All,

We are getting the following errro:

Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Failed to get the input stream from socket: java.io.EOFException: Connection closed by remote host..

Third party has asked us to incorporate SSL Certificate in Cleint application.

IN SAP PI WE HAVE AN OPTION OF CONFIGURING CERTIFICATE AUTHENTICATION.

Please help.

Thanks

Aarush

rhviana
Active Contributor
0 Kudos

Yes Arush,

You can configurate there into NWA or Visual Administrator.

Into NWA you must insert the private key into DEFAULT Entry or create a new one like HANDSHAKE View and importe certificate.

Also you need configurate the SOAP Adapter to user the certificate digital for handshake like imagem below:

[

I dont have example for Visual administrator because the system that I have acess it´s 7.1+

I hope to help.

Kind regards,

Ricardo Viana.

Former Member
0 Kudos

Dear Ricardo,

Thanks for your input.

We have configure the same but still the same error is coming.Do we need to get any firewall setting change to access the link.The link provided to us by third party is a secured http.

Thanks

Aarush

rhviana
Active Contributor
0 Kudos

Hi Aarush,

Yes, you must release the 443 door for HTTPS + SSL connection.

Kind regards,

Ricardo VIana.

abhay_aggarwal
Participant
0 Kudos

Hi Aarush,

Third party will provide you the WSDL you can import wsdl and use it .

Regards,

Former Member
0 Kudos

Dear Abhay,

Thanks for the reply.

Can you please help me with the configuration that i need to do on receiver channel which would send data to third party or even share a note on the same.

Thanks

Aarush

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Very simple.  Third party will provide WSDL because they are hosting the web service.

You need to following in design and configuration

a) import WSDL as external definition in ESR.  You will use the messages as external type in the inbound interface (receiver side). 

b) you are going to use soap adapter to consume the web service.  If the third party requires authentication then you might have to use accordingly otherwise just http.   This is in the IR .

Extract the URL from the WSDL from the location tag and use it in the target field of the soap receiver channel.

If you need more help, you can refer scn for soap receiver scenario. Also you can refer this link for conifguration in soap receiver

XI/PI: A Guide to Using SAP XI SOAP Adapter