Jump to content

WSDL SOAP webservice client not working


hegelero

Recommended Posts

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

 

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 ?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.