У меня тоже есть эта проблема. Это выдаст мне и ошибку "Сервис недоступен". Я сделал то, что ты сделал, но все равно ошибка.
Это мой запрос:
POST /webservice/User.asmx HTTP / 1.1
Хост: www.sample.com.au
Content-Type: text / xml; кодировка = UTF-8
Длина контента: длина
SOAPAction: "http://www.sample.com.au/UpdateUserBatch"
<UpdateUserBatch xmlns="http://www.sample.com.au/">
<auth>
<Username>string</Username>
<Password>string</Password>
</auth>
<request>
<CreateIfNotExist>boolean</CreateIfNotExist>
<UpdateIfExists>boolean</UpdateIfExists>
<UserProfile>
<UserID>string</UserID>
<BusinessID>string</BusinessID>
<ExternalID>string</ExternalID>
<Username>string</Username>
<Password>string</Password>
<Addresses xsi:nil="true" />
<Demographics xsi:nil="true" />
<Roles xsi:nil="true" />
</UserProfile>
<UserProfile>
<UserID>string</UserID>
<BusinessID>string</BusinessID>
<ExternalID>string</ExternalID>
<Username>string</Username>
<Password>string</Password>
<Addresses xsi:nil="true" />
<Demographics xsi:nil="true" />
<Roles xsi:nil="true" />
</UserProfile>
</Users>
</request>
</UpdateUserBatch>
И это мой способ передачи его параметра:
$param = array('username' => 'username', 'password' => 'password', 'request'=>array('CreateIfNotExist' => TRUE, 'UpdateIfExists' => FALSE), 'Users' => array('UserProfile'=> array('UserID' => 'usr123',
'BusinessID' => 'bus123',
'ExternalID' => 'ext123',
'Username' => 'test',
'Password' => 'testing'
)));