Friday, March 6, 2015

Siebel: Remove Empty XML Tags

We can use the "siebel_ws_param:RemoveEmptyTags" parameter to remove empty xml tags during web service calls.

The "RemoveEmptyTags" parameter can be used in 2 ways to remove the empty xml tags as below:



1.)Add the "RemoveEmptyTags" parameter to a property set in the input xml file.

Add the Highlighted text in bold to the parent <Propertyset> Tag as below.

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

   <?Siebel-Property-Set EscapeNames="true"?>

        <PropertySet siebel_undws_undparam_clnRemoveEmptyTags="Y">

                <SiebelMessage>
                 ...
                  ...
               </SiebelMessage>

</PropertySet> 







2.)Add the "siebel_ws_param:RemoveEmptyTags" parameter to the workflow process to enable the workflow to automatically remove all the empty tags from the xml message.
This is achieved by adding the parameter as a Workflow process property and then using it as an input argument to the workflow step where we read the xml file.

In the workflow process, add a new process property:

Name = Remove Empty Tags
Data Type = String
In/Out = In


Add the below input argument to the workflow step which is sued to read the xml message:

Input Argument = siebel_ws_param:RemoveEmptyTags
Type = Process Property
Value = Y
Property Name = Remove Empty Tags





123Siebel

Search 123Siebel