Options

Linefeeds after creating XML DOM

SkeeveSkeeve Member Posts: 33
edited 2002-10-10 in Navision e-Commerce
Hi All,

well, there doesn't seem to be much traffic in this category but I'll try it anyway <img border="0" title="" alt="[Wink]" src="images/smiles/icon_wink.gif" />

I'm currently implementing Commerce Gateway for a client who will connect his Financials 2.65 to a vendor's SAP system.

So I mapped Navision's PO XML schema to SAP IDOC which works just fine.

My only problem here is that Navision doesn't create linefeeds while creating the XML DOM.
So the finished XML document goes through to MS BizTalk Server without linefeeds and the resulting SAP IDOC Document also doesn't have linefeeds.
Unfortunately the vendor must have linefeeds in order to being able to process the document.

Anybody any ideas on that one?

thanks,
Skeeve (mailto:tb@astongroup.de)

Comments

  • Options
    kodekajkodekaj Member Posts: 1
    Hello

    I know that this answer may not will help you very much, but I will write it anyway just to descripe the principles of XML formatting for transport of data via the internet.

    If you want to send an XML document to someone it is your responsibility to ensure that the your XML-document is formatted according to the recommendations of W3C.
    Since I do not belive, that the XML-documents Navision have developed do not apply to these standards I would say that it is the SAP-system that is not working according to the standard recommendations.
    If the recieving system need another format than the one formattet accordin to the standard recommendations it is their own responsibility to make the transformation of the document to fit their specific needs before. For this purpose XSL and XSLT has been created and I suggest that they start to use these tools themselves instead of forcing you to send a document that is not formatted according to the recommendations.

    But perhaps this is not a posssibility.
  • Options
    SkeeveSkeeve Member Posts: 33
    Thanks for your input and guess what. Of course you're absolutely right. Since our customer's partner (using SAP) already successfully connected CocaCola to their system I was of the opinion that they seem to be able to handle everything correctly.
    But that was not the case. Coke also uses SAP and they send a document including linebreaks.
    To make a long story short: Our cutomers's partner DID change his own scripts in order to being able to process STANDARD xml docuements WITHOUT linebreaks :-)

    thanks again,
    Skeeve
Sign In or Register to comment.