SiebelGuide.com/siebelblogs

Siebel Blogs, News, Events, Tips and Tricks
Filed under How To, Tips&Tricks, eScript, All, Configuration

In this post I will explain what a property set is, how it looks and how to build a property set using eScript.

Property set is a set of data containing Type, Property and Value. It is stored in a form of XML. For example, when you write a business service a script under Service_PreInvokeMethod and Inputs to this is a property set and it could something like this.

<Inputs status=”Active” Type=”Credit Request”/>

Where Inputs is a Type, status=”Active” is a property name-value pair and so is Type=”Credit Request”. This propertyset has no value.

Lets see another property set.

<UsernameToken xmlns=”http://siebel.com/webservices”>SADMIN</UsernameToken>

Here UsernameToken is a property type, xmlns=”http://siebel.com/webservices” is property name-value pair and SADMIN is a property value.

Using eScript we can build propertyset. Lets try to build a property set that looks something like this.

<SOAP-ENV:Header>

<UsernameToken xmlns=”http://siebel.com/webservices”>SADMIN</UsernameToken>

<PasswordText xmlns=”http://siebel.com/webservices”>SADMIN</PasswordText>

<SessionType xmlns=”http://siebel.com/webservices”>Stateless</SessionType>

</SOAP-ENV:Header>

The above XML code is a SOAP header normally used with webservices. The above whole code is one single property set having three child propertysets UsernameToken, PasswordText and SessionType.


The script to build this whole propertyset is here below.

//Initialize a propertyset

var soapHeader = TheApplication().NewPropertySet();

 

//This sets the type-Builds line 1 and 5

soapHeader.SetType(”SOAP-ENV:Header”);

 

var UsernameToken = TheApplication().NewPropertySet();

var PasswordText = TheApplication().NewPropertySet();

var SessionType = TheApplication().NewPropertySet();

 

//This builds line 2

UsernameToken.SetType(”UsernameToken”);

UsernameToken.SetProperty(”xmlns”,”http://siebel.com/webservices”);

UsernameToken.SetValue(”SADMIN”);

 

//This builds line3

PasswordText.SetType(”PasswordText”);

PasswordText.SetProperty(”xmlns”,”http://siebel.com/webservices”);

PasswordText.SetValue(”SIEB2008″);

 

//This builds line4

SessionType.SetType(”SessionType”);

SessionType.SetProperty(”xmlns”,”http://siebel.com/webservices”);

SessionType.SetValue(”Stateless”);

 

//Add lines 2,3 and 4 as child of line 1     

soapHeader.AddChild(UsernameToken);

soapHeader.AddChild(PasswordText);

soapHeader.AddChild(SessionType);

Hope this helps in understanding the representation of propertysets and how it is stored. Leave your comments.

Related posts(Auto Generated):

  1. PropertyExists Method in Siebel eScript
  2. eScript Best Practices - Part6
  3. Siebel Automatic Login URL
  4. How to Invoke Server Manager Utility in Siebel
  5. How To find Time Difference in Seconds using eScript

Posted by Sridhar on Friday, September 12th, 2008


Page copy protected against web site content infringement by Copyscape
You can follow any responses to this entry through the magic of "RSS 2.0" and leave a trackback from your own site.

9 Responses to “PropertySets in Siebel - Made Easy”

Post A Comment

Recent Posts 

Recent Comments:

  • Gloria: Thank you for sharing your knowledge!
  • Sridhar: Hi Satya, Please share your documents using “Participate” link on the right hand side. Many thanks...
  • satya vardhan: hi ramya this is vardhan i am in obiee developer i am not undrstanding ur query can u repeat once again...
  • satya vardhan: hi sri obiee this is reporting tool if u want more details send me ur mailid. i can forword some documents...
  • Ramya: Hi, Can u pls tell me how to get the difference between two date fields by ignoring weekends (i.e satday, sunday if...