|
Re:NuSoap Document Literal Encoding (Carl Bourne): msg#00001php.nusoap.general
Scott, Thanks for your help with this one. We have tried your suggestion that initially appears to work. However our SOAP test client (Mindreef's SOAPScope) now reports the following errors when it analyses the WSDL file. Everything worked fine with NuSoap using RPC encoding, however, we need to use these SOAP services with Microsoft Infopath which only support Document Literal encoding. Regards, Carl Bourne ---------------------------------------------------------------------------- The soap:body element soap:body in wsdl:binding EES_SOAP_InterfaceBinding is "document-literal" but is associated with wsdl:message listkeysonkeyringRequest which contains more than one wsdl:part. ------------------------------------------- <message name="listkeysonkeyringRequest"> <part name="keyring" type="xsd:string" /> <part name="user" type="xsd:string" /> <part name="passwd" type="xsd:string" /> </message> ---------------------------------------------------------------------------- Namespace {http://soapinterop.org/xsd} is unknown and was not defined by any of the targetNamespace definitions. Consider changing all uses of this namespace to the "{http://soapinterop.org/}" namespace, which would allow Element return, using unresolved QName {http://soapinterop.org/xsd}ArrayOfstring, to refer to Element ArrayOfstring. ------------------------------------------ <xsd:complexType name="ArrayOfstring"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="anyType[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> -------------------------------------------- Regards, Carl Bourne -----Original Message----- From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx Sent: 05 April 2004 04:13 To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx Subject: Nusoap-general digest, Vol 1 #494 - 1 msg Send Nusoap-general mailing list submissions to nusoap-general@xxxxxxxxxxxxxxxxxxxxx To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nusoap-general or, via email, send a message with subject or body 'help' to nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx You can reach the person managing the list at nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx When replying, please edit your Subject line so it is more specific than "Re: Contents of Nusoap-general digest..." Today's Topics: 1. Re: RE: NuSoap Document Literal Encoding (Carl Bourne) (Scott Nichol) --__--__-- Message: 1 From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Subject: Re: [Nusoap-general] RE: NuSoap Document Literal Encoding (Carl Bourne) Date: Sun, 4 Apr 2004 13:17:36 -0400 The signature for soap_server::register is function = register($name,$in=3Dfalse,$out=3Dfalse,$namespace=3Dfalse,$soapaction=3D= false,$style=3Dfalse,$use=3Dfalse,$documentation=3D'') Try setting $style =3D 'document' and $use =3D 'literal'. 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: "Carl Bourne" <carl.bourne@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, April 03, 2004 9:46 AM Subject: [Nusoap-general] RE: NuSoap Document Literal Encoding (Carl = Bourne) >Are you asking about client code or server code? I'm referring to setting up a SOAP server that uses Document Literal = rather than RPC! Regards, Carl Bourne -----Original Message----- From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx Sent: 03 April 2004 05:04 To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx Subject: Nusoap-general digest, Vol 1 #492 - 5 msgs Send Nusoap-general mailing list submissions to nusoap-general@xxxxxxxxxxxxxxxxxxxxx To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nusoap-general or, via email, send a message with subject or body 'help' to nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx You can reach the person managing the list at nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx When replying, please edit your Subject line so it is more specific than "Re: Contents of Nusoap-general digest..." Today's Topics: 1. Unsuscribing, and Thx, Scott!! (=3D?ISO-8859-1?Q?Daniel_Garc=3DEDa_Fern=3DE1ndez?=3D) 2. Re: value must be numerical error (Scott Nichol) 3. NuSoap Document Literal Encoding (Carl Bourne) 4. PHP5/SoapClient name clash (Thomas G. Larsen) 5. Re: NuSoap Document Literal Encoding (Scott Nichol) -- __--__-- Message: 1 Date: Fri, 02 Apr 2004 11:22:14 +0200 From: =3D?ISO-8859-1?Q?Daniel_Garc=3DEDa_Fern=3DE1ndez?=3D = <dgf287@xxxxxx> To: nusoap <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Subject: [Nusoap-general] Unsuscribing, and Thx, Scott!! Well, I've recently finished the php project I was working, using NuSOAP = (of course). I have not contributed much in this list, but I have read most of the=20 email posted in it, and before unsuscribing(due to too many messages/day) , I'd like to=20 Thank Scott for two main reasons: - Developing and mantaining the Nusoap Libraries. - Helping all of us, answering lots of silly questions, examinig every=20 line of code we send and being so kind. I really think saying thanks is necessary sometimes. Makes people know=20 that their work is necessary. Regards: Dani. PS: I've olny mentioned Scott, but this is extensible to all the people=20 that are contributing to this list either sending questions, bugs or whatever. -- __--__-- Message: 2 From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Subject: Re: [Nusoap-general] value must be numerical error Date: Fri, 2 Apr 2004 08:57:49 -0500 If you need to manipulate the data as iso-8859-9, set =3D $soapclient->decodeUTF8(false) and use the multi-byte string functions = =3D (http://www.php.net/mbstring). The important question is, what do you need to do with the data? For = =3D example, if you wanted to put the results in a database, but the =3D database was using the iso-8859-1 code page, you would not be able to = =3D store the results in their original form. Likewise, you cannot display = =3D the results accurately on an HTML page if the character set for the page = =3D is iso-8859-1. However, if you leave the data as utf-8, you could =3D display it in HTML by setting the page's character set to utf-8 =3D (browsers assume iso-8859-1 if no character set is specified), or you = =3D could store the data in a database that uses utf-8. 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 -----=3D20 From: "Nergis Kilin=3DE7" <nergisk@xxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Friday, April 02, 2004 3:52 AM Subject: Re: [Nusoap-general] value must be numerical error It is <?xml version=3D3D"1.0" encoding=3D3D"utf-8" ?>=3D20 They use iso-8859-9, what i should do? Thanks... ----- Original Message -----=3D20 From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, April 01, 2004 6:21 PM Subject: Re: [Nusoap-general] value must be numerical error > The code below effectively duplicates the default behavior of NuSOAP, = =3D specifically, a UTF-8 payload is converted to PHP's default ISO-8859-1 = =3D character set. >=3D20 > Is the XML you are receiving UTF-8? >=3D20 > Is the data encoded with UTF-8 compatible with the ISO-8859-1 =3D encoding? >=3D20 > Scott Nichol >=3D20 > 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 -----=3D20 > From: "Nergis Kilin=3DE7" <nergisk@xxxxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Thursday, April 01, 2004 9:32 AM > Subject: Re: [Nusoap-general] value must be numerical error >=3D20 >=3D20 > Like this? >=3D20 > <?php > require_once('nusoap.php'); > =3D $wsdl=3D3D"http://www.ttn.com.tr/MemberService/TTNMemberService.asmx?WSDL= ";=3D > $client=3D3Dnew soapclient($wsdl, 'wsdl'); > $param=3D3Darray (array ('strVergiNo'=3D3D>7350174429)); > $client->decodeUTF8(false); > $d=3D3D$client->call('GetMemberDataByVN', $param); > $a=3D3D$d['diffgram']['NewDataSet']['Table']['Adi']; > $c=3D3Dutf8_decode ($a); > echo $c; > ?> > It does not work :( >=3D20 >=3D20 > ----- Original Message -----=3D20 > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Thursday, April 01, 2004 5:00 PM > Subject: Re: [Nusoap-general] value must be numerical error >=3D20 >=3D20 > > If the SOAP data from the server is encoded as UTF-8, NuSOAP will = =3D already > have decoded it to PHP's ISO-8859-1 character set. You should not =3D need to > call utf8_decode. > > > > Is the response you get really compatible with ISO-8859-1? If it is = =3D not, > you want to call > > > > $client->decodeUTF8(false); > > > > before $client->call(...). This will leave the data from the SOAP > response in UTF-8 format. You would then decode it using functions = =3D for the > appropriate character set. > > > > 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 -----=3D20 > > From: "Nergis Kilin=3DE7" <nergisk@xxxxxxxxxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Sent: Thursday, April 01, 2004 4:13 AM > > Subject: Re: [Nusoap-general] value must be numerical error > > > > > > Thanks a lot, it worked. But I have another problem, > > I want to decode the variable "$data" > > Here is the code, > > > > <?php > > require_once('nusoap.php'); > > =3D $wsdl=3D3D"http://www.ttn.com.tr/MemberService/TTNMemberService.asmx?WSDL= ";=3D > > $client=3D3Dnew soapclient($wsdl, 'wsdl'); > > $param=3D3Darray ('parameters'=3D3D>array = ('strVergiNo'=3D3D>7350174429)); > > $data=3D3D$client->call('GetMemberDataByVN', $param); > > $data=3D3D $data['diffgram']['NewDataSet']['Table']['Adi']; > > echo utf8_decode ($data); > > ?> > > > > But it does nothing, sample output is "RULMAK MAK?NA SAN.VE T?C.LTD. = =3D ?T?." > > What is wrong? > > > > > > ----- Original Message -----=3D20 > > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Sent: Wednesday, March 31, 2004 8:42 PM > > Subject: Re: [Nusoap-general] value must be numerical error > > > > > > > If you look at the WSDL, you will see that the message sent to > > ValidateMemberByVN is > > > > > > <message name=3D3D"ValidateMemberByVNSoapIn"> > > > <part name=3D3D"parameters" element=3D3D"s0:ValidateMemberByVN"/> > > > </message> > > > > > > This means there is one parameter named 'parameters' that is of = =3D type > > ValidateMemberByVN. This type is defined in the WSDL as > > > > > > <s:element name=3D3D"ValidateMemberByVN"> > > > <s:complexType> > > > <s:sequence> > > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" = name=3D3D"strVergiNo" > > type=3D3D"s:string"/> > > > </s:sequence> > > > </s:complexType> > > > </s:element> > > > > > > NuSOAP models complexTypes as either PHP classes or associative = =3D arrays. > > Thus, a ValidateMemberByVN type might look like > > > > > > array('strVergiNo' =3D3D> '5649745'); > > > > > > Together, this means your $param should look like this > > > > > > $param =3D3D array('parameters' =3D3D> array('strVergiNo' =3D3D> = =3D '5649745')); > > > > > > 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 -----=3D20 > > > From: "Nergis Kilin=3DE7" <nergisk@xxxxxxxxxxxxxxxxx> > > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > > Sent: Wednesday, March 31, 2004 10:36 AM > > > Subject: [Nusoap-general] value must be numerical error > > > > > > > > > Hi, > > > I am a begginner to NuSOAP. I am trying to consume a web service = =3D which > was > > written in .NET. But i get a message "The tax number must be =3D numerical". > > > I use the version 0.6.7 1.71. > > > > > > The client code is: > > > <?php > > > require_once('nusoap.php'); > > > =3D $wsdl=3D3D"http://www.ttn.com.tr/MemberService/TTNMemberService.asmx?WSDL= ";=3D > > > $client=3D3Dnew soapclient($wsdl, 'wsdl'); > > > $param=3D3Darray(strVergiNo=3D3D>5649745); > > > echo $client->call('ValidateMemberByVN', $param); > > > ?> > > > > > > Perhaps the value is passed as null. Any answer is appreciated. > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > Free Linux tutorial presented by Daniel Robbins, President and CEO = =3D of > > > GenToo technologies. Learn everything from fundamentals to system > > > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id638&op=3DCCk > > > _______________________________________________ > > > Nusoap-general mailing list > > > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO = =3D of > > GenToo technologies. Learn everything from fundamentals to system > > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id638&op=3D3Dick > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO = =3D of > > GenToo technologies. Learn everything from fundamentals to system > > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id638&op=3DCCk > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nusoap-general >=3D20 >=3D20 >=3D20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id638&op=3D3Dick > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general >=3D20 >=3D20 >=3D20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id638&op=3DCCk > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general -- __--__-- Message: 3 From: "Carl Bourne" <carl.bourne@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Date: Tue, 2 Mar 2004 18:12:51 -0000 Subject: [Nusoap-general] NuSoap Document Literal Encoding This is a multi-part message in MIME format. ------=3D_NextPart_000_0036_01C40081.F9FA05F0 Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: 7bit I'm new to NuSoap and wondered if anybody could explain how to change = from the default RPC encoding to document literal encoding? =20 Regards, =20 Carl Bourne ------=3D_NextPart_000_0036_01C40081.F9FA05F0 Content-Type: text/html; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D3D"urn:schemas-microsoft-com:office:office" =3D xmlns:w=3D3D"urn:schemas-microsoft-com:office:word" =3D xmlns=3D3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D3D"Content-Type" CONTENT=3D3D"text/html; =3D charset=3D3Dus-ascii"> <meta name=3D3DGenerator content=3D3D"Microsoft Word 11 (filtered = medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3D3DEN-US link=3D3Dblue vlink=3D3Dpurple> <div class=3D3DSection1> <p class=3D3DMsoNormal><font size=3D3D2 face=3D3DArial><span = lang=3D3DEN-GB =3D style=3D3D'font-size: 10.0pt;font-family:Arial'>I’m new to NuSoap and wondered if =3D anybody could explain how to change from the default RPC encoding to document literal = =3D encoding?<o:p></o:p></span></font></p> <p class=3D3DMsoNormal><font size=3D3D2 face=3D3DArial><span = lang=3D3DEN-GB =3D style=3D3D'font-size: 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p> <p class=3D3DMsoNormal><font size=3D3D2 face=3D3DArial><span = lang=3D3DEN-GB =3D style=3D3D'font-size: 10.0pt;font-family:Arial'>Regards,<o:p></o:p></span></font></p> <p class=3D3DMsoNormal><font size=3D3D2 face=3D3DArial><span = lang=3D3DEN-GB =3D style=3D3D'font-size: 10.0pt;font-family:Arial'><o:p> </o:p></span></font></p> <p class=3D3DMsoNormal><font size=3D3D2 face=3D3DArial><span = lang=3D3DEN-GB =3D style=3D3D'font-size: 10.0pt;font-family:Arial'>Carl Bourne<o:p></o:p></span></font></p> </div> </body> </html> ------=3D_NextPart_000_0036_01C40081.F9FA05F0-- -- __--__-- Message: 4 Date: Fri, 02 Apr 2004 20:41:49 +0200 Reply-To: tgl@xxxxxxxxxx From: "Thomas G. Larsen" <tgl@xxxxxxxxxx> To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx Subject: [Nusoap-general] PHP5/SoapClient name clash Hi, I just spent a good couple of hours trying to figure out why the NuSOAP package wouldn't work on my server running PHP 5.0.0RC1 :oP I tried everything until it struck me that the PHP5 install was compiled with built-in SOAP support. And guess what, the built-in SOAP client class is called SoapClient. That clashes with the soapclient class of the NuSOAP package, causing the script to die with the message 'Cannot redeclare = class name soapclient on nusoap.php line xx'. Would it be unreasonable to ask for a renaming of the NuSOAP classes ? I know it would break some scripts, but since NuSOAP hasn't reached = version 1.0 yet, and PHP5 is approaching fast, I think now would be the best = time to do it. And while we're at at, wouldn't it be sensible to implement a default naming convention (at least for the classes) ? I suggest prefixing all classes with nusoap_ (instead of the current 'soap_', 'nusoap_', 'soap' = and 'no prefix' naming convention) to avoid any future clashes with other = SOAP packages. What do you think ? Regards, Thomas G. Larsen -- __--__-- Message: 5 From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Subject: Re: [Nusoap-general] NuSoap Document Literal Encoding Date: Fri, 2 Apr 2004 14:13:08 -0500 Are you asking about client code or server code? 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 -----=3D20 From: "Carl Bourne" <carl.bourne@xxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, March 02, 2004 1:12 PM Subject: [Nusoap-general] NuSoap Document Literal Encoding I'm new to NuSoap and wondered if anybody could explain how to change = =3D from the default RPC encoding to document literal encoding? =3D20 Regards, =3D20 Carl Bourne -- __--__-- _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general End of Nusoap-general Digest ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general --__--__-- _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general End of Nusoap-general Digest ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | About SOAP Server: 00001, Adrian Badoiu |
|---|---|
| Next by Date: | Re: Re:NuSoap Document Literal Encoding (Carl Bourne): 00001, Scott Nichol |
| Previous by Thread: | About SOAP Serveri: 00001, Adrian Badoiu |
| Next by Thread: | Re: Re:NuSoap Document Literal Encoding (Carl Bourne): 00001, Scott Nichol |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |