|
Re: Problem with big??? content and WSDL/XML: msg#00100php.nusoap.general
It is best to use an associative array for the parameters. Sample code is below. Also, I will send you separately my working copy of nusoap.php which supports rpc/literal better. $client = new soapclient("http://info.planet.ee/WSDL.xml", true); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; } $SigDoc = $DDoc; $HoldSession = true; $result = $client->call('StartSession', array('SigDocXML' => $SigDoc, 'bHoldSession' => $HoldSession)); if ($client->fault) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { $err = $client->getError(); if ($err) { echo '<h2>Error</h2><pre>' . $err . '</pre>'; } else { echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } } echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>'; 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: "Muhv" <maamiin@xxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, April 29, 2004 8:27 AM Subject: [Nusoap-general] Problem with big??? content and WSDL/XML I try to create nuSoap client app, what uses wsdl (http://info.planet.ee/WSDL.xml). When I try to call function: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> $params = array($DDoc, 'false'); # $DDoc - uploaded .ddoc file (utf-8) (Digitaly signed doc.) $result = $client->call( 'StartSession', $params, '', '', FALSE, '', 'rpc', 'literal' ); >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (Result: http://info.planet.ee/test.php.htm ) First of all, I cant send this request, it gives always HTTP Server error, because server gets only first part of this request. Is there some problem in PHP to send big files with SOAP??? (PEAR::SOAP has same problem in my computer) When I try without file, I get error about invalid XML file! XML is correct but nuSoap doesnt include this 'StartSession' tag to XML, inserts only parameters?!?!! Why nuSoap ignores StartSession and all other commands in this wsdl file??? Something wrong with wsdl?? or some parameter is incorrect? As you can see in request part of debugging info, there is no StartSession dag, but should be!!! Thanx in advance, if anybody can help! System info: PHP: 4.3.4/apache 2.0/Windows NT and PHP 4.3.3/apache 2/RH linux 6.2 Muhv ----------------------------------------- Hot Mobiil - helinad, logod ja piltsõnumid! http://portal.hot.ee ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Problem with big??? content and WSDL/XML: 00100, Muhv |
|---|---|
| Next by Date: | unsubscribe?: 00100, christopher justin |
| Previous by Thread: | Problem with big??? content and WSDL/XMLi: 00100, Muhv |
| Next by Thread: | unsubscribe?: 00100, christopher justin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |