Result of SoapClient differs between Windows and Linux

Alles, was PHP betrifft, kann hier besprochen werden.

Result of SoapClient differs between Windows and Linux

Postby jpr » 22. February 2013 11:02

I'm runnning a PHP appliation on a Linux System (Ubuntu with Apache 2.2.17 and PHP 5.3.15 from the Distro Repos) and on Windows with XAMPP (1.7.7).
My Problem is that the result of the SOAP client differs between Windows and Linux

Request on Windows:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <parameters>
      <item>
        <key>benutzername</key>
        <value>foobar</value>
      </item>
      <item>
        <key>passwort</key>
        <value>barfoo</value>
      </item>
    </parameters>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Request on Linux:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://portal.activity.backend.testing/">
  <SOAP-ENV:Body>
    <ns1:loginStufe1>
      <benutzername>foobar</benutzername>
      <passwort>barfoo</passwort>
    </ns1:loginStufe1>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


From the stacktrace (from the windows machine) I can see that the SOAP Request is generated by the __soapCall function which is part of the PHP SOAP client. So the problems comes from the PHP SOAP Client itself.
Code: Select all
#0  BeSimple\SoapClient\SoapClient->__doRequest(<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><parameters><item><key>benutzername</key><value>foobar</value></item><item><key>passwort</key><value>barfoo</value></item></parameters></SOAP-ENV:Body></SOAP-ENV:Envelope>
, http://localhost:10002/Authentifizierung/AuthentifizierungService, , 1, 0)
#1  SoapClient->__soapCall(loginStufe1, Array ([0] => Array ([benutzername] => foobar,[passwort] => barfoo)))
#2  ...


This is the stacktrace of the Linux machine:
Code: Select all
#0  BeSimple\SoapClient\SoapClient->__doRequest(<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://portal.activity.backend.testing/"><SOAP-ENV:Body><ns1:loginStufe1><benutzername>foobar</benutzername><passwort>barfoo</passwort></ns1:loginStufe1></SOAP-ENV:Body></SOAP-ENV:Envelope>
, http://localhost:10002/Authentifizierung/AuthentifizierungService, , 1, 0)
#1  SoapClient->__soapCall(loginStufe1, Array ([0] => Array ([benutzername] => foobar,[passwort] => barfoo)))
#2  ...


I tried PHP 5.3.15 (same as on the Linux machine) and the newest PHP 5.3.x Version (5.3.22) but it didn't solved my problem. An Update to PHP 5.4 is not an option since I have legacy code in my application which doesn't work with PHP 5.4

Any other Ideas what could cause or solve this issue?
jpr
 
Posts: 1
Joined: 22. February 2013 10:37
XAMPP Version: 5.5.19
Operating System: Windows 7 32bit

Return to PHP

Who is online

Users browsing this forum: No registered users and 3 guests