help me with WSDL & SOAP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi everyone,

i'm trying to make an application which need SOAP
connection to

and here is their WSDL address :

and now i want to get some response from them, for
example i wrote these codes to try to get service info:

$soap = new SoapClient(" ",
        "trace" => 1,
                "exceptions" => 1,
                "encoding" => "UTF-8",
                "cache_wsdl" => WSDL_CACHE_NONE,
        "location" => " ",
        "uri" => " "

$res = $soap->GetServiceInfo(
    new SoapParam("XXXX", "UserName"),
    new SoapParam("XXXX", "Password")


and of course those username and password is correct :)

but i got nothing responsed, just blank, does anybody know why?

Thx !!!!!!!!!!!!!!


Re: help me with WSDL & SOAP

July Yang skrev:

Quoted text here. Click to load it

When working with the SOAP client in WSDL-mode, "location" and "uri"
should not be needed. Try to leave them out to make sure, they don't
cause troubles.

Next, wrap your SOAP related code in a "try/catch" clause:

  try {
    // Do the SOAP stuff...
  } catch (Exception $e) {
    echo('An exception occured: ' . $e);
    echo('<pre>' . htmlspecialchars(
      $soap->__getLastRequestHeaders() .
      $soap->__getLastRequest() .
      $soap->__getLastResponseHeaders() .
      $soap->__getLastResponse() .

- and see what happens.



Re: help me with WSDL & SOAP

2010/6/4 14:34, Jonathan Stein д:
Quoted text here. Click to load it
Thx a lot :D i've solved this problem, it was cause by the password :P asks to base64_encode the password, and it was not mentioned
in the documentation but a line of small letters on their website -_-!!

But thx all the same !


Site Timeline