2008年10月28日星期二

RE: [fw-webservices] See the soap message

Okaay,

But why then do i get an empty string?
I just want to see the soap message before it gets sent?

DerMika wrote:
>
> Trace is enabled by default in Zend_Soap_Client. You don't have to
> define it.
>
> Just use the getlastresponse and getlastrequest methods, they should
> work.
>
> Dieter
>
> -----Original Message-----
> From: jjsanders [mailto:jigalroecha@gmail.com]
> Sent: dinsdag 28 oktober 2008 9:20
> To: fw-webservices@lists.zend.com
> Subject: Re: [fw-webservices] See the soap message
>
>
> When i do $client = new Zend_Soap_Client($wsdl, array('trace' => true));
> I get the error message:
> Fatal error: Uncaught exception 'Zend_Soap_Client_Exception' with
> message
> 'Unknown SOAP client option' in
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php:223 Stack trace:
> #0
> /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php(122):
> Zend_Soap_Client->setOptions(Array) #1
> /usr/local/wwwroot/jigal/wstest.php(10):
> Zend_Soap_Client->__construct('http://andijvie...', Array) #2 {main}
> thrown
> in /usr/local/wwwroot/jigal/library/Zend/Soap/Client.php on line 223
>
> Furthermore:
>
> this
> $client = new Zend_Soap_Client($wsdl, $options);
> $client ->setEncoding("UTF-8");
> $client ->setSoapVersion(SOAP_1_1);
> $bla = $client->getLastRequest();
> Zend_Debug::dump($bla, 'bla',true);
>
> gives me an empty string.
>
>
> beberlei wrote:
>>
>> yes, there are possibilities to see both request and response:
>>
>> $client = new Zend_Soap_Client($wsdl, array('trace' => true));
>>
>> $client->... do stuff;
>>
>> and then you can do:
>>
>> $client->getLastRequest();
>> $client->getLastResponse();
>> $client->getLastRequestHeaders();
>> $client->getLastResponseHeaders();
>>
>> On Monday 27 October 2008 17:45:29 Jigal sanders wrote:
>>> Hello everyone.
>>>
>>> I have the following test stuff for a soap message :
>>>
>>> <?
>>> //if(is_dir('./library/')) echo "ja"; exit;
>>> set_include_path('./library/');
>>> require_once('Zend/Loader.php');
>>> Zend_Loader::registerAutoload();
>>> $wsdl = "http://buzz.nl/WSCRM/SubscriptionService?wsdl";
>>> $client = new Zend_Soap_Client($wsdl);
>>> $client ->setEncoding("UTF-8");
>>> $client ->setSoapVersion(SOAP_1_1);
>>>
>>> Zend_Debug::dump($client, 'bla',true);
>>>
>>> ?>
>>>
>>> is there a way to see the acutal soap message in xml?
>>
>>
>>
>> --
>> Benjamin Eberlei
>> http://www.beberlei.de
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/See-the-soap-message-tp20191520p20202969.html
> Sent from the Zend Web Services mailing list archive at Nabble.com.
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
> 27/10/2008 7:57
>
>

--
View this message in context: http://www.nabble.com/See-the-soap-message-tp20191520p20203472.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: