All Verbs | /account |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class GetUserDetails
{
}
public static class GetUserDetailsResponse
{
public String provider = null;
public String userId = null;
public String userName = null;
public String fullName = null;
public String displayName = null;
public String firstName = null;
public String lastName = null;
public String company = null;
public String email = null;
public String phoneNumber = null;
public Date birthDate = null;
public String birthDateRaw = null;
public String address = null;
public String address2 = null;
public String city = null;
public String state = null;
public String country = null;
public String culture = null;
public String gender = null;
public String language = null;
public String mailAddress = null;
public String nickname = null;
public String postalCode = null;
public String timeZone = null;
public String getProvider() { return provider; }
public GetUserDetailsResponse setProvider(String value) { this.provider = value; return this; }
public String getUserId() { return userId; }
public GetUserDetailsResponse setUserId(String value) { this.userId = value; return this; }
public String getUserName() { return userName; }
public GetUserDetailsResponse setUserName(String value) { this.userName = value; return this; }
public String getFullName() { return fullName; }
public GetUserDetailsResponse setFullName(String value) { this.fullName = value; return this; }
public String getDisplayName() { return displayName; }
public GetUserDetailsResponse setDisplayName(String value) { this.displayName = value; return this; }
public String getFirstName() { return firstName; }
public GetUserDetailsResponse setFirstName(String value) { this.firstName = value; return this; }
public String getLastName() { return lastName; }
public GetUserDetailsResponse setLastName(String value) { this.lastName = value; return this; }
public String getCompany() { return company; }
public GetUserDetailsResponse setCompany(String value) { this.company = value; return this; }
public String getEmail() { return email; }
public GetUserDetailsResponse setEmail(String value) { this.email = value; return this; }
public String getPhoneNumber() { return phoneNumber; }
public GetUserDetailsResponse setPhoneNumber(String value) { this.phoneNumber = value; return this; }
public Date getBirthDate() { return birthDate; }
public GetUserDetailsResponse setBirthDate(Date value) { this.birthDate = value; return this; }
public String getBirthDateRaw() { return birthDateRaw; }
public GetUserDetailsResponse setBirthDateRaw(String value) { this.birthDateRaw = value; return this; }
public String getAddress() { return address; }
public GetUserDetailsResponse setAddress(String value) { this.address = value; return this; }
public String getAddress2() { return address2; }
public GetUserDetailsResponse setAddress2(String value) { this.address2 = value; return this; }
public String getCity() { return city; }
public GetUserDetailsResponse setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public GetUserDetailsResponse setState(String value) { this.state = value; return this; }
public String getCountry() { return country; }
public GetUserDetailsResponse setCountry(String value) { this.country = value; return this; }
public String getCulture() { return culture; }
public GetUserDetailsResponse setCulture(String value) { this.culture = value; return this; }
public String getGender() { return gender; }
public GetUserDetailsResponse setGender(String value) { this.gender = value; return this; }
public String getLanguage() { return language; }
public GetUserDetailsResponse setLanguage(String value) { this.language = value; return this; }
public String getMailAddress() { return mailAddress; }
public GetUserDetailsResponse setMailAddress(String value) { this.mailAddress = value; return this; }
public String getNickname() { return nickname; }
public GetUserDetailsResponse setNickname(String value) { this.nickname = value; return this; }
public String getPostalCode() { return postalCode; }
public GetUserDetailsResponse setPostalCode(String value) { this.postalCode = value; return this; }
public String getTimeZone() { return timeZone; }
public GetUserDetailsResponse setTimeZone(String value) { this.timeZone = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /account HTTP/1.1
Host: test.servicestack.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetUserDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Test.ServiceInterface" />
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetUserDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Test.ServiceInterface"> <Address>String</Address> <Address2>String</Address2> <BirthDate>0001-01-01T00:00:00</BirthDate> <BirthDateRaw>String</BirthDateRaw> <City>String</City> <Company>String</Company> <Country>String</Country> <Culture>String</Culture> <DisplayName>String</DisplayName> <Email>String</Email> <FirstName>String</FirstName> <FullName>String</FullName> <Gender>String</Gender> <Language>String</Language> <LastName>String</LastName> <MailAddress>String</MailAddress> <Nickname>String</Nickname> <PhoneNumber>String</PhoneNumber> <PostalCode>String</PostalCode> <Provider>String</Provider> <State>String</State> <TimeZone>String</TimeZone> <UserId>String</UserId> <UserName>String</UserName> </GetUserDetailsResponse>