[HTML_AJAX-devel] HTML_AJAX and nuSOAP

Marque marque1968 at aqmulate.com
Fri May 5 05:45:16 PDT 2006


It seams to me that it's inpossible to work with HTML_AJAX and nuSOAP. As
soon as the $server->handlerequest(); is called, none of the calls to the
WDSL will work. I either get:
{”errNo”:8,”errStr”:”Use of undefined constant GetChargePlanResult -
assumed
‘GetChargePlanResult’”,”errFile”:”c:\\Inetpub\\wwwroot\\soap1\\testx4a.php”,”errLine”:66}

of an javascript error:
PHP Error: Use of undefined constant GetChargePlanResult - assumed
‘GetChargePlanResult’

GetChargePlanResult is the return of the calling of the GetChargePlan
function:
$doSendUs = array(’AChargePlan’ => $lastplan,’ADirection’ => $direction);
$result = $proxy->GetChargePlan($doSendUs);

(in the non-HTML_AJAX version, even the quotes around AChargePlan and
ADirection are not needed)

Setting error_reporting(0); as Joshua Eichorn suggested, doesn't solve the
errornotice.

Has anybody an idea how to tweak HTML_AJAX to work together with webservices?

Marque.



Hello Joshua,

thank you for the quick response. I'll try to post this follow up also on
the mentioned mailing list, but I wont let the opportunity pass on getting
the same quick response as I had on the first part of the question.

I think I failed in posting my question, as I never posted the examply
which generated the mentioned error. It came from:

 $doSendUs = array('AChargePlan' => $lastplan,'ADirection' => $direction);
 $result = $proxy->GetChargePlan($doSendUs);

Here it returns that the GetChargePlanResult field (which in effect is the
return of the called function) is wrong without the quotes, whilst I never
pass the return field definition. So adding extra quotes won't work.

As with regards to your error reporting level advise: I've added the
following code at the top of the first PHP:
 error_reporting(0);
However, I still get the error:
PHP Error: Use of undefined constant GetChargePlanResult - assumed
'GetChargePlanResult'

I hope there is an easy sollution to this all.



-- 
================================================
This mail is provided by AQmulate.com. The
internet Answers and Questions accumulation.
================================================




More information about the Html_ajax-devel mailing list