EAI XML Write to file

This is very useful business service when it come to developing Siebel EAI solutions. The purpose of the business service is self explanatory. so, in this post we are going to discuss details of the its available methods.

EAI XML Write to file supports 3 methods

  • Write Siebel Message ( WriteEAIMsg )
  • Write Property Set ( WritePropSet )
  • Write XML Hierarchy ( WriteXMLHier )

Each method has it’s own purpose and is used in different situations. Now, let’s go into details of each method

Write Siebel Message ( WriteEAIMsg ): This method is used to write a Siebel Message to a file (output of EAI Siebel Adapter – Query method).  This methods accepts 12 different arguments and honestly I have not use all of them. I can write something from bookshelf about each argument but that you can find for yourself. So, I will explain the important one’s ( according to me )

  • FileName: The path and name of the file in which you want to write output. For example if you want a file to be created in C drive with name SMessage.xml then the value you are going to pass to this argument is c:\\SMessage.xml. Type = String
  • SiebelMessage: Siebel Message that you want to write

P.S: The Root Element of your input argument should be SiebelMessage otherwise you will get an error.

Write Property Set ( WritePropSet ): This method can help you write any kind of hierarchical structure to a file. It need not to adhere to any IO structure or any XML hierarchy. So, if you create a hierarchy through property set in a script and want to see how it looks like, you can use this method. This method has just two input argument.

  • FileName: The path and name of the file in which you want to write output.
  • Any Hierarchical Property Set: You will not find this in the list of arguments because defining an arguments, creates some restriction on what can be passed.  Siebel wants us to pass anything as long as it is a valid property set,therefore they have not defined it in tools.

Write XML Hierarchy ( WriteXMLHier ): Once your Siebel Message is converted in XML Hierarchy, its structure changes along with the root element. XMLHierarchy (notice no space) will become your root element once you convert your Siebel Message into XML Hierarchy. This method supports 7 input arguments but only two are important (according to me)

  • FileName: The path and name of the file in which you want to write output.
  • XMLHierarchy: A hierarchical property set, adhering to XML standards and root element as XMLHierarchy.

It is best to use these methods and see for yourself the difference between the output of each method. In the next post I will show how you can test these business services without writing a script or creating a workflow.

This Post has been viewed : 25,791 Times

2 Responses to EAI XML Write to file

  1. Hello,

    it’s important to know that the method “WriteEAIMsg” expects the SiebelMessage as hierarchy being added as a child property set when you create it using script!!

Leave a Reply