BNN Api

<back to all web services

GetMyProfile

Get My Profile

Get current user profile

To override the Content-type in your clients HTTP Accept Header, append the .soap12 suffix or ?format=soap12

HTTP + SOAP12

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap12 HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<GetMyProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests" />

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<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>

    </soap12:Body>
</soap12:Envelope>