on 10-09-2008 9:08 AM
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"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK.
[I found this.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233343330333133373334%7D.do]
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.