HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/UserProfileRequest HTTP/1.1
Host: mb-mobile-api.medibuddy.in
Content-Type: application/xml
Content-Length: length
<UserProfileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobile.DTO.RequestResponse">
<IPAddress xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</IPAddress>
<MBToken xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</MBToken>
<MobileDeviceModel xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</MobileDeviceModel>
<PlatformVer xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</PlatformVer>
<UserAgent xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</UserAgent>
<UserPlatform xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core.DTO">String</UserPlatform>
<Addresses xmlns:d2p1="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core">
<d2p1:UserAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressTag>00000000-0000-0000-0000-000000000000</d2p1:AddressTag>
<d2p1:AddressType>String</d2p1:AddressType>
<d2p1:City>String</d2p1:City>
<d2p1:HouseNo>String</d2p1:HouseNo>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsPrimary>false</d2p1:IsPrimary>
<d2p1:LandMark>String</d2p1:LandMark>
<d2p1:Latitude>0</d2p1:Latitude>
<d2p1:Locality>String</d2p1:Locality>
<d2p1:Longitude>0</d2p1:Longitude>
<d2p1:PhoneNo>String</d2p1:PhoneNo>
<d2p1:Pincode>String</d2p1:Pincode>
<d2p1:State>String</d2p1:State>
<d2p1:Street>String</d2p1:Street>
</d2p1:UserAddress>
</Addresses>
<AlternateContact>String</AlternateContact>
<AlternateEmailId>String</AlternateEmailId>
<DOB>0001-01-01T00:00:00</DOB>
<Gender>String</Gender>
<HealthMailsRequired>false</HealthMailsRequired>
<Height>0</Height>
<IsBiometricEnabledForUser>String</IsBiometricEnabledForUser>
<PrimaryEmailId>String</PrimaryEmailId>
<PrimaryMobile>String</PrimaryMobile>
<ProfilePicId>String</ProfilePicId>
<Weight>0</Weight>
</UserProfileRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UserProfileRespones xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MediBuddyMobile.DTO.RequestResponse">
<Name>String</Name>
<ProfileFileBytes>AA==</ProfileFileBytes>
<UserProfileDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MediBuddyMobileAPI.Core">
<d2p1:Addresses>
<d2p1:UserAddress>
<d2p1:AddressLine1>String</d2p1:AddressLine1>
<d2p1:AddressLine2>String</d2p1:AddressLine2>
<d2p1:AddressTag>00000000-0000-0000-0000-000000000000</d2p1:AddressTag>
<d2p1:AddressType>String</d2p1:AddressType>
<d2p1:City>String</d2p1:City>
<d2p1:HouseNo>String</d2p1:HouseNo>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsPrimary>false</d2p1:IsPrimary>
<d2p1:LandMark>String</d2p1:LandMark>
<d2p1:Latitude>0</d2p1:Latitude>
<d2p1:Locality>String</d2p1:Locality>
<d2p1:Longitude>0</d2p1:Longitude>
<d2p1:PhoneNo>String</d2p1:PhoneNo>
<d2p1:Pincode>String</d2p1:Pincode>
<d2p1:State>String</d2p1:State>
<d2p1:Street>String</d2p1:Street>
</d2p1:UserAddress>
</d2p1:Addresses>
<d2p1:AlternateContact>String</d2p1:AlternateContact>
<d2p1:AlternateEmailId>String</d2p1:AlternateEmailId>
<d2p1:DateOfBirth>String</d2p1:DateOfBirth>
<d2p1:Gender>String</d2p1:Gender>
<d2p1:Height>0</d2p1:Height>
<d2p1:IsBiometricEnabled>String</d2p1:IsBiometricEnabled>
<d2p1:MediAssistId>0</d2p1:MediAssistId>
<d2p1:PrimaryEmailId>String</d2p1:PrimaryEmailId>
<d2p1:PrimaryMobile>String</d2p1:PrimaryMobile>
<d2p1:ProfileImgPath>String</d2p1:ProfileImgPath>
<d2p1:Weight>0</d2p1:Weight>
</UserProfileDetails>
</UserProfileRespones>