cancel
Showing results for 
Search instead for 
Did you mean: 

.net connector 2.0 and idocs with xml

Former Member
0 Kudos

I want to use the .net connector 2.o to intercept outgoing (from SAP perspective) Idocs. I subsequently like to pass them along as well-formed xml to another application.

Do I need XI for that or is there an easy way to do that in c#. We are trying to replace the BC which is outdated with the .net connector which I have enjoyed using for rfc related applications.

Best ragards

Hans

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

SAP .NET Connector can send and receive Text-IDOCS (not XML) using IDocSender and IDocReceiver classes. It can NOT automatically interpret or create them.

For XML-based IDocs you can use Microsoft's XML Servializer (in conjunction with an XSD that you get from ifr.sap.com). To send or receive them, SAP .NET Connector doesn't have a built-in feature. However, AFAIK newer SAP servers (6.20 or higher) have an XML/TCP port that allows to send or receive them directly using normal sockets. Unfortunately I'm not an expert in this area - I can't tell you details. Of cause you can also use XI for sending and receiving XML-IDocs.