Skip to Content
avatar image
Former Member

How send Sender file to xi Receiver adapter in 1 STRING

Hello,

I have a question...

how I can send a archive XML through pi but I need send all xml in a STRING, whitout generate structure on data type, a STRING only.

example:

xml:

<?xml version="1.0" encoding="utf-8"?>

  <nr1:SENDER_MT xmlns:nr1="urn:integra:sap:legacy:comercionet:ZSDIN85">

    <Name>Juan</Name>

      <Last_Name>Perez</Last_Name>

</nr1:SENDER_MT>

RECEIVER PROXY XI:

<String>

     <?xml version="1.0" encoding="utf-8"?>

            <nr1:SENDER_MT xmlns:nr1="urn:integra:sap:legacy:comercionet:ZSDIN85">

                   <Name>Juan</Name>

                   <Last_Name>Perez</Last_Name>

           </nr1:SENDER_MT>

</String>

the XML in a String when get  PROXY.

I dont know how create the DATA TYPE and configure content conversion if is necesary.

help! 😊

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    May 23, 2013 at 02:11 PM

    how use this option? need I know the source structure?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Basically i was assuming since you have no knowledge of your input structure, let Data be your temporary structure with which the message reaches XI. Once it reaches in a mapping, we can handle it how ever we want.

  • avatar image
    Former Member
    May 08, 2013 at 10:32 AM

    Its would be File To file Scenario

    You can create single field at receiver structure and same at source end  map the source structure to receiver. At source channel With help of  FCC or module you can convert the full source file into single string and with mapping you can pass it to receiver structure and then post at receiver location.

    Add comment
    10|10000 characters needed characters exceeded

  • May 07, 2013 at 05:45 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Nabendu Sen

      I understand you,

      but my problem is the XML, because it's variable in structure.

      then, I want to send this one for PI but on a string,

      pj:

      xml:

      <STARXML>

      <data1> brian </data1>

      <data2> briones </data2>

      <dataN> bbriones89@gmail.com </dataN>

      <ENDXML>

      the XML structure can change and can send me much <DATA> .

      and I want to create a DATA TYPE:

      data type structure SENDER                                   data type structure RECEIVER

      XMLSTRING........./xsd:string....../0...1   <---->          XML........./xsd:string....../0...1 

      then, on XMLSTRING MUST HAVE:

      <XMLSTRING>

      <STARXML>

      <data1> brian </data1>

      <data2> briones </data2>

      <dataN> bbriones89@gmail.com </dataN>

      <ENDXML>

      </XMLSTRING>

      this one i dont know how do.

      in communication channel FILE SENDER, what must do?

      must selection file or file content conversion??

      if is file content conversion, how must configure the variable for get the XML on a STRING?

      Understand my questions?

      regars and thank nabendu

  • May 07, 2013 at 06:20 PM

    depending on your version of PI, there are multiple solutions

    http://wiki.sdn.sap.com/wiki/display/XI/Whole+Payload+to+a+XML+field

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Baskar Gopalakrishnan

      Hi Baskar ,

      you are the best in this one.

      the problem is I dont know how is the source STRUCTURE, I know is a XML very big, and i need send how string to PROXY(XI CC). Then, how configure the c. channel FILE and how mapping and create the data types.

      I hope you understand me becouse Im from Chile.

      Regards

  • May 08, 2013 at 03:50 AM

    Hi ,

    You can concat all fileds in Message Mapping thats it.

    Regards,

    Sreeni.

    Add comment
    10|10000 characters needed characters exceeded

  • May 08, 2013 at 09:29 PM

    you can use Return as XML feature in PI7.1 onwards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ninu, I made this choice, but how you say, then I source would have several <data>...

      may leave all the file in a <data>?

  • May 23, 2013 at 05:13 AM

    HI,

    

    You can try this option.


    xml.JPG (5.7 kB)
    Add comment
    10|10000 characters needed characters exceeded