HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/GetMyProfile HTTP/1.1
Host: api.dev.bnn.us
Content-Type: application/xml
Content-Length: length
<GetMyProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProfileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Responses">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
</d2p1:ResponseError>
</d2p1:Errors>
</ResponseStatus>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Dto">
<d2p1:Address>String</d2p1:Address>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:Counties>String</d2p1:Counties>
<d2p1:CountiesList>
<d2p1:ZipCodeDto>
<d2p1:City>String</d2p1:City>
<d2p1:County>String</d2p1:County>
<d2p1:CountyCode>String</d2p1:CountyCode>
<d2p1:CountyFips>String</d2p1:CountyFips>
<d2p1:Distance>0</d2p1:Distance>
<d2p1:Fips>String</d2p1:Fips>
<d2p1:Lat>0</d2p1:Lat>
<d2p1:Lon>0</d2p1:Lon>
<d2p1:State>String</d2p1:State>
<d2p1:StateFips>String</d2p1:StateFips>
<d2p1:Zipcode>String</d2p1:Zipcode>
</d2p1:ZipCodeDto>
</d2p1:CountiesList>
<d2p1:County>String</d2p1:County>
<d2p1:Dob>String</d2p1:Dob>
<d2p1:Email>String</d2p1:Email>
<d2p1:Employer1>String</d2p1:Employer1>
<d2p1:Employer2>String</d2p1:Employer2>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:HomePhone>String</d2p1:HomePhone>
<d2p1:Id>0</d2p1:Id>
<d2p1:Im>String</d2p1:Im>
<d2p1:ImTransport>String</d2p1:ImTransport>
<d2p1:Keywords>String</d2p1:Keywords>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:MemberId>String</d2p1:MemberId>
<d2p1:MobileCarrier>String</d2p1:MobileCarrier>
<d2p1:MobilePhone>String</d2p1:MobilePhone>
<d2p1:OtherAffiliation>String</d2p1:OtherAffiliation>
<d2p1:State>String</d2p1:State>
<d2p1:WorkPhone>String</d2p1:WorkPhone>
<d2p1:Zip>String</d2p1:Zip>
</Data>
</ProfileResponse>