Web Hizmeti: Hizmet Kullanılamaz hatası

0 Cevap php

I have this web service to import data but I cant import data because i got an error "Service Unavailable" This is my request:

POST /webservice/User.asmx HTTP/1.1
Host: www.sample.com.au
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.sample.com.au/UpdateUserBatch"

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

    <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>
  </soap:Body>
</soap:Envelope>

Ve bu onun parametre geçirerek benim yoludur:

$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'
)));

0 Cevap