kundan sakpal

kundan sakpal

  • NA
  • 6
  • 2.1k

How to i post headers and xml body to webservice in c#

Jul 14 2015 5:44 AM

Hi,

We have Relay server in our landscape and trying to register device to SMP server.

i have included SAP mobile platform SDK into Xamarin.ios app, but when am trying to connect to smp through relay server like,

URL:https://........................

Headers :-

Content-Type : application/xml

X-SMP-APPCID:

Body:-

<?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"”>

<content type="application/xml”>

<m:properties>

<d:DeviceType>iPhone</d:DeviceType>

</m:properties>

</content>

i couldn't get register device to SMP server.

please guide.