Skip to Content
0

TCP/IP socket client to PI: How to make PI a socket server listener

Oct 24, 2016 at 12:46 PM

490

avatar image

So I was able to complete the POC related to PI connecting to a socket server (https://answers.sap.com/questions/28330/sap-pi-731-dual-stack-to-tcpip-socket.html?)

and now the next step is make PI as TCP/IP socket server. I am assuming that we will need to create a custom adapter module to be incorporated in the sender adapter.

Any ideas or directions are welcome.

Thanks,

Ashish

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

avatar image
Former Member Oct 28, 2016 at 10:36 AM
1

I have read some stuff about this topic and noticed, that you cannot create a socket listener within an EJB, so using a Java Proxy is not an option. So you really need to create a whole adapter, not only an adapter module.

I have read your example of calling a socket out of mapping. I cannot imagine that there is any practical use case for this. I think you want to send the whole payload to a socket server. So you should create a TCP/IP adapter for sender and receiver.
This is not an easy task.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 24, 2016 at 05:23 PM
0

Maybe you can go for Java Proxy. This is easier to develop. You can deploy your Java Proxy implementation on your PO installation.

Share
10 |10000 characters needed characters left characters exceeded
Ashish Goyal Oct 26, 2016 at 02:10 PM
0

Stefan,

We are on PI 7.31 dual stack.

Can the Java proxy be in listener mode all the time. And what would be the sender and the receiver adapter in this case?

My scenario is Socket client (3rd Party) > PI > SAP (Proxy)

Share
10 |10000 characters needed characters left characters exceeded
Ashish Goyal Oct 28, 2016 at 09:41 AM
0

Any input gurus?

Share
10 |10000 characters needed characters left characters exceeded
Ashish Goyal Oct 28, 2016 at 12:59 PM
0

To send the whole payload I was thinking of using DOM parser in UDF and then calling the socket connection. I can have a dummy channel in the receiver end. Cause all we need is to send the message to socket server.

As for PI acting as a Socket server, so are we saying there is no way other than creating a new adapter? Is this something SAP is working on in near future?

Thanks,

Ashish

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 12, 2017 at 03:19 PM
0

Did you find any solution for it?

Share
10 |10000 characters needed characters left characters exceeded