Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Service API Calls > SetSessionTimeZoneSets the time zone for a Web Services API session. UsageThis method sets the time zone for a Web services API session. The time zone is set according to the locale of the user making the request. ArgumentsTable 60 describes the arguments taken by the SetSessionTimeZone method. Return Value of the CallSample SOAP Request - SetSessionTimeZoneThe following SOAP request updates the timezone for the current session to (GMT -06:00) Central Time (US & Canada). <?xml version="1.0" encoding="utf-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsse:Username>%%%USERNAME%%%</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">%%%PASSWORD%%%</wsse:Password> <TimeWS_SetSessionTimeZone_Input xmlns="urn:crmondemand/ws/time/"> <TimeZone>(GMT-06:00) Central Time (US & Canada)</TimeZone> </TimeWS_SetSessionTimeZone_Input> Sample SOAP ResponseThe following response returns the server time zone set by the request: <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ns:TimeWS_SetSessionTimeZone_Output xmlns:ns="urn:crmondemand/ws/time/"> <ns:CurrentServerTime>(GMT-06:00) Central Time (US & Canada)</ns:CurrentServerTime> |
Oracle Web Services On Demand Guide, Version 20.0 (Oracle CRM On Demand Release 32) | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |