כן , עשיתי כמה ניסיונות , ללא הצלחה.
אני רוצה לדעת שאני מצליח להתחבר...
<?php
$url = "***";
$client = new SoapClient($url, array("trace" => 1, "exception" => 0));
// Create the header
auth = new ChannelAdvisorAuth("user", "pass");
$header = new SoapHeader("***", "APICredentials", $auth, false);
$client->__getTypes();
$client->__getFunctions();
$result = $client->functionName();
?>
ועם המחלקה nuSoap:
require_once('nusoap/lib/nusoap.php');
$client = new nusoap_client('***', true);
$client->setCredentials('user', 'pass', 'ntlm');
$msg = "<Register xmlns=\"
https://services.ava-forex.com/aos/AdminWebservice.asmx?WSDL\">
<accountData>
<DemoAccount xmlns=\"
http://tempuri.org/DemoAccount.xsd\">
<accountid></accountid>
<!--Account GUID. for future use. send empty value-->
<statuscode>3</statuscode>
<!--Requested status. data type: int, mandatory: yes, send value = 3 to register a demo account or value = 1 for a Real one.-->
<new_title></new_title>
<!--Title. get list from GetTitlesList web method. data type: int, mandatory: no-->
<name></name>
<!--First name. data type: string, mandatory: yes-->
<new_lastname></new_lastname>
<!--Last name. data type: string, mandatory: yes-->
<emailaddress1></emailaddress1>
<!--Email. data type: string, mandatory: yes-->
<address1_postalcode></address1_postalcode>
<!--Zip or postal code. data type: string, mandatory: no-->
<new_country></new_country>
<!--country id. get value from GetCountriesList web method. data type: int, mandatory: yes -->
<new_homectry></new_homectry>
<!--Phone number (primary) country code. data type: int, mandatory: yes-->
<new_homearea></new_homearea>
<!--Phone number (primary) area code. data type: int, mandatory: yes-->
<new_homenumber></new_homenumber>
<!--Phone number (primary). data type: int, mandatory: yes-->
<new_businessctry></new_businessctry>
<!--Phone number (Additional) country code. data type: int, mandatory: no-->
<new_businessarea></new_businessarea>
<!--Phone number (Additional) area code. data type: int, mandatory: no-->
<new_businessnumber></new_businessnumber>
<!--Phone number (Additional). data type: int, mandatory: no-->
<new_username></new_username>
<!--Requested username. data type: string, mandatory: yes, Validation Rule: must contain between 6-12 alphanumeric characters (a-z, A-Z, 0-9), with minimum of 1 letter. -->
<new_password></new_password>
<!--Requested password. data type: string, mandatory: yes, Validation Rule: must contain between 6-15 alphanumeric characters (a-z, A-Z, 0-9), with minimum of 2 digits and 2 letters, and is case sensitive-->
<new_currencybase></new_currencybase>
<!--Currency base. get value from GetCurrencyBasesList() web method. data type: int, mandatory: yes-->
<new_newsletter></new_newsletter>
<!--Would you like to receive our newsletter?. data type: Bool, mandatory: no-->
<!--environment info-->
<new_language></new_language>
<!--language Id. get value from GetLanguagesList() web method. data type: int, mandatory: yes-->
<new_tagid></new_tagid>
<!--Tag Id. data type: string, mandatory: yes, this value will be supplied by AVAFX-->
<new_ip></new_ip>
<!--Client IP Address. data type: string, mandatory: no-->
<new_ipcountry></new_ipcountry>
<!--Country ID by IP Address. get country id from GetCountriesList web method. data type: string, mandatory: yes-->
<new_agent></new_agent>
<!--Agent. data type: string, mandatory: no-->
<new_resolution></new_resolution>
<!--Screen Resolution. data type: string, mandatory: no-->
<new_referer></new_referer>
<!--Referer URL. data type: string, mandatory: no-->
<new_initialpreference></new_initialpreference>
<!--Initialpreference. data type: Bool, mandatory: yes. send value = true for CFD or false for Forex.-->
<ownerid></ownerid>
<!--Unique Owner Id. data type: string, mandatory: yes, this value will be supplied by AVAFX-->
<new_tradingplatform>1</new_tradingplatform>
<!--For future use, send value = 1-->
<autoTader>false</autoTader>
<!--data type: boolean, mandatory: no-->
<acceptEULA>false</acceptEULA>
<!--data type: boolean, mandatory: no-->
<acceptPOA>false</acceptPOA>
<!--data type: boolean, mandatory: no-->
<new_whitelabel></new_whitelabel>
<!--data type: string, mandatory: no-->
<new_sendemailonregistration>false</new_sendemailonregistration>
<!--data type: boolean, mandatory: no-->
<new_tag2>new_tag2</new_tag2>
<!--data type: string, mandatory: no-->
<new_ds2>new_ds2</new_ds2>
<!--data type: string, mandatory: no-->
<new_ef_id>new_ef_id</new_ef_id>
<!--data type: string, mandatory: no-->
</DemoAccount>
</accountData>
</Register>";
$soapmsg = $client->serializeEnvelope($msg, "", array(), 'document', 'literal');
$result = @$client->send($soapmsg, "***");
print_r($result);