Hello,
I'm migrating an old BTS solution to BTS 2010. In this solution we have IDOC xsd schemas generated using the old SAP adapter. I found a guide how to use the new WCF-Custom adapter with sapBinding to send these IDOCS without the need to change the solution or schema.
The method is to configure the send port like this:
Under SOAP action header set the following : http://Microsoft.LobServices.Sap/2007/03/Idoc/SendIdoc
under "Messages" tab select the template and paste the following:
<SendIdoc xmlns="http://Microsoft.LobServices.Sap/2007/03/Idoc/">
<idocData><bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/></idocData>
</SendIdoc>
However this only works when I send small Idocs, whenever I send a "bigger" idoc I receive the following error:
Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The length of the Data Record row (in bytes) is 4456. The maximum length (in bytes) that is allowed is 2126.
I've validated the data against the idoc schema and it passes validation.
I find it hard to believe that this SendIdoc action doesn't allow idocs greater than 2126 bytes, which isn't very big at all.
Has anyone encountered this problem? Any ideas?
Thanks