Re: PEAR::SOAP returns only 'Object' as answer .....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Mike Carter" <mikeatwork@ukonline.co.uk> schrieb im Newsbeitrag
11054A7BC9A71245BCBB991757932573100ED2@mail.koa.uk.com">news:11054A7BC9A71245BCBB991757932573100ED2@mail.koa.uk.com...


>> -----Original Message-----
>> From: Arne Kösling [mailto:phphelp@koesling.net]
>>
>> Here is my major-problem : My Helly World example (listed at the end)
>> produces no errors,
>> But instead of returning "Hello World" as answer, it only
>> returns "Object",
>> It
>> makes no diffence, what I want to submit, there s only the answer
>> "Object"...
>> (i ve tried that on linux,too. same result)
>
>Rather than printing out the result which is returned do a var-dump() of it
>- you may find that the SOAP server has either returned an error as a SOAP
>fault -or- the answer as an attribute of the object.
>
>Have a look ;-)
>
>Regards,
>
>
>Mc.

Hi !

I made a var-dump of $response (listed below).
First I had to correct an error in the source code of the server.

But after that, the var-dump returns such messy code. I don't know how to
handle or interpret that.
More than this it points to some lines of code of the PEAR Code. The Error
can t be located there.
The "amazon" example worked fine !

I don't know what to do with that. I haven t programmed php for years and I
am completely newbie to
Web Services with PHP. The Code of my first posting was from an example out
of the net. I didn t write
that on my own. I made that to understand Web Services. But, indeed, that
didn t do it s job well, yet.

I d be grateful, if someone could help. Some sourcecode or some simple(!)
examples (that work, please !)
would be more than welcome.

(This problem drives me to a nervous breakdown, because I need to program in
php and can t even start :-(     )

Regards,

Arne


(vardump) -> the sourcecode is in my previous posting. (there s one error in
the "server" sourcecode (  one ); too much )  that I already corrected)
----

object(soap_fault)(8) { ["error_message_prefix"]=> string(0) "" ["mode"]=>
int(1) ["level"]=> int(1024) ["code"]=> string(4) "HTTP" ["message"]=>
string(5924) "
Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
602

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
603

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
605

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 209

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218
SOAP-ENV:Server method '{urn:helloworld}helloWorld' not defined in service
C:\php4\pear\pear\SOAP\Fault.php 49 pear_error pear_error :: method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Base.php 199 soap_fault soap_fault -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 377 _raisesoapfault soap_server -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 168 parserequest soap_server -> <?xml
version="1.0" encoding="UTF-8"?> <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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> c:\apache\apache\htdocs\pearsoap-hello-server.php 56
service soap_server -> <?xml version="1.0" encoding="UTF-8"?>
<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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> " ["userinfo"]=> string(0) "" ["backtrace"]=> array(7)
{ [0]=> array(6) { ["file"]=> string(32) "C:\php4\pear\pear\SOAP\Fault.php"
["line"]=> int(49) ["function"]=> string(10) "pear_error" ["class"]=>
string(10) "pear_error" ["type"]=> string(2) "::" ["args"]=> array(5) {
[0]=> string(5924) "
Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
602

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
603

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
605

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 209

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218
SOAP-ENV:Server method '{urn:helloworld}helloWorld' not defined in service
C:\php4\pear\pear\SOAP\Fault.php 49 pear_error pear_error :: method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Base.php 199 soap_fault soap_fault -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 377 _raisesoapfault soap_server -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 168 parserequest soap_server -> <?xml
version="1.0" encoding="UTF-8"?> <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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> c:\apache\apache\htdocs\pearsoap-hello-server.php 56
service soap_server -> <?xml version="1.0" encoding="UTF-8"?>
<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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> " [1]=> string(4) "HTTP" [2]=> NULL [3]=> NULL [4]=>
string(0) "" } } [1]=> array(6) { ["file"]=> string(31)
"C:\php4\pear\pear\SOAP\Base.php" ["line"]=> int(199) ["function"]=>
string(10) "soap_fault" ["class"]=> string(10) "soap_fault" ["type"]=>
string(2) "->" ["args"]=> array(6) { [0]=> string(5924) "
Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
602

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
603

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
605

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 209

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218
SOAP-ENV:Server method '{urn:helloworld}helloWorld' not defined in service
C:\php4\pear\pear\SOAP\Fault.php 49 pear_error pear_error :: method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Base.php 199 soap_fault soap_fault -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 377 _raisesoapfault soap_server -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 168 parserequest soap_server -> <?xml
version="1.0" encoding="UTF-8"?> <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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> c:\apache\apache\htdocs\pearsoap-hello-server.php 56
service soap_server -> <?xml version="1.0" encoding="UTF-8"?>
<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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> " [1]=> string(4) "HTTP" [2]=> string(0) "" [3]=>
string(0) "" [4]=> NULL [5]=> NULL } } [2]=> array(6) { ["file"]=>
string(41) "C:\php4\pear\pear\SOAP\Transport\HTTP.php" ["line"]=> int(391)
["function"]=> string(15) "_raisesoapfault" ["class"]=> string(19)
"soap_transport_http" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=>
string(5924) "
Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
602

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
603

Warning: Illegal offset type in C:\php4\pear\pear\SOAP\Server.php on line
605

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 209

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218

Warning: Cannot modify header information - headers already sent by (output
started at C:\php4\pear\pear\SOAP\Server.php:602) in
C:\php4\pear\pear\SOAP\Server.php on line 218
SOAP-ENV:Server method '{urn:helloworld}helloWorld' not defined in service
C:\php4\pear\pear\SOAP\Fault.php 49 pear_error pear_error :: method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Base.php 199 soap_fault soap_fault -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 377 _raisesoapfault soap_server -> method
'{urn:helloworld}helloWorld' not defined in service Server
C:\php4\pear\pear\SOAP\Server.php 168 parserequest soap_server -> <?xml
version="1.0" encoding="UTF-8"?> <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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> c:\apache\apache\htdocs\pearsoap-hello-server.php 56
service soap_server -> <?xml version="1.0" encoding="UTF-8"?>
<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:helloworld"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body> <ns4:helloWorld> <inmessage
xsi:type="xsd:string">World</inmessage></ns4:helloWorld> </SOAP-ENV:Body>
</SOAP-ENV:Envelope> " } } [3]=> array(6) { ["file"]=> string(41)
"C:\php4\pear\pear\SOAP\Transport\HTTP.php" ["line"]=> int(518)
["function"]=> string(14) "_parseresponse" ["class"]=> string(19)
"soap_transport_http" ["type"]=> string(2) "->" ["args"]=> array(0) { } }
[4]=> array(6) { ["file"]=> string(41)
"C:\php4\pear\pear\SOAP\Transport\HTTP.php" ["line"]=> int(153)
["function"]=> string(9) "_sendhttp" ["class"]=> string(19)
"soap_transport_http" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=>
&string(531) " World " [1]=> array(6) { ["trace"]=> int(0) ["input"]=>
string(5) "parse" ["result"]=> string(5) "parse" ["parameters"]=>
bool(false) ["namespace"]=> string(14) "urn:helloworld" ["style"]=>
string(3) "rpc" } } } [5]=> array(6) { ["file"]=> string(33)
"C:\php4\pear\pear\SOAP\Client.php" ["line"]=> int(264) ["function"]=>
string(4) "send" ["class"]=> string(19) "soap_transport_http" ["type"]=>
string(2) "->" ["args"]=> array(2) { [0]=> &string(531) " World " [1]=>
array(6) { ["trace"]=> int(0) ["input"]=> string(5) "parse" ["result"]=>
string(5) "parse" ["parameters"]=> bool(false) ["namespace"]=> string(14)
"urn:helloworld" ["style"]=> string(3) "rpc" } } } [6]=> array(6) {
["file"]=> string(49) "c:\apache\apache\htdocs\pearsoap-hello-client.php"
["line"]=> int(14) ["function"]=> string(4) "call" ["class"]=> string(11)
"soap_client" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=>
string(10) "helloWorld" [1]=> &array(1) { ["inmessage"]=> string(5)
"World" } [2]=> array(1) { ["namespace"]=> string(14)
"urn:helloworld" } } } } ["callback"]=> NULL }

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux