From: Scott N. <sni...@sc...> - 2004-02-19 21:59:10
|
From the WSDL, the parameter for MsgToMorse has the following structure <s:element name=3D"MsgtoMorse"> <s:complexType> <s:sequence> <s:element minOccurs=3D"0" maxOccurs=3D"1" name=3D"msg" = type=3D"s:string"/> </s:sequence> </s:complexType> </s:element> This means your code should look more like $msgToMorse =3D array('msg' =3D> 'Hello World'); $params =3D array('MsgToMorse' =3D> $msgToMorse); 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: "Jeraimee Hughes" <jh...@re...> To: <Nus...@li...> Sent: Thursday, February 19, 2004 3:36 PM Subject: [Nusoap-general] Error using .NET services I'm having a strage (to me) error when trying to consume .NET services. I'm now testing this with the simple TMorse service for ease. Test script: $sc =3D new = soapclient('http://helena.europe.webmatrixhosting.net/Morse.asmx?WSDL', = true); $params =3D array('MsgtoMorse' =3D> 'Hello World' ); $result =3D $sc->call('MsgtoMorse', $params); Results in the following WSDL (Take note of the broken <msg> content) POST /Morse.asmx HTTP/1.0 User-Agent: Revelex/0.6.6 Host: helena.europe.webmatrixhosting.net Content-Type: text/xml; charset=3DISO-8859-1 SOAPAction: "http://www.regom.de/MsgtoMorse" Content-Length: 438 <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?><SOAP-ENV:Envelope = 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><MsgtoMorse = xmlns=3D"http://www.regom.de"><msg>H</msg></MsgtoMorse></SOAP-ENV:Body></= SOAP-ENV:Envelope> Anyone have any idea what's going on? This seems to be a constant issue with all the .NET services I've tried (4 so far). --=20 __ __ \ \/ / Jeraimee Hughes \ / Lead Developer / \ Revelex Corporation /_/\_\ Phone: (561) 988-5588 http://www.revelex.com/ Hobbes: What would you call the creation of the universe? =20 Calvin: The Horrendous Space Kablooie! ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick _______________________________________________ Nusoap-general mailing list Nus...@li... https://lists.sourceforge.net/lists/listinfo/nusoap-general |