logo       

Re: Cisco AXL Soap: msg#00086

php.nusoap.general

Subject: Re: Cisco AXL Soap

One problem might be that you are passing a literal XML string to the service.
While NuSOAP at one time supported this, it was only when the client used WSDL.

For debugging, place the following lines at the bottom of your client code. If
you want help interpretting the output, just post it here.

echo '<h2>Request</h2><pre>' . htmlspecialchars($s->request, ENT_QUOTES) .
'</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($s->response, ENT_QUOTES) .
'</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($s->debug_str, ENT_QUOTES) .
'</pre>';

BTW, use the setCredentials call, not the username/password in the URL.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Chhai Thach" <chhait@xxxxxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, April 27, 2004 1:42 AM
Subject: [Nusoap-general] Cisco AXL Soap


Hi everyone,



I'm new to this mailing list and new to SOAP. I'm wondering if anyone
wrote a client for Cisco AXL. I can't seem to get my client to work,
seems to be no response from the server when posting a request (doesn't
return). I'm sure the server is fine though.



Here's my code:



$s = new
soapclient("http://username:password@hostname/CCMApi/AXL/V1/soapisapi.dl
l");

# I also tried using this instead of putting user name and password
above.

#$s->setCredentials("username", "password", 'digest');

$err = $s->getError();

if ($err) {

print $err;

}




$msg = '<axl:getPhone xmlns="http://www.cisco.com/AXL/1.0";'.

'xsi:schemaLocation="http://www.cisco.com/AXL/1.0 '.

'http://gkar.cisco.com/schema/axlsoap.xsd sequence="1234">' .

'<phoneName>SEP0003E32A1806</phoneName></axl:getPhone>';

$s->call('getPhone', $msg);



if ($s->fault) {

echo "FAULT: <p>Code: {$s->faultcode} <br />";

echo "String: {$s->faultstring} </p>";

}



Any help would be appreciated.



Thanks,

Chhai






-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise