Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

PHP SoapClient LoginService.wsdl Invalid document structure

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.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question