You can retrieve application connection settings for the device application instance by issuing the GET method.
You can retrieve application settings by either explicitly specifying the application connection ID, or by having the application connection ID determined from the call context (that is, from either the X-SMP-APPCID cookie or X-SMP-APPCID HTTP header, if specified). On the first call, you can simplify your client application code by having the application connection ID determined from the call context, since you have not yet received an application connection ID.
If you supply an application connection ID, perform an HTTP GET request at:
http[s]://<host:port>/[public/]odata/applications/{latest|v1}/{appid}/Connections(‘{appcid}’)
Response
<?xml version='1.0' encoding='utf-8'?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="https://<smp base URL>/odata/applications/v1/e2eTest/"> <id>http://https://mobilesmpdev.netweaver.ondemand.com/smp/odata/applications/v1/e2eTest/Connections('c9d8a9da-9f36-4ae5-9da5-37d6d90483b5')</id> <title type="text" /> <updated>2012-06-28T09:55:48Z</updated> <author><name /></author> <link rel="edit" title="Connections" href="Connections('c9d8a9da-9f36-4ae5-9da5-37d6d90483b5')" /> <category term="applications.Connection" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> <content type="application/xml"> <m:properties> <d:ETag m:type="Edm.DateTime">2012-06-28T17:55:47.685</d:ETag> <d:ApplicationConnectionId>c9d8a9da-9f36-4ae5-9da5-37d6d90483b5</d:ApplicationConnectionId> <d:AndroidGcmPushEnabled m:type="Edm.Boolean">false</d:AndroidGcmPushEnabled> <d:AndroidGcmRegistrationId m:null="true" /> <d:AndroidGcmSenderId m:null="true" /> <d:ApnsPushEnable m:type="Edm.Boolean">true</d:ApnsPushEnable> <d:ApnsDeviceToken m:null="true" /> <d:ApplicationVersion m:null="true" /> <d:BlackberryPushEnabled m:type="Edm.Boolean">true</d:BlackberryPushEnabled> <d:BlackberryDevicePin>00000000</d:BlackberryDevicePin> <d:BlackberryBESListenerPort m:type="Edm.Int32">5011</d:BlackberryBESListenerPort> <d:BlackberryPushAppID m:null="true" /> <d:BlackberryPushBaseURL m:null="true" /> <d:BlackberryPushListenerPort m:type="Edm.Int32">0</d:BlackberryPushListenerPort> <d:BlackberryListenerType m:type="Edm.Int32">0</d:BlackberryListenerType> <d:CustomCustom1>custom1</d:CustomCustom1> <d:CustomCustom2 m:null="true" /> <d:CustomCustom3 m:null="true" /> <d:CustomCustom4 m:null="true" /> <d:DeviceModel m:null="true" /> <d:DeviceType>Unknown</d:DeviceType> <d:DeviceSubType m:null="true" /> <d:DevicePhoneNumber>12345678901</d:DevicePhoneNumber> <d:DeviceImsi m:null="true" /> <d:PasswordPolicyEnabled m:type="Edm.Boolean">true</d:PasswordPolicyEnabled> <d:PasswordPolicyDefaultPasswordAllowed m:type="Edm.Boolean">false</d:PasswordPolicyDefaultPasswordAllowed> <d:PasswordPolicyMinLength m:type="Edm.Int32">8</d:PasswordPolicyMinLength> <d:PasswordPolicyDigitRequired m:type="Edm.Boolean">false</d:PasswordPolicyDigitRequired> <d:PasswordPolicyUpperRequired m:type="Edm.Boolean">false</d:PasswordPolicyUpperRequired> <d:PasswordPolicyLowerRequired m:type="Edm.Boolean">false</d:PasswordPolicyLowerRequired> <d:PasswordPolicySpecialRequired m:type="Edm.Boolean">false</d:PasswordPolicySpecialRequired> <d:PasswordPolicyExpiresInNDays m:type="Edm.Int32">0</d:PasswordPolicyExpiresInNDays> <d:PasswordPolicyMinUniqueChars m:type="Edm.Int32">0</d:PasswordPolicyMinUniqueChars> <d:PasswordPolicyLockTimeout m:type="Edm.Int32">0</d:PasswordPolicyLockTimeout> <d:PasswordPolicyRetryLimit m:type="Edm.Int32">20</d:PasswordPolicyRetryLimit> <d:ProxyApplicationEndpointm:null="true" /> <d:ProxyPushEndpoint>http://xxue-desktop:8080/GWC/SMPNotification</d:ProxyPushEndpoint> <d:WnsChannelURI m:null="true" /> <d:MpnsChannelURI m:null="true" /> <d:WnsPushEnable m:type="Edm.Boolean">false</d:WnsPushEnable> <d:MpnsPushEnable m:type="Edm.Boolean">true</d:MpnsPushEnable> </m:properties> </content> </entry>
You can also retrieve a property value by appending the property name in the URL. For example, to retrieve the ClientLogLevel property value, enter:
http[s]://<host:port>/[public/]odata/applications/{v1|latest}/{appid}/Connections(‘{appcid}’)/ClientLogLevel