[PHP] Re: PEAR::SOAP return tag trouble in migration to PEAR::SOAP from NuSOAP

2004-12-05 Thread Roland Schorr
I had the same trouble, this is another bug which causes big trouble 
with many SOAP-Clients. My bugfix now works well with all the clients I 
use, so maybe this helps you as well:
See http://pear.php.net/bugs/bug.php?id=2877

Rgs - Ro!and.
Jeff Rodriguez schrieb:
I'm trying to migrate to PEAR::SOAP from NuSOAP, but I'm confused as to
why the result sent back from a function is wrapped in a return tag.
The return part of my code is simple enough:
return array('lastStatus' = 'ok');
But this gets wrapped in a return tag:
return xsi:type=xsd:string
lastStatus
xsi:type=xsd:stringok/lastStatus/return/ns4:reportInResponse

Here is the SOAP response:
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:ns4=urn:mwsWSDL
 SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
SOAP-ENV:Body

ns4:reportInResponse
return xsi:type=xsd:string
lastStatus
xsi:type=xsd:stringok/lastStatus/return/ns4:reportInResponse
/SOAP-ENV:Body
/SOAP-ENV:Envelope
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PEAR::SOAP

2004-03-31 Thread Jason Barnett
Robby Russell wrote:
I am trying to debug some xml issues with a SOAP/Client-based script.

$sc = new SOAP_Client(...);

is there a way to display the XML it attempts to send the server when I 
perform a
$sc-call(...)

*back to his google searches*



Just as a note, you might try posting to the php.pear.general group for 
your PEAR questions - some of the developers help out over there.  In 
any case it looks like you should be able to find the xml message in 
your transport class's send() method; check the SOAP/Transport directory

SOAP/Transport/HTTP.php

function send($msg, $options = null)
{
print_r($msg);
...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php