How to update the Timezone value in Location object using web services?

book

Article ID: 6411

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service KNOWLEDGE TOOLS CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Timezone is not updated in Locations using web services

Cause

The code values passed to Timezone in R12.9 was updated in R14.1

Environment

CA Service Desk Manager R12.9CA Service Desk Manager R14.1

Resolution

The Timezone code values have been update in the latest R14.1 version.

In this scenario we have updated the SOAP response whereClause from code like 'CT' to code like 'GMT-0600'

Note: CT was the code for Central Time in Time Zone Object

 

Sample SOAP request - doSelect() method: 

=======================

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:doSelect>

         <sid>590875106</sid>

         <objectType>tz</objectType>

         <whereClause>code like 'GMT-0600'</whereClause>

         <maxRows>10</maxRows>

         <attributes>

            <!--1 or more repetitions:-->

            <string>id</string>

            <string>sym</string>

         </attributes>

      </ser:doSelect>

   </soapenv:Body>

</soapenv:Envelope>

 

Sample SOAP Response - doSelect() method

=========================

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <doSelectResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

         <doSelectReturn xmlns=""><![CDATA[<?xml version="1.0" encoding="UTF-8"?><UDSObjectList>

<UDSObject>

<Handle>tz:5236</Handle>

<Attributes>

<Attribute DataType="2001">

<AttrName>id</AttrName>

<AttrValue>5236</AttrValue>

</Attribute>

<Attribute DataType="2002">

<AttrName>sym</AttrName>

<AttrValue>Central Time</AttrValue>

</Attribute>

</Attributes>

</UDSObject>

</UDSObjectList>]]></doSelectReturn>

      </doSelectResponse>

   </soapenv:Body>

</soapenv:Envelope>