hegelero Posted June 6, 2009 Share Posted June 6, 2009 Hi; How can i send a soap client request http://test.iodeme.com/iodeme.asmx ? I have tried nusoap and natural php-soap. <?php $client = new SoapClient('http://test.iodeme.com/iodeme.asmx?wsdl'); $go = $client-> getBankList(array('username'=>'ARENA', 'agentID'=>'CONNACT', 'authentication'=>'false', 'getAll'=>'true')); var_dump($go); ?> But Reponse is not a XML or any string. username and agentID is true and can be used for test. When i do this request whit a java application response is XML valid. response is object(stdClass)#4 (0) { } I want to use this function POST /iodeme.asmx HTTP/1.1 Host: test.iodeme.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://iodeme.arenaopen.com/GetBankList" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationInfo xmlns="http://iodeme.arenaopen.com/"> <agentID>string</agentID> <username>string</username> <authenticated>boolean</authenticated> </AuthenticationInfo> </soap:Header> <soap:Body> <GetBankList xmlns="http://iodeme.arenaopen.com/"> <getAll>boolean</getAll> </GetBankList> </soap:Body> </soap:Envelope> Link to comment https://forums.phpfreaks.com/topic/161165-wsdl-soap-webservice-client-not-working/ Share on other sites More sharing options...
hegelero Posted June 8, 2009 Author Share Posted June 8, 2009 I've used nusoap class, everything is right my sending xml is true and does validated. But now I get HTTP 400 error. I cant change the values of connection request HTTP version 1.0. I already searched all over the classes on lib for 'HTTP' as string. But no hits. My requst is POST /iodeme.asmx HTTP/1.0 Host: test.iodeme.com Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "http://iodeme.arenaopen.com/GetBankList" Content-Length: 820 I thing it must be POST /iodeme.asmx HTTP/1.1 Host: test.iodeme.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://iodeme.arenaopen.com/GetBankList" anyone help ? Link to comment https://forums.phpfreaks.com/topic/161165-wsdl-soap-webservice-client-not-working/#findComment-851828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.