Skip to Content
0
Former Member
Jan 03, 2015 at 07:56 PM

PHP SoapClient LoginService.wsdl Invalid document structure

259 Views

Hello,

I am struggling with B1WS-Soap. This is my Code:

<?php

error_reporting(E_ALL);

try {

$client = new SoapClient("http://192.168.80.3/B1WS/WebReferences/LoginService.wsdl", array('trace' => 1,'soap_version' => SOAP_1_2));

$options = array(

'DatabaseServer' => '192.168.81.4',

'DatabaseName' => 'SBODEMODE',

'DatabaseType' => 'dst_MSSQL2012',

'CompanyUsername' => 'manager',

'CompanyPassword' => 'secret',

'Language' => 'ln_German',

'LicenseServer' => '192.168.81.3:30000',

);

$something = $client->Login($options);

var_dump($something);

}catch (Exception $e) {

echo "<pre>";

print_r($e);

}

?>

This is the error:

SoapFault Object ( [message:protected] =&amp;gt; Invalid XML [string:Excepti - Pastebin.com

Somewhere I read there could be encoding issues... Can someone post demo-code? Thanks.