ERP SOAP Client Create

how to create a new ERP SOAP Client.

example:

$sHost = “xxx.xxx.x.xxx”;
$oClient = new SoapClient( ‘http://’.$sHost.’/ee/modules/erp/oxerpservice.wsdl’ ,
array(
‘location’ => ‘http://’.$sHost.’/ee/modules/erp/oxerpservice.php’,
‘trace’ => 1
));
$oResult = $oClient->OXERPLogin(array(‘sUserName’ => ‘admin’, ‘sPassword’ => ‘admin’, ‘iShopID’ => ‘1’,‘iLanguage’ => ‘0’));
echo “session-id:”.$oResult->OXERPLoginResult->sMessage;

Hi rodion,

thanks for that! :slight_smile:
As I worry that this kind of information will disappear one day in the forum: How about writing that little tutorial to the wiki?

Do you know how it works?

Regards