Test

<back to all web services

HelloAllTypes

The following routes are available for this service:
All Verbs/all-types
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class SubType implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        /** @var string|null */
        public ?string $name=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['name'])) $this->name = $o['name'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->name)) $o['name'] = $this->name;
        return empty($o) ? new class(){} : $o;
    }
}

class AllTypes implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        /** @var int|null */
        public ?int $nullableId=null,
        /** @var int */
        public int $byte=0,
        /** @var int */
        public int $short=0,
        /** @var int */
        public int $int=0,
        /** @var int */
        public int $long=0,
        /** @var int */
        public int $uShort=0,
        /** @var int */
        public int $uInt=0,
        /** @var int */
        public int $uLong=0,
        /** @var float */
        public float $float=0.0,
        /** @var float */
        public float $double=0.0,
        /** @var float */
        public float $decimal=0.0,
        /** @var string|null */
        public ?string $string=null,
        /** @var DateTime */
        public DateTime $dateTime=new DateTime(),
        /** @var DateInterval|null */
        public ?DateInterval $timeSpan=null,
        /** @var DateTime */
        public DateTime $dateTimeOffset=new DateTime(),
        /** @var string */
        public string $guid='',
        /** @var string */
        public string $char='',
        /** @var KeyValuePair2<string, string>|null */
        public ?KeyValuePair2 $keyValuePair=null,
        /** @var DateTime|null */
        public ?DateTime $nullableDateTime=null,
        /** @var DateInterval|null */
        public ?DateInterval $nullableTimeSpan=null,
        /** @var array<string>|null */
        public ?array $stringList=null,
        /** @var string[]|null */
        public ?array $stringArray=null,
        /** @var array<string,string>|null */
        public ?array $stringMap=null,
        /** @var array<string,string>|null */
        public ?array $intStringMap=null,
        /** @var SubType|null */
        public ?SubType $subType=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['nullableId'])) $this->nullableId = $o['nullableId'];
        if (isset($o['byte'])) $this->byte = $o['byte'];
        if (isset($o['short'])) $this->short = $o['short'];
        if (isset($o['int'])) $this->int = $o['int'];
        if (isset($o['long'])) $this->long = $o['long'];
        if (isset($o['uShort'])) $this->uShort = $o['uShort'];
        if (isset($o['uInt'])) $this->uInt = $o['uInt'];
        if (isset($o['uLong'])) $this->uLong = $o['uLong'];
        if (isset($o['float'])) $this->float = $o['float'];
        if (isset($o['double'])) $this->double = $o['double'];
        if (isset($o['decimal'])) $this->decimal = $o['decimal'];
        if (isset($o['string'])) $this->string = $o['string'];
        if (isset($o['dateTime'])) $this->dateTime = JsonConverters::from('DateTime', $o['dateTime']);
        if (isset($o['timeSpan'])) $this->timeSpan = JsonConverters::from('DateInterval', $o['timeSpan']);
        if (isset($o['dateTimeOffset'])) $this->dateTimeOffset = JsonConverters::from('DateTime', $o['dateTimeOffset']);
        if (isset($o['guid'])) $this->guid = $o['guid'];
        if (isset($o['char'])) $this->char = $o['char'];
        if (isset($o['keyValuePair'])) $this->keyValuePair = JsonConverters::from(JsonConverters::context('KeyValuePair2',genericArgs:['string','string']), $o['keyValuePair']);
        if (isset($o['nullableDateTime'])) $this->nullableDateTime = JsonConverters::from('DateTime', $o['nullableDateTime']);
        if (isset($o['nullableTimeSpan'])) $this->nullableTimeSpan = JsonConverters::from('TimeSpan', $o['nullableTimeSpan']);
        if (isset($o['stringList'])) $this->stringList = JsonConverters::fromArray('string', $o['stringList']);
        if (isset($o['stringArray'])) $this->stringArray = JsonConverters::fromArray('string', $o['stringArray']);
        if (isset($o['stringMap'])) $this->stringMap = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['stringMap']);
        if (isset($o['intStringMap'])) $this->intStringMap = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['int','string']), $o['intStringMap']);
        if (isset($o['subType'])) $this->subType = JsonConverters::from('SubType', $o['subType']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->nullableId)) $o['nullableId'] = $this->nullableId;
        if (isset($this->byte)) $o['byte'] = $this->byte;
        if (isset($this->short)) $o['short'] = $this->short;
        if (isset($this->int)) $o['int'] = $this->int;
        if (isset($this->long)) $o['long'] = $this->long;
        if (isset($this->uShort)) $o['uShort'] = $this->uShort;
        if (isset($this->uInt)) $o['uInt'] = $this->uInt;
        if (isset($this->uLong)) $o['uLong'] = $this->uLong;
        if (isset($this->float)) $o['float'] = $this->float;
        if (isset($this->double)) $o['double'] = $this->double;
        if (isset($this->decimal)) $o['decimal'] = $this->decimal;
        if (isset($this->string)) $o['string'] = $this->string;
        if (isset($this->dateTime)) $o['dateTime'] = JsonConverters::to('DateTime', $this->dateTime);
        if (isset($this->timeSpan)) $o['timeSpan'] = JsonConverters::to('DateInterval', $this->timeSpan);
        if (isset($this->dateTimeOffset)) $o['dateTimeOffset'] = JsonConverters::to('DateTime', $this->dateTimeOffset);
        if (isset($this->guid)) $o['guid'] = $this->guid;
        if (isset($this->char)) $o['char'] = $this->char;
        if (isset($this->keyValuePair)) $o['keyValuePair'] = JsonConverters::to(JsonConverters::context('KeyValuePair2',genericArgs:['string','string']), $this->keyValuePair);
        if (isset($this->nullableDateTime)) $o['nullableDateTime'] = JsonConverters::to('DateTime', $this->nullableDateTime);
        if (isset($this->nullableTimeSpan)) $o['nullableTimeSpan'] = JsonConverters::to('TimeSpan', $this->nullableTimeSpan);
        if (isset($this->stringList)) $o['stringList'] = JsonConverters::toArray('string', $this->stringList);
        if (isset($this->stringArray)) $o['stringArray'] = JsonConverters::toArray('string', $this->stringArray);
        if (isset($this->stringMap)) $o['stringMap'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->stringMap);
        if (isset($this->intStringMap)) $o['intStringMap'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['int','string']), $this->intStringMap);
        if (isset($this->subType)) $o['subType'] = JsonConverters::to('SubType', $this->subType);
        return empty($o) ? new class(){} : $o;
    }
}

class Poco implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $name=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        return empty($o) ? new class(){} : $o;
    }
}

class AllCollectionTypes implements JsonSerializable
{
    public function __construct(
        /** @var int[]|null */
        public ?array $intArray=null,
        /** @var array<int>|null */
        public ?array $intList=null,
        /** @var string[]|null */
        public ?array $stringArray=null,
        /** @var array<string>|null */
        public ?array $stringList=null,
        /** @var float[]|null */
        public ?array $floatArray=null,
        /** @var array<float>|null */
        public ?array $doubleList=null,
        /** @var ByteArray|null */
        public ?ByteArray $byteArray=null,
        /** @var string[]|null */
        public ?array $charArray=null,
        /** @var array<float>|null */
        public ?array $decimalList=null,
        /** @var Poco[]|null */
        public ?array $pocoArray=null,
        /** @var array<Poco>|null */
        public ?array $pocoList=null,
        /** @var array<string,Poco[]>|null */
        public ?array $pocoLookup=null,
        /** @var array<string,array<string,Poco>[]>|null */
        public ?array $pocoLookupMap=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['intArray'])) $this->intArray = JsonConverters::fromArray('int', $o['intArray']);
        if (isset($o['intList'])) $this->intList = JsonConverters::fromArray('int', $o['intList']);
        if (isset($o['stringArray'])) $this->stringArray = JsonConverters::fromArray('string', $o['stringArray']);
        if (isset($o['stringList'])) $this->stringList = JsonConverters::fromArray('string', $o['stringList']);
        if (isset($o['floatArray'])) $this->floatArray = JsonConverters::fromArray('float', $o['floatArray']);
        if (isset($o['doubleList'])) $this->doubleList = JsonConverters::fromArray('float', $o['doubleList']);
        if (isset($o['byteArray'])) $this->byteArray = JsonConverters::from('ByteArray', $o['byteArray']);
        if (isset($o['charArray'])) $this->charArray = JsonConverters::fromArray('string', $o['charArray']);
        if (isset($o['decimalList'])) $this->decimalList = JsonConverters::fromArray('float', $o['decimalList']);
        if (isset($o['pocoArray'])) $this->pocoArray = JsonConverters::fromArray('Poco', $o['pocoArray']);
        if (isset($o['pocoList'])) $this->pocoList = JsonConverters::fromArray('Poco', $o['pocoList']);
        if (isset($o['pocoLookup'])) $this->pocoLookup = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','List<Poco>']), $o['pocoLookup']);
        if (isset($o['pocoLookupMap'])) $this->pocoLookupMap = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','List<Dictionary<String,Poco>>']), $o['pocoLookupMap']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->intArray)) $o['intArray'] = JsonConverters::toArray('int', $this->intArray);
        if (isset($this->intList)) $o['intList'] = JsonConverters::toArray('int', $this->intList);
        if (isset($this->stringArray)) $o['stringArray'] = JsonConverters::toArray('string', $this->stringArray);
        if (isset($this->stringList)) $o['stringList'] = JsonConverters::toArray('string', $this->stringList);
        if (isset($this->floatArray)) $o['floatArray'] = JsonConverters::toArray('float', $this->floatArray);
        if (isset($this->doubleList)) $o['doubleList'] = JsonConverters::toArray('float', $this->doubleList);
        if (isset($this->byteArray)) $o['byteArray'] = JsonConverters::to('ByteArray', $this->byteArray);
        if (isset($this->charArray)) $o['charArray'] = JsonConverters::toArray('string', $this->charArray);
        if (isset($this->decimalList)) $o['decimalList'] = JsonConverters::toArray('float', $this->decimalList);
        if (isset($this->pocoArray)) $o['pocoArray'] = JsonConverters::toArray('Poco', $this->pocoArray);
        if (isset($this->pocoList)) $o['pocoList'] = JsonConverters::toArray('Poco', $this->pocoList);
        if (isset($this->pocoLookup)) $o['pocoLookup'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','List<Poco>']), $this->pocoLookup);
        if (isset($this->pocoLookupMap)) $o['pocoLookupMap'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','List<Dictionary<String,Poco>>']), $this->pocoLookupMap);
        return empty($o) ? new class(){} : $o;
    }
}

class HelloAllTypes implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $name=null,
        /** @var AllTypes|null */
        public ?AllTypes $allTypes=null,
        /** @var AllCollectionTypes|null */
        public ?AllCollectionTypes $allCollectionTypes=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['allTypes'])) $this->allTypes = JsonConverters::from('AllTypes', $o['allTypes']);
        if (isset($o['allCollectionTypes'])) $this->allCollectionTypes = JsonConverters::from('AllCollectionTypes', $o['allCollectionTypes']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->allTypes)) $o['allTypes'] = JsonConverters::to('AllTypes', $this->allTypes);
        if (isset($this->allCollectionTypes)) $o['allCollectionTypes'] = JsonConverters::to('AllCollectionTypes', $this->allCollectionTypes);
        return empty($o) ? new class(){} : $o;
    }
}

class HelloAllTypesResponse implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $result=null,
        /** @var AllTypes|null */
        public ?AllTypes $allTypes=null,
        /** @var AllCollectionTypes|null */
        public ?AllCollectionTypes $allCollectionTypes=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['result'])) $this->result = $o['result'];
        if (isset($o['allTypes'])) $this->allTypes = JsonConverters::from('AllTypes', $o['allTypes']);
        if (isset($o['allCollectionTypes'])) $this->allCollectionTypes = JsonConverters::from('AllCollectionTypes', $o['allCollectionTypes']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->result)) $o['result'] = $this->result;
        if (isset($this->allTypes)) $o['allTypes'] = JsonConverters::to('AllTypes', $this->allTypes);
        if (isset($this->allCollectionTypes)) $o['allCollectionTypes'] = JsonConverters::to('AllCollectionTypes', $this->allCollectionTypes);
        return empty($o) ? new class(){} : $o;
    }
}

PHP HelloAllTypes DTOs

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

HTTP + XML

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

POST /all-types HTTP/1.1 
Host: test.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<HelloAllTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Test.ServiceModel">
  <AllCollectionTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Test.ServiceModel.Types">
    <d2p1:ByteArray>AA==</d2p1:ByteArray>
    <d2p1:CharArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:char>0</d3p1:char>
    </d2p1:CharArray>
    <d2p1:DecimalList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:decimal>0</d3p1:decimal>
    </d2p1:DecimalList>
    <d2p1:DoubleList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:double>0</d3p1:double>
    </d2p1:DoubleList>
    <d2p1:FloatArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:float>0</d3p1:float>
    </d2p1:FloatArray>
    <d2p1:IntArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:IntArray>
    <d2p1:IntList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:IntList>
    <d2p1:PocoArray>
      <d2p1:Poco>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:Poco>
    </d2p1:PocoArray>
    <d2p1:PocoList>
      <d2p1:Poco>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:Poco>
    </d2p1:PocoList>
    <d2p1:PocoLookup xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfPocoSxVl28_Sd>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d2p1:Poco>
            <d2p1:Name>String</d2p1:Name>
          </d2p1:Poco>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfPocoSxVl28_Sd>
    </d2p1:PocoLookup>
    <d2p1:PocoLookupMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringPocoSxVl28_Sdty7Ep6D1>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d3p1:ArrayOfKeyValueOfstringPocoSxVl28_Sd>
            <d3p1:KeyValueOfstringPocoSxVl28_Sd>
              <d3p1:Key>String</d3p1:Key>
              <d3p1:Value>
                <d2p1:Name>String</d2p1:Name>
              </d3p1:Value>
            </d3p1:KeyValueOfstringPocoSxVl28_Sd>
          </d3p1:ArrayOfKeyValueOfstringPocoSxVl28_Sd>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringPocoSxVl28_Sdty7Ep6D1>
    </d2p1:PocoLookupMap>
    <d2p1:StringArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringArray>
    <d2p1:StringList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringList>
  </AllCollectionTypes>
  <AllTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Test.ServiceModel.Types">
    <d2p1:Byte>0</d2p1:Byte>
    <d2p1:Char>0</d2p1:Char>
    <d2p1:DateTime>0001-01-01T00:00:00</d2p1:DateTime>
    <d2p1:DateTimeOffset xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:DateTimeOffset>
    <d2p1:Decimal>0</d2p1:Decimal>
    <d2p1:Double>0</d2p1:Double>
    <d2p1:Float>0</d2p1:Float>
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:Int>0</d2p1:Int>
    <d2p1:IntStringMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintstring>
        <d3p1:Key>0</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfintstring>
    </d2p1:IntStringMap>
    <d2p1:KeyValuePair xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
      <d3p1:key>String</d3p1:key>
      <d3p1:value>String</d3p1:value>
    </d2p1:KeyValuePair>
    <d2p1:Long>0</d2p1:Long>
    <d2p1:NullableDateTime>0001-01-01T00:00:00</d2p1:NullableDateTime>
    <d2p1:NullableId>0</d2p1:NullableId>
    <d2p1:NullableTimeSpan>PT0S</d2p1:NullableTimeSpan>
    <d2p1:Short>0</d2p1:Short>
    <d2p1:String>String</d2p1:String>
    <d2p1:StringArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringArray>
    <d2p1:StringList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringList>
    <d2p1:StringMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:StringMap>
    <d2p1:SubType>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:SubType>
    <d2p1:TimeSpan>PT0S</d2p1:TimeSpan>
    <d2p1:UInt>0</d2p1:UInt>
    <d2p1:ULong>0</d2p1:ULong>
    <d2p1:UShort>0</d2p1:UShort>
  </AllTypes>
  <Name>String</Name>
</HelloAllTypes>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<HelloAllTypesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Test.ServiceModel">
  <AllCollectionTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Test.ServiceModel.Types">
    <d2p1:ByteArray>AA==</d2p1:ByteArray>
    <d2p1:CharArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:char>0</d3p1:char>
    </d2p1:CharArray>
    <d2p1:DecimalList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:decimal>0</d3p1:decimal>
    </d2p1:DecimalList>
    <d2p1:DoubleList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:double>0</d3p1:double>
    </d2p1:DoubleList>
    <d2p1:FloatArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:float>0</d3p1:float>
    </d2p1:FloatArray>
    <d2p1:IntArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:IntArray>
    <d2p1:IntList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:IntList>
    <d2p1:PocoArray>
      <d2p1:Poco>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:Poco>
    </d2p1:PocoArray>
    <d2p1:PocoList>
      <d2p1:Poco>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:Poco>
    </d2p1:PocoList>
    <d2p1:PocoLookup xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfPocoSxVl28_Sd>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d2p1:Poco>
            <d2p1:Name>String</d2p1:Name>
          </d2p1:Poco>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfPocoSxVl28_Sd>
    </d2p1:PocoLookup>
    <d2p1:PocoLookupMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringPocoSxVl28_Sdty7Ep6D1>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d3p1:ArrayOfKeyValueOfstringPocoSxVl28_Sd>
            <d3p1:KeyValueOfstringPocoSxVl28_Sd>
              <d3p1:Key>String</d3p1:Key>
              <d3p1:Value>
                <d2p1:Name>String</d2p1:Name>
              </d3p1:Value>
            </d3p1:KeyValueOfstringPocoSxVl28_Sd>
          </d3p1:ArrayOfKeyValueOfstringPocoSxVl28_Sd>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringPocoSxVl28_Sdty7Ep6D1>
    </d2p1:PocoLookupMap>
    <d2p1:StringArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringArray>
    <d2p1:StringList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringList>
  </AllCollectionTypes>
  <AllTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Test.ServiceModel.Types">
    <d2p1:Byte>0</d2p1:Byte>
    <d2p1:Char>0</d2p1:Char>
    <d2p1:DateTime>0001-01-01T00:00:00</d2p1:DateTime>
    <d2p1:DateTimeOffset xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:DateTimeOffset>
    <d2p1:Decimal>0</d2p1:Decimal>
    <d2p1:Double>0</d2p1:Double>
    <d2p1:Float>0</d2p1:Float>
    <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:Int>0</d2p1:Int>
    <d2p1:IntStringMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintstring>
        <d3p1:Key>0</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfintstring>
    </d2p1:IntStringMap>
    <d2p1:KeyValuePair xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
      <d3p1:key>String</d3p1:key>
      <d3p1:value>String</d3p1:value>
    </d2p1:KeyValuePair>
    <d2p1:Long>0</d2p1:Long>
    <d2p1:NullableDateTime>0001-01-01T00:00:00</d2p1:NullableDateTime>
    <d2p1:NullableId>0</d2p1:NullableId>
    <d2p1:NullableTimeSpan>PT0S</d2p1:NullableTimeSpan>
    <d2p1:Short>0</d2p1:Short>
    <d2p1:String>String</d2p1:String>
    <d2p1:StringArray xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringArray>
    <d2p1:StringList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:StringList>
    <d2p1:StringMap xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:StringMap>
    <d2p1:SubType>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:SubType>
    <d2p1:TimeSpan>PT0S</d2p1:TimeSpan>
    <d2p1:UInt>0</d2p1:UInt>
    <d2p1:ULong>0</d2p1:ULong>
    <d2p1:UShort>0</d2p1:UShort>
  </AllTypes>
  <Result>String</Result>
</HelloAllTypesResponse>