Skip to Content
0
Former Member
Oct 09, 2008 at 08:08 AM

PHP5 SOAP WSDL and Xcelsius 2008 communication error

37 Views

Hi,

I wood like to use PHP5 Soap server and WSDL for Xcelsius2008.

Now Xcelsius 2008 can read WSDL parameters, and data from Xcelsius appear in Soap server, but in the Soap Response is the error message:

<?xml version="1.0" encoding="UTF-8"?>

http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Client</faultcode>

<faultstring>Bad Request</faultstring>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

My WSDL is here:

http://www.tanit.hu/custimp/wsdl/hello/hello_04.wsdl

My PHP5 Soap Server:

<?php

ini_set("soap.wsdl_cache_enabled","0");

$server = new SoapServer("hello_04.wsdl");

class HelloService{

function doHello($yourName){

if (strlen(trim($yourName))) {

return "Hello ".$yourName;

} else {

throw new SoapFault("Server","The input parameter is Empty!");

}

}

}

?>

My PHP5 Soap Client (is working properly):

<?php

ini_set("soap.wsdl_cache_enabled","0");

try{

$sClient = new SoapClient('http://www.tanit.hu/custimp/wsdl/hello/hello_04.wsdl');

$response = $sClient->doHello('MyName');

echo $response;

} catch(SoapFault $e){

var_dump($e);

}

?>

Could somebody help me?

Thx.