From: Scott N. <sni...@sc...> - 2003-09-30 20:41:39
|
I would think the client would give you an error, because the XML = payload it is receiving is invalid. In particular, it starts "in hello = function with name: dietrich!". I assume that is an echo statement you = have shoved into your hello() function. If you remove it, maybe things = will look better. 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 -----=20 From: <Jag...@ne...> To: ""Scott Nichol"" <sni...@sc...> Sent: Tuesday, September 30, 2003 4:26 PM Subject: Re: RE: Fw: [Nusoap-general] NuSoap Newbie] > I understand. I was just experimenting trying to get any response. I = ran the code you sent (with a tweak to print the return value) and = finally got the debug, but no response like "hello dietrich!". Is the = message 'soap_server: server sending...' at the end of debug complete? = The output is below. >=20 > Return value: > Result >=20 > Request >=20 > POST /Greg/WebServiceTestServer.php HTTP/1.0 > User-Agent: NuSOAP/0.6.3 > Host: www.benchite.net > Content-Type: text/xml; charset=3D"ISO-8859-1" > Content-Length: 539 > SOAPAction: "" >=20 > <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?><SOAP-ENV:Envelope = SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/" = xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" = xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" = xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" = xmlns:si=3D"http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:hello = xmlns:ns1=3D"http://testuri.org"> > <name xsi:type=3D"xsd:string">dietrich</name></ns1:hello> > </SOAP-ENV:Body></SOAP-ENV:Envelope> >=20 > Response >=20 > HTTP/1.1 200 OK > Date: Tue, 30 Sep 2003 20:21:48 GMT > Server: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 = OpenSSL/0.9.6g > Connection: Close > X-Powered-By: PHP/4.3.1 > Content-Length: 1622 > Content-Type: text/xml; charset=3DUTF-8 >=20 > in hello function with name: dietrich!<?xml version=3D"1.0" = encoding=3D"ISO-8859-1"?><SOAP-ENV:Envelope = SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/" = xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" = xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" = xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" = xmlns:si=3D"http://soapinterop.org/xsd"><SOAP-ENV:Body><helloResponse><so= apVal xsi:type=3D"xsd:string">hello = dietrich!</soapVal></helloResponse></SOAP-ENV:Body></SOAP-ENV:Envelope><!= -- > soap_server: entering parseRequest() on 13:21 2003-09-30 > soap_server: method name: hello > soap_server: method 'hello' exists > soap_server: calling parser->get_response() > soap_server: parser debug:=20 > soap_parser: Entering soap_parser() > soap_parser: found root struct hello, pos 2 > soap_parser: adding data for scalar value name of value dietrich > soap_parser: inside buildVal() for hello(pos 2) of type struct > soap_parser: parsed successfully, found root struct: 2 of name hello >=20 > soap_server: params var dump array(1) { > ["name"]=3D> > &string(8) "dietrich" > } >=20 > soap_server: calling 'hello' with params > soap_server: calling method using call_user_func_array() > soap_server: response var dumpstring(15) "hello dietrich!" >=20 > soap_server: done calling method: hello, received hello dietrich! of = typestring > soap_server: got a(n) string from method > soap_server: serializing return value > soap_server: in serialize_val: hello dietrich!, , , ,=20 > soap_server: return val:string(56) "<soapVal = xsi:type=3D"xsd:string">hello dietrich!</soapVal>" >=20 > soap_server: serializing response > soap_server: server sending... >=20 > --> >=20 > "Scott Nichol" <sni...@sc...> wrote: >=20 > >helloworld.php is the server. You do not run it directly. You run a = client against it. The client will do a POST of text/xml content. = Running helloworld.php from a browser does a GET, which cannot have a = request body. > > > >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: <Jag...@ne...> > >To: <sni...@sc...> > >Sent: Tuesday, September 30, 2003 3:15 PM > >Subject: [FWD: RE: Fw: [Nusoap-general] NuSoap Newbie] > > > > > >> When I run load the 'helloworld.php' file by itself this is the = message I get and is the only response I have ever received. > >> > >> > >> This XML file does not appear to have any style information > >> associated with it. The document tree is shown below. > >> > >> - > >> <SOAP-ENV:Envelope = SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"> > >> - > >> <SOAP-ENV:Body> > >> - > >> <SOAP-ENV:Fault> > >> <faultcode>Server</faultcode> > >> <faultactor>method '' not defined in service ''</faultactor> > >> <faultstring/> > >> - > >> <detail> > >> <soapVal xsi:type=3D"xsd:string"/> > >> </detail> > >> </SOAP-ENV:Fault> > >> </SOAP-ENV:Body> > >> </SOAP-ENV:Envelope> > >> - > >> <!-- > >> > >> soap_server: entering parseRequest() on 12:14 2003-09-30 > >> soap_server: method name: > >> soap_server: method '' not found! > >> soap_server: parser debug: > >> soap_parser: xml was empty, didn't parse! > >> > >> soap_server: server sending... > >> > >> --> > >> > >> __________________________________________________________________ > >> McAfee VirusScan Online from the Netscape Network. > >> Comprehensive protection for your entire computer. Get your free = trial today! > >> = http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=3D393397= > >> > >> Get AOL Instant Messenger 5.1 free of charge. Download Now! > >> http://aim.aol.com/aimnew/Aim/register.adp?promo=3D380455 > >> > > >=20 > __________________________________________________________________ > McAfee VirusScan Online from the Netscape Network. > Comprehensive protection for your entire computer. Get your free trial = today! > = http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=3D393397= >=20 > Get AOL Instant Messenger 5.1 free of charge. Download Now! > http://aim.aol.com/aimnew/Aim/register.adp?promo=3D380455 > |