Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(112) |
Dec
(115) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(116) |
Feb
(97) |
Mar
(82) |
Apr
(98) |
May
(111) |
Jun
(63) |
Jul
(140) |
Aug
(289) |
Sep
(103) |
Oct
(100) |
Nov
(46) |
Dec
(124) |
2004 |
Jan
(139) |
Feb
(63) |
Mar
(152) |
Apr
(145) |
May
(164) |
Jun
(168) |
Jul
(124) |
Aug
(101) |
Sep
(96) |
Oct
(138) |
Nov
(89) |
Dec
(82) |
2005 |
Jan
(92) |
Feb
(82) |
Mar
(75) |
Apr
(125) |
May
(98) |
Jun
(110) |
Jul
(85) |
Aug
(104) |
Sep
(128) |
Oct
(130) |
Nov
(109) |
Dec
(67) |
2006 |
Jan
(62) |
Feb
(61) |
Mar
(87) |
Apr
(68) |
May
(34) |
Jun
(20) |
Jul
(27) |
Aug
(19) |
Sep
(24) |
Oct
(22) |
Nov
(18) |
Dec
(26) |
2007 |
Jan
(34) |
Feb
(25) |
Mar
(70) |
Apr
(160) |
May
(60) |
Jun
(30) |
Jul
(91) |
Aug
(122) |
Sep
(57) |
Oct
(61) |
Nov
(80) |
Dec
(53) |
2008 |
Jan
(61) |
Feb
(34) |
Mar
(99) |
Apr
(59) |
May
(35) |
Jun
(36) |
Jul
(59) |
Aug
(28) |
Sep
(76) |
Oct
(35) |
Nov
(53) |
Dec
(88) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(57) |
Apr
(66) |
May
(64) |
Jun
(41) |
Jul
(40) |
Aug
(19) |
Sep
(13) |
Oct
(15) |
Nov
(8) |
Dec
(25) |
2010 |
Jan
(20) |
Feb
(18) |
Mar
(24) |
Apr
(34) |
May
(15) |
Jun
(16) |
Jul
(11) |
Aug
(19) |
Sep
(10) |
Oct
(17) |
Nov
(12) |
Dec
(16) |
2011 |
Jan
(16) |
Feb
(20) |
Mar
(20) |
Apr
(17) |
May
(18) |
Jun
(18) |
Jul
(16) |
Aug
(19) |
Sep
(17) |
Oct
(19) |
Nov
(9) |
Dec
(11) |
2012 |
Jan
(14) |
Feb
(15) |
Mar
(20) |
Apr
(18) |
May
(13) |
Jun
(13) |
Jul
(22) |
Aug
(14) |
Sep
(15) |
Oct
(11) |
Nov
(14) |
Dec
(15) |
2013 |
Jan
(19) |
Feb
(12) |
Mar
(18) |
Apr
(20) |
May
(18) |
Jun
(19) |
Jul
(14) |
Aug
(15) |
Sep
(24) |
Oct
(16) |
Nov
(16) |
Dec
(16) |
2014 |
Jan
(12) |
Feb
(9) |
Mar
(132) |
Apr
(10) |
May
(9) |
Jun
(12) |
Jul
(11) |
Aug
(9) |
Sep
(4) |
Oct
(4) |
Nov
(7) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(3) |
Mar
(10) |
Apr
(11) |
May
(9) |
Jun
(9) |
Jul
(4) |
Aug
(5) |
Sep
(7) |
Oct
(4) |
Nov
(13) |
Dec
(6) |
2016 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(11) |
May
(10) |
Jun
(12) |
Jul
(9) |
Aug
(3) |
Sep
(5) |
Oct
(10) |
Nov
(3) |
Dec
(4) |
2017 |
Jan
(1) |
Feb
(6) |
Mar
(2) |
Apr
(4) |
May
(2) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
(8) |
Oct
(4) |
Nov
(4) |
Dec
(5) |
2018 |
Jan
(6) |
Feb
(16) |
Mar
(26) |
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(21) |
2
(1) |
3
(3) |
4
(17) |
5
(3) |
6
(5) |
7
(9) |
8
(10) |
9
(7) |
10
(2) |
11
(7) |
12
|
13
(9) |
14
(9) |
15
(5) |
16
(20) |
17
|
18
(6) |
19
(3) |
20
(10) |
21
(5) |
22
(20) |
23
(15) |
24
(3) |
25
(11) |
26
(22) |
27
(18) |
28
(9) |
29
(23) |
30
(5) |
31
(11) |
|
|
|
|
|
|
From: Scott Nichol <snicholnews@sc...> - 2003-08-31 21:43:02
|
Fred, I said I would be making the change within a few days so that client = code could disable "auto-decoding" of UTF-8 data. Because you needed a = faster turnaround than I was prepared to give, I went out of my way to = point out to you how you could hack the code quickly to get the behavior = you desire. I *am* going to make the "right" change to nusoap.php, but = not this weekend! And *please* do not contact me through any avenue other than the NuSOAP = list. I am very happy to respond to postings there. It is too easy for = e-mail to other addresses to fall through the cracks or cause me grief = with my clients who provide the e-mail addresses. Thanks. 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: "Fred B" <fredb86@...> To: <snichol@...> Sent: Sunday, August 31, 2003 2:23 AM Subject: Re: Re: Nusoap and Japanese encoding issue..............! >=20 > Hi Scott, >=20 > I figured that out, thanks. But not that many *new* users of = nusoap even > know that your mailing list exists. Lots of people are just going to = spend=20 > time > trying to figure out why it doesn't work before posting in some forum = that > they *do* know about (like the amazon boards). Can't you just add = the flag=20 > and the ability > for a user to set it in the client? >=20 > Cheers, >=20 > Jason >=20 > >From: "Scott Nichol" <snicholnews@...> > >To: "Fred B" = <fredb86@...>,<nusoap-general@...> > >Subject: Re: Re: Nusoap and Japanese encoding issue..............! > >Date: Sun, 31 Aug 2003 01:36:35 -0400 > > > >In soap_parser->character_data(), you will find this code > > > > if ($this->xml_encoding=3D=3D'UTF-8'){ > > // TODO: add an option to disable this for folks who want > > // raw UTF-8 that, e.g., might not map to iso-8859-1 > > // TODO: this can also be handled with=20 > >xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING,=20 > >"ISO-8859-1"); > > $data =3D utf8_decode($data); > > } > > > >If you simply delete or comment this out, the UTF-8 you receive will = not be=20 > >decoded to ISO-8859-1. > > > >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: "Fred B" <fredb86@...> > >To: <dietrich@...>; <snichol@...> > >Sent: Saturday, August 30, 2003 6:07 PM > >Subject: Re: Re: Nusoap and Japanese encoding issue..............! > > > > > > > Hi Scott, > > > > > > I need to release some code THIS WEEKEND that uses nusoap.php, = but I=20 > >need > > > the > > > capability of turning on/off the utf8_decode . How hard is it to = add > > > that capability to nusoap.php? > > > > > > Jason > > > > > > > > > >From: "Scott Nichol" <snicholnews@...> > > > >To: "Fred B" <fredb86@...>,<dietrich@...> > > > >Subject: Re: Nusoap and Japanese encoding issue..............! > > > >Date: Sat, 30 Aug 2003 09:32:41 -0400 > > > > > > > > > >What needs to be done is to allow the client code to specify=20 > >whether > > > >such > > > > > >mapping is done automatically. When it is *not* done, the = results > > > >received > > > > > >by the client code will still be in UTF-8, which can be = correctly > > > >processed > > > > > >for arbitrary UTF-8 data, not just data that maps to = ISO-8859-1. > > > > > > > > > > So how do I specify whether the mapping is done? > > > > > > > >"What needs to be done is to allow the client code to specify = whether=20 > >such > > > >mapping is done automatically" means that this capabilities needs = to be > > > >added to nusoap. > > > > > > > >Scott Nichol > > > > > > _________________________________________________________________ > > > Get MSN 8 and enjoy automatic e-mail virus protection. > > > http://join.msn.com/?page=3Dfeatures/virus > > > > > > >=20 > _________________________________________________________________ > MSN 8: Get 6 months for $9.95/month = http://join.msn.com/?page=3Ddept/dialup >=20 > |
From: Scott Nichol <snicholnews@sc...> - 2003-08-31 21:29:18
|
Sorry, my previous instructions were either vague or just plain wrong. = Here's edited code that I think is better. $server->wsdl->addComplexType( 'Listings', // no tns 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'tns:Listin= g[]')), // add tns 'Listing' ); $server->wsdl->addComplexType( 'Programme', // no tns 'complexType', 'struct', 'all', '', array( 'channel' =3D> array('name'=3D>'channel','type'=3D>'xsd:string'), 'date' =3D> array('name'=3D>'date','type'=3D>'xsd:string'), 'title' =3D> array('name'=3D>'title','type'=3D>'xsd:string'), 'description' =3D> = array('name'=3D>'description','type'=3D>'xsd:string'), 'subtitle' =3D> array('name'=3D>'subtitle','type'=3D>'xsd:string'), 'infourl' =3D> array('name'=3D>'infourl','type'=3D>'xsd:string'), 'start' =3D> array('name'=3D>'start','type'=3D>'xsd:string'), 'end' =3D> array('name'=3D>'end','type'=3D>'xsd:string'), 'type' =3D> array('name'=3D>'type','type'=3D>'xsd:string'), 'duration' =3D> array('name'=3D>'duration','type'=3D>'xsd:string'), 'progOrder' =3D> array('name'=3D>'progOrder','type'=3D>'xsd:string') ) ); $server->wsdl->addComplexType( 'Listing', // no tns 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'tns:Progra= mme[]') // add tns ), 'Programme' ); $server->wsdl->addComplexType( 'Image', // no tns 'complexType', 'struct', 'all', '', array( 'title' =3D> array('name'=3D>'title','type'=3D>'xsd:string'), 'url' =3D> array('name'=3D>'url','type'=3D>'xsd:string'), 'link' =3D> array('name'=3D>'link','type'=3D>'xsd:string') ) ); $server->wsdl->addComplexType( 'Images', // no tns 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'tns:Image[= ]')), // add tns 'Image' ); $server->wsdl->addComplexType( 'Channel', // no tns 'complexType', 'struct', 'all', '', array( 'channel' =3D> array('name'=3D>'channel','type'=3D>'xsd:string'), ) ); $server->wsdl->addComplexType( 'Channels', // no tns 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'tns:Channe= l[]')), // add tns 'Channel' ); $server->wsdl->addComplexType( 'stringArray', // no tns 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'xsd:string= []' )), 'xsd:string' ); $server->register( 'getChannels', array('date'=3D>'xsd:string'), array('return'=3D>'tns:stringArray'), // tns:, not si: 'http://www.nodetraveller.com/';); $server->register( 'getChannelListings', =20 array('channels'=3D>'tns:stringArray','date'=3D>'xsd:string','timeSlots'=3D= >'xs d:string'), // tns:, not si: array('return'=3D>'tns:Listings'), 'http://www.nodetraveller.com/';); 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Sunday, August 31, 2003 1:38 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've made the changes and I believe I followed your instructions correctly (the serv) but now there is no output from the getChannelListings call : url show this. It seems I broke the wsdl but have no way of checking...=20 http://www.nodetraveller.com/webservices/tvGuide/tvGuideClient2.php <?php require_once('nusoap.php'); require_once('includes/tvGuide.inc'); $server =3D new soap_server(); $server->configureWSDL('tvGuideService','http://www.nodetraveller.com','; http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); $server->wsdl->schemaTargetNamespace =3D 'http://www.nodetraveller.com';; $server->wsdl->addComplexType( 'tns:Listings', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'Listing[]'= )), 'Listing' ); $server->wsdl->addComplexType( 'tns:Programme', 'complexType', 'struct', 'all', '', array( 'channel' =3D> array('name'=3D>'channel','type'=3D>'xsd:string'), 'date' =3D> array('name'=3D>'date','type'=3D>'xsd:string'), 'title' =3D> array('name'=3D>'title','type'=3D>'xsd:string'), 'description' =3D> = array('name'=3D>'description','type'=3D>'xsd:string'), 'subtitle' =3D> array('name'=3D>'subtitle','type'=3D>'xsd:string'), 'infourl' =3D> array('name'=3D>'infourl','type'=3D>'xsd:string'), 'start' =3D> array('name'=3D>'start','type'=3D>'xsd:string'), 'end' =3D> array('name'=3D>'end','type'=3D>'xsd:string'), 'type' =3D> array('name'=3D>'type','type'=3D>'xsd:string'), 'duration' =3D> array('name'=3D>'duration','type'=3D>'xsd:string'), 'progOrder' =3D> array('name'=3D>'progOrder','type'=3D>'xsd:string') ) ); $server->wsdl->addComplexType( 'tns:Listing', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'Programme[= ]') ), 'Programme' ); $server->wsdl->addComplexType( 'tns:Image', 'complexType', 'struct', 'all', '', array( 'title' =3D> array('name'=3D>'title','type'=3D>'xsd:string'), 'url' =3D> array('name'=3D>'url','type'=3D>'xsd:string'), 'link' =3D> array('name'=3D>'link','type'=3D>'xsd:string') ) ); $server->wsdl->addComplexType( 'tns:Images', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'Image[]'))= , 'Image' ); $server->wsdl->addComplexType( 'tns:Channel', 'complexType', 'struct', 'all', '', array( 'channel' =3D> array('name'=3D>'channel','type'=3D>'xsd:string'), ) ); $server->wsdl->addComplexType( 'tns:Channels', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'Channel[]'= )), 'Channel' ); $server->wsdl->addComplexType( 'stringArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=3D>'SOAP-ENC:arrayType','wsdl:arrayType'=3D>'xsd:string= []' )), 'xsd:string' ); $server->register( 'getChannels', array('date'=3D>'xsd:string'), array('return'=3D>'si:stringArray'), 'http://www.nodetraveller.com/';); $server->register( 'getChannelListings', =20 array('channels'=3D>'si:stringArray','date'=3D>'xsd:string','timeSlots'=3D= >'xs d:string'), array('return'=3D>'tns:Listings'), 'http://www.nodetraveller.com/';); $HTTP_RAW_POST_DATA =3D isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA = : ''; $server->service($HTTP_RAW_POST_DATA); ?> -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 31 August 2003 02:14 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link In looking at your WSDL, there are a couple of problems. 1. You have not defined a namespace for the schema. You need to do this. I highly recommend using the same namespace as used for the Web service itself. $server->wsdl->schemaTargetNamespace =3D 'http://www.nodetraveller.com';; 2. Types from the XML Schema should have the 'xsd' prefix in the schema and for operations. For example, when defining complex types, code like 'type' =3D> 'string' should be 'type' =3D> 'xsd:string' 3. Types you define should have the 'tns' prefix (assuming you set the schema namespace to match the web service namespace). This would mean 'Listings' should be 'tns:Listings', etc. Currently, the .NET wsdl.exe tool balks at your WSDL. With the changes described here, I believe your WSDL will be well-formed. 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 1:24 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've tried the third param but no change. Thanks for you help. I'll look forward to a workaround... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 18:00 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link The code that generates the bad link uses $GLOBAL['PHP_SELF']. I will look into alternative coding choices. 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: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 12:52 PM Subject: Re: [Nusoap-general] weird characters in wdsl link Have you changed your code to specify the endpoint (the 3rd parameter) in $server->configureWSDL? 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 12:16 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've been calling configureWSDL always already like this:=20 $server->configureWSDL('tvGuideService','http://www.nodetraveller.com';); I've fixed the problem with the tvGuideFuncs.inc so the wsdl works now (thanks for the pointer: a whitespace crept in there) But the gibberish wsdl link problem is still there... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 13:38 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link When you call configureWSDL, specify the namespace and endpoint so that $SCRIPT_NAME need never be accessed, e.g. s->configureWSDL('YourServiceName', 'urn:YourNamespace', 'http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); It makes testing a little painful (you have to change the endpoint to match the machine), but it should work. Also, when I try to access the WSDL, I get this warning Warning: Cannot modify header information - headers already sent by (output started at /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/includes/tvGui deFuncs.inc:93) in /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/nusoap.php on line 1962=20 Your server code should not emit anything to output. Whatever is happening on line 93 of tvGuideFuncs.inc should not be. 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: "Lawrence Carvalho" <lcarvalho@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 7:42 AM Subject: [Nusoap-general] weird characters in wdsl link When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08"=EC=08,=EB=08?= wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn't support $_SERVER['SCRIPT_NAME']. So I have to use PATH_TRANSLATED instead in all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it's a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Lawrence Carvalho <lcarvalho@we...> - 2003-08-31 21:19:42
|
I've made the changes and I believe I followed your instructions correctly (code shown below) but now there is no output from the getChannelListings call : the url below shows this. It seems I broke the wsdl but have no way of checking... http://www.nodetraveller.com/webservices/tvGuide/tvGuideClient2.php <?php require_once('nusoap.php'); require_once('includes/tvGuide.inc'); $server = new soap_server(); $server->configureWSDL('tvGuideService','http://www.nodetraveller.com','; http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); $server->wsdl->schemaTargetNamespace = 'http://www.nodetraveller.com <http://www.nodetraveller.com/> '; $server->wsdl->addComplexType( 'tns:Listings', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'Listing[]')), 'Listing' ); $server->wsdl->addComplexType( 'tns:Programme', 'complexType', 'struct', 'all', '', array( 'channel' => array('name'=>'channel','type'=>'xsd:string'), 'date' => array('name'=>'date','type'=>'xsd:string'), 'title' => array('name'=>'title','type'=>'xsd:string'), 'description' => array('name'=>'description','type'=>'xsd:string'), 'subtitle' => array('name'=>'subtitle','type'=>'xsd:string'), 'infourl' => array('name'=>'infourl','type'=>'xsd:string'), 'start' => array('name'=>'start','type'=>'xsd:string'), 'end' => array('name'=>'end','type'=>'xsd:string'), 'type' => array('name'=>'type','type'=>'xsd:string'), 'duration' => array('name'=>'duration','type'=>'xsd:string'), 'progOrder' => array('name'=>'progOrder','type'=>'xsd:string') ) ); $server->wsdl->addComplexType( 'tns:Listing', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'Programme[]') ), 'Programme' ); $server->wsdl->addComplexType( 'tns:Image', 'complexType', 'struct', 'all', '', array( 'title' => array('name'=>'title','type'=>'xsd:string'), 'url' => array('name'=>'url','type'=>'xsd:string'), 'link' => array('name'=>'link','type'=>'xsd:string') ) ); $server->wsdl->addComplexType( 'tns:Images', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'Image[]')), 'Image' ); $server->wsdl->addComplexType( 'tns:Channel', 'complexType', 'struct', 'all', '', array( 'channel' => array('name'=>'channel','type'=>'xsd:string'), ) ); $server->wsdl->addComplexType( 'tns:Channels', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'Channel[]')), 'Channel' ); $server->wsdl->addComplexType( 'stringArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]' )), 'xsd:string' ); $server->register( 'getChannels', array('date'=>'xsd:string'), array('return'=>'si:stringArray'), 'http://www.nodetraveller.com/';); $server->register( 'getChannelListings', array('channels'=>'si:stringArray','date'=>'xsd:string','timeSlots'=>'xs d:string'), array('return'=>'tns:Listings'), 'http://www.nodetraveller.com/';); $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : ''; $server->service($HTTP_RAW_POST_DATA); ?> |
From: Paul Burney <paul.lists@bu...> - 2003-08-31 13:02:21
|
on 08/31/2003 12:55 AM, Delhanan Khadolkhajan at delhanan@... appended the following bits to my mbox: > I am using PHP 4.2.2 with NuSOAP package on a Redhat 8 machine. > In the example provided in the documentation, they are using a > variable $HTTP_RAW_POST_DATA as argument to the service method of > soap_server. The variable does'nt hold a value hence I am getting an > Internal Server Error. > The php.ini has register_globals=on. I also tried out $_GLOBALS > ['HTTP_RAW_POST_DATA'] and always_populate_raw_post_data=on. > $HTTP_RAW_POST_DATA is working in php 4.1.0 version. > Can anyone figure out what is the problem ? The implementation of $HTTP_RAW_POST_DATA has been very buggy. I was recently reading through a bunch of php-dev posts about it. For example, always_populate_raw_post_data doesn't populate in some versions when the content-type is known. One suggestion is to try sending enctype="multipart/form-data" in the post form. If you are using PHP 4.3 or later (if you can update), you can use wrapper functions instead: <http://us2.php.net/wrappers.php> Then just get the posted data directly from php://input Hope that helps. Sincerely, Paul Burney <http://paulburney.com/> <?php while ($self != "asleep") { $sheep_count++; } ?> |
From: Ingo Fischer <apollon@sc...> - 2003-08-31 11:58:01
|
Yes because you need to add that xml_parser_set_option() call to the place where the xml_parser get's inited and not in the character_data-function ... so search xml_parser_create and place ift there. But then you need to comment the utf8_decode-line Ingo Fischer Scott Nichol wrote: > In soap_parser->character_data(), you will find this code > > if ($this->xml_encoding=='UTF-8'){ > // TODO: add an option to disable this for folks who want > // raw UTF-8 that, e.g., might not map to iso-8859-1 > // TODO: this can also be handled with xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, "ISO-8859-1"); > $data = utf8_decode($data); > } > > If you simply delete or comment this out, the UTF-8 you receive will not be decoded to ISO-8859-1. > > 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: "Fred B" <fredb86@...> > To: <dietrich@...>; <snichol@...> > Sent: Saturday, August 30, 2003 6:07 PM > Subject: Re: Re: Nusoap and Japanese encoding issue..............! > > > >>Hi Scott, >> >> I need to release some code THIS WEEKEND that uses nusoap.php, but I need >>the >>capability of turning on/off the utf8_decode . How hard is it to add >>that capability to nusoap.php? >> >>Jason >> >> >> >>>From: "Scott Nichol" <snicholnews@...> >>>To: "Fred B" <fredb86@...>,<dietrich@...> >>>Subject: Re: Nusoap and Japanese encoding issue..............! >>>Date: Sat, 30 Aug 2003 09:32:41 -0400 >>> >>> >>>>>What needs to be done is to allow the client code to specify whether >>> >>>such >>> >>>>>mapping is done automatically. When it is *not* done, the results >>> >>>received >>> >>>>>by the client code will still be in UTF-8, which can be correctly >>> >>>processed >>> >>>>>for arbitrary UTF-8 data, not just data that maps to ISO-8859-1. >>>> >>>>So how do I specify whether the mapping is done? >>> >>>"What needs to be done is to allow the client code to specify whether such >>>mapping is done automatically" means that this capabilities needs to be >>>added to nusoap. >>> >>>Scott Nichol >> >>_________________________________________________________________ >>Get MSN 8 and enjoy automatic e-mail virus protection. >>http://join.msn.com/?page=features/virus >> >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > |
From: Scott Nichol <snicholnews@sc...> - 2003-08-31 05:32:58
|
In soap_parser->character_data(), you will find this code if ($this->xml_encoding=3D=3D'UTF-8'){ // TODO: add an option to disable this for folks who want // raw UTF-8 that, e.g., might not map to iso-8859-1 // TODO: this can also be handled with = xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, = "ISO-8859-1"); $data =3D utf8_decode($data); } If you simply delete or comment this out, the UTF-8 you receive will not = be decoded to ISO-8859-1. 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: "Fred B" <fredb86@...> To: <dietrich@...>; <snichol@...> Sent: Saturday, August 30, 2003 6:07 PM Subject: Re: Re: Nusoap and Japanese encoding issue..............! > Hi Scott, >=20 > I need to release some code THIS WEEKEND that uses nusoap.php, but = I need=20 > the > capability of turning on/off the utf8_decode . How hard is it to add > that capability to nusoap.php? >=20 > Jason >=20 >=20 > >From: "Scott Nichol" <snicholnews@...> > >To: "Fred B" <fredb86@...>,<dietrich@...> > >Subject: Re: Nusoap and Japanese encoding issue..............! > >Date: Sat, 30 Aug 2003 09:32:41 -0400 > > > > > >What needs to be done is to allow the client code to specify = whether=20 > >such > > > >mapping is done automatically. When it is *not* done, the = results=20 > >received > > > >by the client code will still be in UTF-8, which can be correctly = > >processed > > > >for arbitrary UTF-8 data, not just data that maps to ISO-8859-1. > > > > > > So how do I specify whether the mapping is done? > > > >"What needs to be done is to allow the client code to specify whether = such=20 > >mapping is done automatically" means that this capabilities needs to = be=20 > >added to nusoap. > > > >Scott Nichol >=20 > _________________________________________________________________ > Get MSN 8 and enjoy automatic e-mail virus protection. =20 > http://join.msn.com/?page=3Dfeatures/virus >=20 > |
From: Delhanan Khadolkhajan <delhanan@ya...> - 2003-08-31 04:55:09
|
Hi all, I am using PHP 4.2.2 with NuSOAP package on a Redhat 8 machine. In the example provided in the documentation, they are using a variable $HTTP_RAW_POST_DATA as argument to the service method of soap_server. The variable does'nt hold a value hence I am getting an Internal Server Error. The php.ini has register_globals=on. I also tried out $_GLOBALS ['HTTP_RAW_POST_DATA'] and always_populate_raw_post_data=on. $HTTP_RAW_POST_DATA is working in php 4.1.0 version. Can anyone figure out what is the problem ? rgds, del --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |
From: Shaun Bramley <shaun.bramley@ro...> - 2003-08-31 02:31:07
|
Scott, I attempted your suggestion prior to my last post. Hence my inquiry concerning a php or possibly even apache setting. Shaun From: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Subject: Re: [Nusoap-general] Re: SOAP Server Not transferring parameters to appropriate functions Date: Sat, 30 Aug 2003 21:16:20 -0400 In my previous message, I included the server and client code I used. = Can you take that code, change it to fit your environment (e.g. path to = nusoap.php and endpoint URL for the service) and try running it? 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. |
From: Scott Nichol <snicholnews@sc...> - 2003-08-31 01:12:43
|
In my previous message, I included the server and client code I used. = Can you take that code, change it to fit your environment (e.g. path to = nusoap.php and endpoint URL for the service) and try running it? 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: "Shaun Bramley" <shaun.bramley@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 8:42 PM Subject: [Nusoap-general] Re: SOAP Server Not transferring parameters to = appropriate functions > After removing all code that references the hockey functions, my = server > function still fails to receive the parameters correctly. Is this > possibly something to do with how I have php currently configured? Or > possibly is this something to do with the version of php that I am > currently running (4.2.2)?? > =20 > =20 > Shaun > |
From: Scott Nichol <snicholnews@sc...> - 2003-08-31 01:10:41
|
In looking at your WSDL, there are a couple of problems. 1. You have not defined a namespace for the schema. You need to do = this. I highly recommend using the same namespace as used for the Web = service itself. $server->wsdl->schemaTargetNamespace =3D = 'http://www.nodetraveller.com';; 2. Types from the XML Schema should have the 'xsd' prefix in the schema = and for operations. For example, when defining complex types, code like 'type' =3D> 'string' should be 'type' =3D> 'xsd:string' 3. Types you define should have the 'tns' prefix (assuming you set the = schema namespace to match the web service namespace). This would mean = 'Listings' should be 'tns:Listings', etc. Currently, the .NET wsdl.exe tool balks at your WSDL. With the changes = described here, I believe your WSDL will be well-formed. 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 1:24 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've tried the third param but no change. Thanks for you help. I'll look forward to a workaround... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 18:00 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link The code that generates the bad link uses $GLOBAL['PHP_SELF']. I will look into alternative coding choices. 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: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 12:52 PM Subject: Re: [Nusoap-general] weird characters in wdsl link Have you changed your code to specify the endpoint (the 3rd parameter) in $server->configureWSDL? 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 12:16 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've been calling configureWSDL always already like this:=20 $server->configureWSDL('tvGuideService','http://www.nodetraveller.com';); I've fixed the problem with the tvGuideFuncs.inc so the wsdl works now (thanks for the pointer: a whitespace crept in there) But the gibberish wsdl link problem is still there... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 13:38 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link When you call configureWSDL, specify the namespace and endpoint so that $SCRIPT_NAME need never be accessed, e.g. s->configureWSDL('YourServiceName', 'urn:YourNamespace', 'http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); It makes testing a little painful (you have to change the endpoint to match the machine), but it should work. Also, when I try to access the WSDL, I get this warning Warning: Cannot modify header information - headers already sent by (output started at /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/includes/tvGui deFuncs.inc:93) in /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/nusoap.php on line 1962=20 Your server code should not emit anything to output. Whatever is happening on line 93 of tvGuideFuncs.inc should not be. 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: "Lawrence Carvalho" <lcarvalho@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 7:42 AM Subject: [Nusoap-general] weird characters in wdsl link When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08"=EC=08,=EB=08?= wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn't support $_SERVER['SCRIPT_NAME']. So I have to use PATH_TRANSLATED instead in all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it's a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Shaun Bramley <shaun.bramley@ro...> - 2003-08-31 00:42:32
|
After removing all code that references the hockey functions, my server function still fails to receive the parameters correctly. Is this possibly something to do with how I have php currently configured? Or possibly is this something to do with the version of php that I am currently running (4.2.2)?? Shaun |
From: Scott Nichol <snicholnews@sc...> - 2003-08-30 16:55:59
|
The code that generates the bad link uses $GLOBAL['PHP_SELF']. I will = look into alternative coding choices. 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: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 12:52 PM Subject: Re: [Nusoap-general] weird characters in wdsl link Have you changed your code to specify the endpoint (the 3rd parameter) = in $server->configureWSDL? 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 12:16 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've been calling configureWSDL always already like this:=20 $server->configureWSDL('tvGuideService','http://www.nodetraveller.com';); I've fixed the problem with the tvGuideFuncs.inc so the wsdl works now (thanks for the pointer: a whitespace crept in there) But the gibberish wsdl link problem is still there... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 13:38 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link When you call configureWSDL, specify the namespace and endpoint so that $SCRIPT_NAME need never be accessed, e.g. s->configureWSDL('YourServiceName', 'urn:YourNamespace', 'http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); It makes testing a little painful (you have to change the endpoint to match the machine), but it should work. Also, when I try to access the WSDL, I get this warning Warning: Cannot modify header information - headers already sent by (output started at /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/includes/tvGui deFuncs.inc:93) in /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/nusoap.php on line 1962=20 Your server code should not emit anything to output. Whatever is happening on line 93 of tvGuideFuncs.inc should not be. 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: "Lawrence Carvalho" <lcarvalho@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 7:42 AM Subject: [Nusoap-general] weird characters in wdsl link When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08"=EC=08,=EB=08?= wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn't support $_SERVER['SCRIPT_NAME']. So I have to use PATH_TRANSLATED instead in all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it's a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Scott Nichol <snicholnews@sc...> - 2003-08-30 16:49:21
|
Have you changed your code to specify the endpoint (the 3rd parameter) = in $server->configureWSDL? 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: "Lawrence Carvalho" <lawrence@...> To: "'Scott Nichol'" <snicholnews@...> Sent: Saturday, August 30, 2003 12:16 PM Subject: RE: [Nusoap-general] weird characters in wdsl link I've been calling configureWSDL always already like this:=20 $server->configureWSDL('tvGuideService','http://www.nodetraveller.com';); I've fixed the problem with the tvGuideFuncs.inc so the wsdl works now (thanks for the pointer: a whitespace crept in there) But the gibberish wsdl link problem is still there... -----Original Message----- From: nusoap-general-admin@... [mailto:nusoap-general-admin@...] On Behalf Of Scott Nichol Sent: 30 August 2003 13:38 To: nusoap-general@... Subject: Re: [Nusoap-general] weird characters in wdsl link When you call configureWSDL, specify the namespace and endpoint so that $SCRIPT_NAME need never be accessed, e.g. s->configureWSDL('YourServiceName', 'urn:YourNamespace', 'http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); It makes testing a little painful (you have to change the endpoint to match the machine), but it should work. Also, when I try to access the WSDL, I get this warning Warning: Cannot modify header information - headers already sent by (output started at /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/includes/tvGui deFuncs.inc:93) in /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/nusoap.php on line 1962=20 Your server code should not emit anything to output. Whatever is happening on line 93 of tvGuideFuncs.inc should not be. 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: "Lawrence Carvalho" <lcarvalho@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 7:42 AM Subject: [Nusoap-general] weird characters in wdsl link When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08"=EC=08,=EB=08?= wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn't support $_SERVER['SCRIPT_NAME']. So I have to use PATH_TRANSLATED instead in all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it's a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Scott Nichol <snicholnews@sc...> - 2003-08-30 12:34:36
|
When you call configureWSDL, specify the namespace and endpoint so that = $SCRIPT_NAME need never be accessed, e.g. s->configureWSDL('YourServiceName', 'urn:YourNamespace', = 'http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php';); It makes testing a little painful (you have to change the endpoint to = match the machine), but it should work. Also, when I try to access the WSDL, I get this warning Warning: Cannot modify header information - headers already sent by = (output started at = /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/includes/tvGuid= eFuncs.inc:93) in = /home/lawrencec/nodetraveller.com/www/webservices/tvGuide/nusoap.php on = line 1962=20 Your server code should not emit anything to output. Whatever is = happening on line 93 of tvGuideFuncs.inc should not be. 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: "Lawrence Carvalho" <lcarvalho@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 7:42 AM Subject: [Nusoap-general] weird characters in wdsl link When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08"=EC=08,=EB=08?= wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn't support $_SERVER['SCRIPT_NAME']. So I have to use PATH_TRANSLATED instead in all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it's a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Lawrence Carvalho <lcarvalho@we...> - 2003-08-30 11:42:53
|
When I view my service in a browser the link for the wsdl turns out gibberish : http://www.nodetraveller.com/webservices/tvGuide/=D4=EB=08=84=EC=08,=EB=08= ?wsdl You can see for yourself here: http://www.nodetraveller.com/webservices/tvGuide/tvGuideService.php The actual service runs fine: client/server and wsdl Now I know the server is a Zeus server which doesn=92t support $_SERVER[=91SCRIPT_NAME=92]. So I have to use PATH_TRANSLATED instead in = all of my scripts if I need it. I thought that might be it so I changed it but to no effect. Does the fact that it=92s a Zeus server might effect anything as it doesn't support some features. *taken from zeus site* Variables SSL_SERVER_* variables are not implemented. The architecture of Zeus Web Server means that the server certificates are not visible to content generators. This is typically not an issue as sites are unlikely to have multiple certificates and are unlikely to need to know which server certificate has been used for authentication.=20 REMOTE_PORT is not implemented.=20 SERVER_ADMIN and SERVER_ADDR are not implemented.=20 CERT_* variables, as used by IIS are provided.=20 Functions getallheaders() is not implemented.=20 The apache_* family of functions is not implemented. I'm worried that this might hinder some functionality that I've haven't used yet... I'm using latest CVS and I'd appreciate any help. |
From: Scott Nichol <snicholnews@sc...> - 2003-08-30 01:06:33
|
The points: > In other words, the code need not *all* be in nusoap.php, as = Mail_mimePart > provides a lot of useful functionality. There is good code to leverage from PEAR, just not quite as much as if = we could use Mail_mime. We are not left to write all the MIME stuff = from scratch. > The correct behavior for SOAP attachments where a parameter references = an > attachment is to have an element that uses href to refer to the cid, = such as >=20 > <theAttachedFile href=3D"cid:9393829292aa"/> The behavior of Mail_mime, with respect to pasting copies of the cid, is = useful in general, but it does not do exactly what one would need based = on the SOAP spec. 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: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snicholnews@...> Sent: Friday, August 29, 2003 7:06 PM Subject: Re: [Nusoap-general] SOAP attachment > And ?? >=20 > Not sure to get the point concerning the purpose (and the benefit) of = this > mail. Nevertheless It was interesting to try to include it the = "standard" > (NuSOAP) with a "standard" library and keep the downward compatibility > without a huge modification of the original one. > Guillaume > ----- Original Message -----=20 > From: "Scott Nichol" <snicholnews@...> > To: <nusoap-general@...> > Sent: Saturday, August 30, 2003 12:31 AM > Subject: Re: [Nusoap-general] SOAP attachment >=20 >=20 > A post from me on 8/22 >=20 > >>>> > I have looked into this patch some more. The good news is the class = appears > to be the Mail_mime class that's maintained by PEAR. The bad news is = that > that class appears to only support root objects that are text/plain or > text/html. For SOAP, one needs a text/xml root. I can easily do a = text/xml > attachment, but that does not work for SOAP interop. The patch calls > setTXTBody for to set the XML as the root, but the content-type is set = to > text/plain, which is not interoperable with many SOAP implementations. >=20 > I am continuing to look at this class, but it may be that it is not = suitable > for an interoperable SOAP attachment implementation. > <<<< >=20 > Another post that appears to have never made it to the list >=20 > >>>> > Good news: by skipping over Mail_mime and just using Mail_mimePart, I = can > create the desired payload. > <<<< >=20 > In other words, the code need not *all* be in nusoap.php, as = Mail_mimePart > provides a lot of useful functionality. >=20 > From your e-mail >=20 > >>>> > > I discover a *nice* behavior : if you specify as a parameter for = creating > > the SOAP mesg the filename...the cid:... will be in the payload. = cool ! > <<<< >=20 > The correct behavior for SOAP attachments where a parameter references = an > attachment is to have an element that uses href to refer to the cid, = such as >=20 > <theAttachedFile href=3D"cid:9393829292aa"/> >=20 > Scott Nichol >=20 > 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: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snicholnews@...> > Sent: Friday, August 29, 2003 5:22 PM > Subject: Re: [Nusoap-general] SOAP attachment >=20 >=20 > > My version is not fully compliant...because > > > > [...] A SOAP message package is constructed using the = Multipart/Related > > media type, which is defined in RFC 2387. The rules for the = construction > of > > SOAP message packages are as follows: > > > > 1.. The primary SOAP 1.1 message must be carried in the root body = part > of > > the Multipart/Related structure. Consequently the type parameter of = the > > Multipart/Related media header will always equal the Content-Type = header > for > > the primary SOAP 1.1 message, i.e., text/xml. > > [...] > > > > and the header is text/html due to the mime class. I avoided until = now to > > modify it but it seems necessary...I hate this because now the = version is > > linked to NuSOAP...and not standard at all compared to the PEAR > repository. > > > > > > $soapclient =3D new = soapclient('http://localhost/server/TestMIME.php?wsdl';, > > true); > > $soap_proxy =3D $soapclient->getProxy(); > > $soap_proxy->addAttachment('E:\temp\\test.txt'); > > $soap_proxy->File2File('test.txt'); > > > > Result: > > > > MIME-Version: 1.0 > > Content-Type: multipart/related; > > boundary=3D"=3D_ffce0859b2c8d8450eee029529df0923" > > SOAPAction: "http://athlon/php/php.exe"; > > Content-Length: 978 > > > > --=3D_ffce0859b2c8d8450eee029529df0923 > > Content-Type: text/html; charset=3D"ISO-8859-1" > > Content-Transfer-Encoding: 7bit > > > > <?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"; > > xmlns:tns=3D"http://mywebservices.free.fr/"> > > <SOAP-ENV:Body> > > <tns:File2File> > > <FileName > > = xsi:type=3D"xsd:string">cid:3ed89de293faaaf0a1805b9c69070f8c</FileName> > > </tns:File2File> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > --=3D_ffce0859b2c8d8450eee029529df0923 > > Content-Type: application/octet-stream > > Content-Transfer-Encoding: base64 > > Content-Disposition: inline; filename=3D"test.txt" > > Content-ID: <3ed89de293faaaf0a1805b9c69070f8c> > > > > SGVsbG8=3D > > --=3D_ffce0859b2c8d8450eee029529df0923-- > > > > If I remove it: > > > > MIME-Version: 1.0 > > Content-Type: multipart/related; > > boundary=3D"=3D_dc89a6cb7d85716faec9df1dad60de94" > > SOAPAction: "http://athlon/php/php.exe"; > > Content-Length: 958 > > > > --=3D_dc89a6cb7d85716faec9df1dad60de94 > > Content-Type: text/html; charset=3D"ISO-8859-1" > > Content-Transfer-Encoding: 7bit > > > > <?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"; > > xmlns:tns=3D"http://mywebservices.free.fr/"> > > <SOAP-ENV:Body> > > <tns:File2File> > > <FileName xsi:type=3D"xsd:string">ASimpleParameter</FileName> > > </tns:File2File> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > --=3D_dc89a6cb7d85716faec9df1dad60de94 > > Content-Type: application/octet-stream > > Content-Transfer-Encoding: base64 > > Content-Disposition: inline; filename=3D"test.txt" > > Content-ID: <eb4f1b8dbe5edd77f6b21b8205f24967> > > > > SGVsbG8=3D > > --=3D_dc89a6cb7d85716faec9df1dad60de94-- > > > > ----- Original Message -----=20 > > From: "Guillaume - myWebServices" <mywebservices@...> > > To: <nusoap-general@...> > > Cc: "Scott Nichol" <snicholnews@...> > > Sent: Friday, August 29, 2003 9:26 PM > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > > [...] This document defines a binding for a SOAP 1.1 message to be > carried > > > within a MIME multipart/related message in such a way that the > processing > > > rules for the SOAP 1.1 message are preserved. [...] > > > > > > So here the version with no choice!!! > > > > > > Diff+binary > > > > > > Guillaume > > > > > > > > > ----- Original Message -----=20 > > > From: "Scott Nichol" <snicholnews@...> > > > To: <nusoap-general@...> > > > Sent: Friday, August 29, 2003 8:29 PM > > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > > > > The SOAP Messages with Attachments spec > > > (http://www.w3.org/TR/SOAP-attachments) requires = multipart/related. > There > > > is no option. > > > > > > 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: "Guillaume - myWebServices" <mywebservices@...> > > > To: <nusoap-general@...> > > > Cc: "Scott Nichol" <snichol@...> > > > Sent: Friday, August 29, 2003 1:15 PM > > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > > > > > Scott, > > > > > > > > I re-integrate the change in the current NuSOAP lib (1.57). So = you > will > > > find > > > > the diff and also the complete lib. > > > > > > > > I also fix a bug in my hack. > > > > > > > > A note: > > > > > > > > > // true for Mixed, false for Related > > > > > $soap_proxy->MultipartType =3D false; > > > > > > > > By default, the Multipart Related is used even if you do not = specify > it > > > > explicitly. > > > > > > > > Guillaume Leleu > > > > > > > > ----- Original Message -----=20 > > > > From: "Guillaume - myWebServices" <mywebservices@...> > > > > To: <nusoap-general@...> > > > > Cc: "Scott Nichol" <snichol@...> > > > > Sent: Friday, August 29, 2003 6:20 PM > > > > Subject: [Nusoap-general] SOAP attachment > > > > > > > > > > > > > Finally, > > > > > > > > > > I modified the NuSOAP version for accepting mixed AND related. = The > way > > > to > > > > > use: > > > > > > > > > > $soapclient =3D new > > > soapclient('http://localhost/server/TestMIME.php?wsdl';, > > > > > true); > > > > > $soap_proxy =3D $soapclient->getProxy(); > > > > > // true for Mixed, false for Related > > > > > $soap_proxy->MultipartType =3D false; > > > > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > > > > $soap_proxy->MyMethod('MyParameter'); > > > > > > > > > > Scott : You will find enclosed to the mail, the diff and also = the > > NuSOAP > > > > > modified. Please note I did a diff with the last version of = NuSOAP > > 1.57 > > > > and > > > > > I developped on the previous version, so the last change you = did to > > the > > > > 1.57 > > > > > is seen in my diff (hope this is clear!!!!) > > > > > > > > > > =B0-) > > > > > > > > > > Guillaume > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nusoap-general mailing list > > > Nusoap-general@... > > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@... > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general >=20 >=20 > |
From: Guillaume - myWebServices <mywebservices@fr...> - 2003-08-29 23:07:31
|
And ?? Not sure to get the point concerning the purpose (and the benefit) of this mail. Nevertheless It was interesting to try to include it the "standard" (NuSOAP) with a "standard" library and keep the downward compatibility without a huge modification of the original one. Guillaume ----- Original Message ----- From: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Sent: Saturday, August 30, 2003 12:31 AM Subject: Re: [Nusoap-general] SOAP attachment A post from me on 8/22 >>>> I have looked into this patch some more. The good news is the class appears to be the Mail_mime class that's maintained by PEAR. The bad news is that that class appears to only support root objects that are text/plain or text/html. For SOAP, one needs a text/xml root. I can easily do a text/xml attachment, but that does not work for SOAP interop. The patch calls setTXTBody for to set the XML as the root, but the content-type is set to text/plain, which is not interoperable with many SOAP implementations. I am continuing to look at this class, but it may be that it is not suitable for an interoperable SOAP attachment implementation. <<<< Another post that appears to have never made it to the list >>>> Good news: by skipping over Mail_mime and just using Mail_mimePart, I can create the desired payload. <<<< In other words, the code need not *all* be in nusoap.php, as Mail_mimePart provides a lot of useful functionality. From your e-mail >>>> > I discover a *nice* behavior : if you specify as a parameter for creating > the SOAP mesg the filename...the cid:... will be in the payload. cool ! <<<< The correct behavior for SOAP attachments where a parameter references an attachment is to have an element that uses href to refer to the cid, such as <theAttachedFile href="cid:9393829292aa"/> 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: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snicholnews@...> Sent: Friday, August 29, 2003 5:22 PM Subject: Re: [Nusoap-general] SOAP attachment > My version is not fully compliant...because > > [...] A SOAP message package is constructed using the Multipart/Related > media type, which is defined in RFC 2387. The rules for the construction of > SOAP message packages are as follows: > > 1.. The primary SOAP 1.1 message must be carried in the root body part of > the Multipart/Related structure. Consequently the type parameter of the > Multipart/Related media header will always equal the Content-Type header for > the primary SOAP 1.1 message, i.e., text/xml. > [...] > > and the header is text/html due to the mime class. I avoided until now to > modify it but it seems necessary...I hate this because now the version is > linked to NuSOAP...and not standard at all compared to the PEAR repository. > > > $soapclient = new soapclient('http://localhost/server/TestMIME.php?wsdl';, > true); > $soap_proxy = $soapclient->getProxy(); > $soap_proxy->addAttachment('E:\temp\\test.txt'); > $soap_proxy->File2File('test.txt'); > > Result: > > MIME-Version: 1.0 > Content-Type: multipart/related; > boundary="=_ffce0859b2c8d8450eee029529df0923" > SOAPAction: "http://athlon/php/php.exe"; > Content-Length: 978 > > --=_ffce0859b2c8d8450eee029529df0923 > Content-Type: text/html; charset="ISO-8859-1" > Content-Transfer-Encoding: 7bit > > <?xml version="1.0" encoding="ISO-8859-1"?> > <SOAP-ENV:Envelope > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > 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:si="http://soapinterop.org/xsd"; > xmlns:tns="http://mywebservices.free.fr/"> > <SOAP-ENV:Body> > <tns:File2File> > <FileName > xsi:type="xsd:string">cid:3ed89de293faaaf0a1805b9c69070f8c</FileName> > </tns:File2File> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > --=_ffce0859b2c8d8450eee029529df0923 > Content-Type: application/octet-stream > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="test.txt" > Content-ID: <3ed89de293faaaf0a1805b9c69070f8c> > > SGVsbG8= > --=_ffce0859b2c8d8450eee029529df0923-- > > If I remove it: > > MIME-Version: 1.0 > Content-Type: multipart/related; > boundary="=_dc89a6cb7d85716faec9df1dad60de94" > SOAPAction: "http://athlon/php/php.exe"; > Content-Length: 958 > > --=_dc89a6cb7d85716faec9df1dad60de94 > Content-Type: text/html; charset="ISO-8859-1" > Content-Transfer-Encoding: 7bit > > <?xml version="1.0" encoding="ISO-8859-1"?> > <SOAP-ENV:Envelope > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; > 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:si="http://soapinterop.org/xsd"; > xmlns:tns="http://mywebservices.free.fr/"> > <SOAP-ENV:Body> > <tns:File2File> > <FileName xsi:type="xsd:string">ASimpleParameter</FileName> > </tns:File2File> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > --=_dc89a6cb7d85716faec9df1dad60de94 > Content-Type: application/octet-stream > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="test.txt" > Content-ID: <eb4f1b8dbe5edd77f6b21b8205f24967> > > SGVsbG8= > --=_dc89a6cb7d85716faec9df1dad60de94-- > > ----- Original Message ----- > From: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snicholnews@...> > Sent: Friday, August 29, 2003 9:26 PM > Subject: Re: [Nusoap-general] SOAP attachment > > > > [...] This document defines a binding for a SOAP 1.1 message to be carried > > within a MIME multipart/related message in such a way that the processing > > rules for the SOAP 1.1 message are preserved. [...] > > > > So here the version with no choice!!! > > > > Diff+binary > > > > Guillaume > > > > > > ----- Original Message ----- > > From: "Scott Nichol" <snicholnews@...> > > To: <nusoap-general@...> > > Sent: Friday, August 29, 2003 8:29 PM > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > The SOAP Messages with Attachments spec > > (http://www.w3.org/TR/SOAP-attachments) requires multipart/related. There > > is no option. > > > > 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: "Guillaume - myWebServices" <mywebservices@...> > > To: <nusoap-general@...> > > Cc: "Scott Nichol" <snichol@...> > > Sent: Friday, August 29, 2003 1:15 PM > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > > Scott, > > > > > > I re-integrate the change in the current NuSOAP lib (1.57). So you will > > find > > > the diff and also the complete lib. > > > > > > I also fix a bug in my hack. > > > > > > A note: > > > > > > > // true for Mixed, false for Related > > > > $soap_proxy->MultipartType = false; > > > > > > By default, the Multipart Related is used even if you do not specify it > > > explicitly. > > > > > > Guillaume Leleu > > > > > > ----- Original Message ----- > > > From: "Guillaume - myWebServices" <mywebservices@...> > > > To: <nusoap-general@...> > > > Cc: "Scott Nichol" <snichol@...> > > > Sent: Friday, August 29, 2003 6:20 PM > > > Subject: [Nusoap-general] SOAP attachment > > > > > > > > > > Finally, > > > > > > > > I modified the NuSOAP version for accepting mixed AND related. The way > > to > > > > use: > > > > > > > > $soapclient = new > > soapclient('http://localhost/server/TestMIME.php?wsdl';, > > > > true); > > > > $soap_proxy = $soapclient->getProxy(); > > > > // true for Mixed, false for Related > > > > $soap_proxy->MultipartType = false; > > > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > > > $soap_proxy->MyMethod('MyParameter'); > > > > > > > > Scott : You will find enclosed to the mail, the diff and also the > NuSOAP > > > > modified. Please note I did a diff with the last version of NuSOAP > 1.57 > > > and > > > > I developped on the previous version, so the last change you did to > the > > > 1.57 > > > > is seen in my diff (hope this is clear!!!!) > > > > > > > > °-) > > > > > > > > Guillaume > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@... > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Scott Nichol <snicholnews@sc...> - 2003-08-29 22:27:38
|
A post from me on 8/22 >>>> I have looked into this patch some more. The good news is the class = appears to be the Mail_mime class that's maintained by PEAR. The bad = news is that that class appears to only support root objects that are = text/plain or text/html. For SOAP, one needs a text/xml root. I can = easily do a text/xml attachment, but that does not work for SOAP = interop. The patch calls setTXTBody for to set the XML as the root, but = the content-type is set to text/plain, which is not interoperable with = many SOAP implementations. I am continuing to look at this class, but it may be that it is not = suitable for an interoperable SOAP attachment implementation. <<<< Another post that appears to have never made it to the list >>>> Good news: by skipping over Mail_mime and just using Mail_mimePart, I = can create the desired payload. <<<< In other words, the code need not *all* be in nusoap.php, as = Mail_mimePart provides a lot of useful functionality. From your e-mail >>>> > I discover a *nice* behavior : if you specify as a parameter for = creating > the SOAP mesg the filename...the cid:... will be in the payload. cool = ! <<<< The correct behavior for SOAP attachments where a parameter references = an attachment is to have an element that uses href to refer to the cid, = such as <theAttachedFile href=3D"cid:9393829292aa"/> 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: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snicholnews@...> Sent: Friday, August 29, 2003 5:22 PM Subject: Re: [Nusoap-general] SOAP attachment > My version is not fully compliant...because >=20 > [...] A SOAP message package is constructed using the = Multipart/Related > media type, which is defined in RFC 2387. The rules for the = construction of > SOAP message packages are as follows: >=20 > 1.. The primary SOAP 1.1 message must be carried in the root body = part of > the Multipart/Related structure. Consequently the type parameter of = the > Multipart/Related media header will always equal the Content-Type = header for > the primary SOAP 1.1 message, i.e., text/xml. > [...] >=20 > and the header is text/html due to the mime class. I avoided until now = to > modify it but it seems necessary...I hate this because now the version = is > linked to NuSOAP...and not standard at all compared to the PEAR = repository. >=20 >=20 > $soapclient =3D new = soapclient('http://localhost/server/TestMIME.php?wsdl';, > true); > $soap_proxy =3D $soapclient->getProxy(); > $soap_proxy->addAttachment('E:\temp\\test.txt'); > $soap_proxy->File2File('test.txt'); >=20 > Result: >=20 > MIME-Version: 1.0 > Content-Type: multipart/related; > boundary=3D"=3D_ffce0859b2c8d8450eee029529df0923" > SOAPAction: "http://athlon/php/php.exe"; > Content-Length: 978 >=20 > --=3D_ffce0859b2c8d8450eee029529df0923 > Content-Type: text/html; charset=3D"ISO-8859-1" > Content-Transfer-Encoding: 7bit >=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"; > xmlns:tns=3D"http://mywebservices.free.fr/"> > <SOAP-ENV:Body> > <tns:File2File> > <FileName > = xsi:type=3D"xsd:string">cid:3ed89de293faaaf0a1805b9c69070f8c</FileName> > </tns:File2File> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > --=3D_ffce0859b2c8d8450eee029529df0923 > Content-Type: application/octet-stream > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename=3D"test.txt" > Content-ID: <3ed89de293faaaf0a1805b9c69070f8c> >=20 > SGVsbG8=3D > --=3D_ffce0859b2c8d8450eee029529df0923-- >=20 > If I remove it: >=20 > MIME-Version: 1.0 > Content-Type: multipart/related; > boundary=3D"=3D_dc89a6cb7d85716faec9df1dad60de94" > SOAPAction: "http://athlon/php/php.exe"; > Content-Length: 958 >=20 > --=3D_dc89a6cb7d85716faec9df1dad60de94 > Content-Type: text/html; charset=3D"ISO-8859-1" > Content-Transfer-Encoding: 7bit >=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"; > xmlns:tns=3D"http://mywebservices.free.fr/"> > <SOAP-ENV:Body> > <tns:File2File> > <FileName xsi:type=3D"xsd:string">ASimpleParameter</FileName> > </tns:File2File> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > --=3D_dc89a6cb7d85716faec9df1dad60de94 > Content-Type: application/octet-stream > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename=3D"test.txt" > Content-ID: <eb4f1b8dbe5edd77f6b21b8205f24967> >=20 > SGVsbG8=3D > --=3D_dc89a6cb7d85716faec9df1dad60de94-- >=20 > ----- Original Message -----=20 > From: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snicholnews@...> > Sent: Friday, August 29, 2003 9:26 PM > Subject: Re: [Nusoap-general] SOAP attachment >=20 >=20 > > [...] This document defines a binding for a SOAP 1.1 message to be = carried > > within a MIME multipart/related message in such a way that the = processing > > rules for the SOAP 1.1 message are preserved. [...] > > > > So here the version with no choice!!! > > > > Diff+binary > > > > Guillaume > > > > > > ----- Original Message -----=20 > > From: "Scott Nichol" <snicholnews@...> > > To: <nusoap-general@...> > > Sent: Friday, August 29, 2003 8:29 PM > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > The SOAP Messages with Attachments spec > > (http://www.w3.org/TR/SOAP-attachments) requires multipart/related. = There > > is no option. > > > > 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: "Guillaume - myWebServices" <mywebservices@...> > > To: <nusoap-general@...> > > Cc: "Scott Nichol" <snichol@...> > > Sent: Friday, August 29, 2003 1:15 PM > > Subject: Re: [Nusoap-general] SOAP attachment > > > > > > > Scott, > > > > > > I re-integrate the change in the current NuSOAP lib (1.57). So you = will > > find > > > the diff and also the complete lib. > > > > > > I also fix a bug in my hack. > > > > > > A note: > > > > > > > // true for Mixed, false for Related > > > > $soap_proxy->MultipartType =3D false; > > > > > > By default, the Multipart Related is used even if you do not = specify it > > > explicitly. > > > > > > Guillaume Leleu > > > > > > ----- Original Message -----=20 > > > From: "Guillaume - myWebServices" <mywebservices@...> > > > To: <nusoap-general@...> > > > Cc: "Scott Nichol" <snichol@...> > > > Sent: Friday, August 29, 2003 6:20 PM > > > Subject: [Nusoap-general] SOAP attachment > > > > > > > > > > Finally, > > > > > > > > I modified the NuSOAP version for accepting mixed AND related. = The way > > to > > > > use: > > > > > > > > $soapclient =3D new > > soapclient('http://localhost/server/TestMIME.php?wsdl';, > > > > true); > > > > $soap_proxy =3D $soapclient->getProxy(); > > > > // true for Mixed, false for Related > > > > $soap_proxy->MultipartType =3D false; > > > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > > > $soap_proxy->MyMethod('MyParameter'); > > > > > > > > Scott : You will find enclosed to the mail, the diff and also = the > NuSOAP > > > > modified. Please note I did a diff with the last version of = NuSOAP > 1.57 > > > and > > > > I developped on the previous version, so the last change you did = to > the > > > 1.57 > > > > is seen in my diff (hope this is clear!!!!) > > > > > > > > =B0-) > > > > > > > > Guillaume > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@... > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > |
From: Scott Nichol <snicholnews@sc...> - 2003-08-29 22:20:31
|
I removed the hockey-specific stuff from your code, and it works for me. = See whether it works for you with the hockey stuff removed, then slowly = add the hockey stuff back until it fails. Then you have at least = narrowed the problem down. My client: <?php require('f:\nusoap\lib\nusoap.php'); $mystring =3D 123; $arrIn =3D array($mystring); $s =3D new soapclient('http://localhost/phphack/bramley.php';); $rs =3D $s->call('echostring', $arrIn); echo '<test>'; echo '<xmp>' . $s->request . '</xmp>'; echo '<xmp>' . $s->response . '</xmp>'; echo '</test>'; ?> My server: <?php require('f:\nusoap\lib\nusoap.php');=20 $soap =3D new soap_server(); $soap->register('echostring'); $soap->service($HTTP_RAW_POST_DATA); function echostring($strIn) { return 'The value is: ' . $strIn; } ?> Request and response (cut-and-pasted from Mozilla): =20 POST /phphack/bramley.php HTTP/1.0 User-Agent: NuSOAP/0.6.6 Host: localhost:80 Content-Type: text/xml; charset=3DISO-8859-1 SOAPAction: "" Content-Length: 547 <?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:e= chostring xmlns:ns1=3D"http://testuri.org"> <soapVal xsi:type=3D"xsd:int">123</soapVal></ns1:echostring> </SOAP-ENV:Body></SOAP-ENV:Envelope> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 29 Aug 2003 22:21:18 GMT X-Powered-By: ASP.NET X-Powered-By: PHP/4.3.2 Server: NuSOAP Server v0.6.6 Content-Type: text/xml; charset=3DISO-8859-1 Content-Length: 539 <?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><echos= tringResponse><soapVal xsi:type=3D"xsd:string">The value is: 123</soapVal></echostringResponse></SOAP-ENV:Body></= SOAP-ENV:Envelope> 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: "Shaun Bramley" <shaun.bramley@...> To: <nusoap-general@...> Sent: Friday, August 29, 2003 6:01 PM Subject: [Nusoap-general] SOAP Server Not transfering parameters to = appropriate functions > I have upgraded my nusoap version from 0.6.3 to 0.6.5. My previous > issue is still present. My issue appears as though my server function > appears to not be receiving it's parameter. Is there something within > the server or client that I am not initializing properly? >=20 > Shown below is server code, client code, SOAP request and response > messages. >=20 > #client code >=20 > <?PHP > require('./nuSOAP/nusoap.php'); >=20 > $mystring =3D 123; >=20 > $arrIn =3D array($mystring); >=20 > $s =3D new soapclient('http://192.168.1.3/testSOAP/SOAPServer.php';); > $rs =3D $s->call('echostring', $arrIn); >=20 > echo '<test>'; > echo '<xmp>' . $s->request . '</xmp>'; > echo '<xmp>' . $s->response . '</xmp>'; > echo '</test>'; >=20 > ?> >=20 > #Server code >=20 > <?PHP >=20 > require('./nuSOAP/nusoap.php'); # The nuSOAP library > require('./includes/Hockey.class.php'); # The class that performs = all > queries on the HockeyStats database. > require('./config/database.config.php'); # The file that contains the > database connectivity information. >=20 >=20 > # Start the SOAP server code. > $soap =3D new soap_server(); > $soap->register('getLeagues'); > $soap->register('getDivisions'); > $soap->register('getTeams'); > $soap->register('getPlayers'); > $soap->register('StatsPlayer'); > $soap->register('StatsTeam'); > $soap->register('echostring'); > $soap->service($HTTP_RAW_POST_DATA); > # End of the SOAP server code. >=20 >=20 > ########## Start of functions that are used from within the SOAP = server. > ########## >=20 > function echostring($strIn) > { > return 'The value is: ' . $strIn; > } >=20 > function getLeagues($intSeason, $intSeasonType) > { > $hockey =3D new Hockey(); > $leagues =3D $hockey->getLeagues($intSeason, $intSeasonType); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $leagues;=20 > } >=20 > function getDivisions($intSeason, $intSeasonType, $intLeague) > { > $hockey =3D new Hockey(); > $hockey->db_connect(); > $divisions =3D $hockey->getDivisions($intLeague, $intSeason, > $intSeasonType); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $divisions; > } >=20 > function getTeams($intSeason, $intSeasonType, $intLeague, = $intDivision) > { > $hockey =3D new Hockey(); > $hockey->db_connect(); > $teams =3D $hockey->getTeams($intDivision, $intLeague, $intSeason, > $intSeasonType); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $teams; > } >=20 > function getPlayers($intSeason, $intSeasonType, $intLeague, > $intDivision, $intTeam) > { > $hockey =3D new Hockey(); > $hockey->db_connect(); > $players =3D $hockey->getPlayers($intTeam, $intDivision, $intLeague, > $intSeason, $intSeasonType); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $players; > } >=20 > function StatsTeam($intTeam) > { > $hockey =3D new Hockey(); > $hockey->db_connect(); > $stats =3D $hockey->getTeamStats($intTeam); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $stats; > } >=20 > function StatsPlayer($intPlayer) > { > $hockey =3D new Hockey(); > $hockey->db_connect(); > $stats =3D $hockey->getPlayerStats($intPlayer); > $hockey->db_close(); > if($hockey->getErrorNo()) > { > return new soap_fault('Client', '', $hockey->getErrMsg()); > } > return $stats; > } >=20 > ########## End of functions used within SOAP server ########## > ?> >=20 > =20 >=20 > SOAP messages:=20 >=20 > <test> >=20 > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <xmp> > POST /testSOAP/SOAPServer.php HTTP/1.0 User-Agent: NuSOAP/0.6.5 = Host: > 192.168.1.3:80 Content-Type: text/xml; charset=3DISO-8859-1 = SOAPAction: "" > Content-Length: 547=20 > <?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?>=20 > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <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"> > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Body> > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <ns1:echostring > xmlns:ns1=3D"http://testuri.org"> > <soapVal xsi:type=3D"xsd:int">123</soapVal>=20 > </ns1:echostring> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > </xmp> > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <xmp> > HTTP/1.1 200 OK Date: Thu, 28 Aug 2003 21:41:56 GMT Server: NuSOAP > Server v0.6.5 Accept-Ranges: bytes X-Powered-By: PHP/4.2.2 Status: 200 > OK Content-Length: 536 Connection: close Content-Type: text/xml; > charset=3DISO-8859-1=20 > <?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?>=20 > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <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"> > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Body> > <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - = <echostringResponse> > <soapVal xsi:type=3D"xsd:string">The value is:</soapVal>=20 > </echostringResponse> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > </xmp> > </test> > |
From: Shaun Bramley <shaun.bramley@ro...> - 2003-08-29 22:01:42
|
I have upgraded my nusoap version from 0.6.3 to 0.6.5. My previous issue is still present. My issue appears as though my server function appears to not be receiving it's parameter. Is there something within the server or client that I am not initializing properly? Shown below is server code, client code, SOAP request and response messages. #client code <?PHP require('./nuSOAP/nusoap.php'); $mystring = 123; $arrIn = array($mystring); $s = new soapclient('http://192.168.1.3/testSOAP/SOAPServer.php';); $rs = $s->call('echostring', $arrIn); echo '<test>'; echo '<xmp>' . $s->request . '</xmp>'; echo '<xmp>' . $s->response . '</xmp>'; echo '</test>'; ?> #Server code <?PHP require('./nuSOAP/nusoap.php'); # The nuSOAP library require('./includes/Hockey.class.php'); # The class that performs all queries on the HockeyStats database. require('./config/database.config.php'); # The file that contains the database connectivity information. # Start the SOAP server code. $soap = new soap_server(); $soap->register('getLeagues'); $soap->register('getDivisions'); $soap->register('getTeams'); $soap->register('getPlayers'); $soap->register('StatsPlayer'); $soap->register('StatsTeam'); $soap->register('echostring'); $soap->service($HTTP_RAW_POST_DATA); # End of the SOAP server code. ########## Start of functions that are used from within the SOAP server. ########## function echostring($strIn) { return 'The value is: ' . $strIn; } function getLeagues($intSeason, $intSeasonType) { $hockey = new Hockey(); $leagues = $hockey->getLeagues($intSeason, $intSeasonType); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $leagues; } function getDivisions($intSeason, $intSeasonType, $intLeague) { $hockey = new Hockey(); $hockey->db_connect(); $divisions = $hockey->getDivisions($intLeague, $intSeason, $intSeasonType); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $divisions; } function getTeams($intSeason, $intSeasonType, $intLeague, $intDivision) { $hockey = new Hockey(); $hockey->db_connect(); $teams = $hockey->getTeams($intDivision, $intLeague, $intSeason, $intSeasonType); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $teams; } function getPlayers($intSeason, $intSeasonType, $intLeague, $intDivision, $intTeam) { $hockey = new Hockey(); $hockey->db_connect(); $players = $hockey->getPlayers($intTeam, $intDivision, $intLeague, $intSeason, $intSeasonType); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $players; } function StatsTeam($intTeam) { $hockey = new Hockey(); $hockey->db_connect(); $stats = $hockey->getTeamStats($intTeam); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $stats; } function StatsPlayer($intPlayer) { $hockey = new Hockey(); $hockey->db_connect(); $stats = $hockey->getPlayerStats($intPlayer); $hockey->db_close(); if($hockey->getErrorNo()) { return new soap_fault('Client', '', $hockey->getErrMsg()); } return $stats; } ########## End of functions used within SOAP server ########## ?> SOAP messages: <test> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <xmp> POST /testSOAP/SOAPServer.php HTTP/1.0 User-Agent: NuSOAP/0.6.5 Host: 192.168.1.3:80 Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 547 <?xml version="1.0" encoding="ISO-8859-1" ?> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 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:si="http://soapinterop.org/xsd"> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Body> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <ns1:echostring xmlns:ns1="http://testuri.org"> <soapVal xsi:type="xsd:int">123</soapVal> </ns1:echostring> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </xmp> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <xmp> HTTP/1.1 200 OK Date: Thu, 28 Aug 2003 21:41:56 GMT Server: NuSOAP Server v0.6.5 Accept-Ranges: bytes X-Powered-By: PHP/4.2.2 Status: 200 OK Content-Length: 536 Connection: close Content-Type: text/xml; charset=ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1" ?> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 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:si="http://soapinterop.org/xsd"> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <SOAP-ENV:Body> <http://192.168.1.3/testSOAP/TMP82rnekeho2.php#> - <echostringResponse> <soapVal xsi:type="xsd:string">The value is:</soapVal> </echostringResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </xmp> </test> |
From: Guillaume - myWebServices <mywebservices@fr...> - 2003-08-29 21:23:07
|
My version is not fully compliant...because [...] A SOAP message package is constructed using the Multipart/Related media type, which is defined in RFC 2387. The rules for the construction of SOAP message packages are as follows: 1.. The primary SOAP 1.1 message must be carried in the root body part of the Multipart/Related structure. Consequently the type parameter of the Multipart/Related media header will always equal the Content-Type header for the primary SOAP 1.1 message, i.e., text/xml. [...] and the header is text/html due to the mime class. I avoided until now to modify it but it seems necessary...I hate this because now the version is linked to NuSOAP...and not standard at all compared to the PEAR repository. I discover a *nice* behavior : if you specify as a parameter for creating the SOAP mesg the filename...the cid:... will be in the payload. cool ! $soapclient = new soapclient('http://localhost/server/TestMIME.php?wsdl';, true); $soap_proxy = $soapclient->getProxy(); $soap_proxy->addAttachment('E:\temp\\test.txt'); $soap_proxy->File2File('test.txt'); Result: MIME-Version: 1.0 Content-Type: multipart/related; boundary="=_ffce0859b2c8d8450eee029529df0923" SOAPAction: "http://athlon/php/php.exe"; Content-Length: 978 --=_ffce0859b2c8d8450eee029529df0923 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 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:si="http://soapinterop.org/xsd"; xmlns:tns="http://mywebservices.free.fr/"> <SOAP-ENV:Body> <tns:File2File> <FileName xsi:type="xsd:string">cid:3ed89de293faaaf0a1805b9c69070f8c</FileName> </tns:File2File> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --=_ffce0859b2c8d8450eee029529df0923 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.txt" Content-ID: <3ed89de293faaaf0a1805b9c69070f8c> SGVsbG8= --=_ffce0859b2c8d8450eee029529df0923-- If I remove it: MIME-Version: 1.0 Content-Type: multipart/related; boundary="=_dc89a6cb7d85716faec9df1dad60de94" SOAPAction: "http://athlon/php/php.exe"; Content-Length: 958 --=_dc89a6cb7d85716faec9df1dad60de94 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 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:si="http://soapinterop.org/xsd"; xmlns:tns="http://mywebservices.free.fr/"> <SOAP-ENV:Body> <tns:File2File> <FileName xsi:type="xsd:string">ASimpleParameter</FileName> </tns:File2File> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --=_dc89a6cb7d85716faec9df1dad60de94 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.txt" Content-ID: <eb4f1b8dbe5edd77f6b21b8205f24967> SGVsbG8= --=_dc89a6cb7d85716faec9df1dad60de94-- ----- Original Message ----- From: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snicholnews@...> Sent: Friday, August 29, 2003 9:26 PM Subject: Re: [Nusoap-general] SOAP attachment > [...] This document defines a binding for a SOAP 1.1 message to be carried > within a MIME multipart/related message in such a way that the processing > rules for the SOAP 1.1 message are preserved. [...] > > So here the version with no choice!!! > > Diff+binary > > Guillaume > > > ----- Original Message ----- > From: "Scott Nichol" <snicholnews@...> > To: <nusoap-general@...> > Sent: Friday, August 29, 2003 8:29 PM > Subject: Re: [Nusoap-general] SOAP attachment > > > The SOAP Messages with Attachments spec > (http://www.w3.org/TR/SOAP-attachments) requires multipart/related. There > is no option. > > 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: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snichol@...> > Sent: Friday, August 29, 2003 1:15 PM > Subject: Re: [Nusoap-general] SOAP attachment > > > > Scott, > > > > I re-integrate the change in the current NuSOAP lib (1.57). So you will > find > > the diff and also the complete lib. > > > > I also fix a bug in my hack. > > > > A note: > > > > > // true for Mixed, false for Related > > > $soap_proxy->MultipartType = false; > > > > By default, the Multipart Related is used even if you do not specify it > > explicitly. > > > > Guillaume Leleu > > > > ----- Original Message ----- > > From: "Guillaume - myWebServices" <mywebservices@...> > > To: <nusoap-general@...> > > Cc: "Scott Nichol" <snichol@...> > > Sent: Friday, August 29, 2003 6:20 PM > > Subject: [Nusoap-general] SOAP attachment > > > > > > > Finally, > > > > > > I modified the NuSOAP version for accepting mixed AND related. The way > to > > > use: > > > > > > $soapclient = new > soapclient('http://localhost/server/TestMIME.php?wsdl';, > > > true); > > > $soap_proxy = $soapclient->getProxy(); > > > // true for Mixed, false for Related > > > $soap_proxy->MultipartType = false; > > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > > $soap_proxy->MyMethod('MyParameter'); > > > > > > Scott : You will find enclosed to the mail, the diff and also the NuSOAP > > > modified. Please note I did a diff with the last version of NuSOAP 1.57 > > and > > > I developped on the previous version, so the last change you did to the > > 1.57 > > > is seen in my diff (hope this is clear!!!!) > > > > > > °-) > > > > > > Guillaume > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > |
From: Guillaume - myWebServices <mywebservices@fr...> - 2003-08-29 19:26:52
|
[...] This document defines a binding for a SOAP 1.1 message to be carried within a MIME multipart/related message in such a way that the processing rules for the SOAP 1.1 message are preserved. [...] So here the version with no choice!!! Diff+binary Guillaume ----- Original Message ----- From: "Scott Nichol" <snicholnews@...> To: <nusoap-general@...> Sent: Friday, August 29, 2003 8:29 PM Subject: Re: [Nusoap-general] SOAP attachment The SOAP Messages with Attachments spec (http://www.w3.org/TR/SOAP-attachments) requires multipart/related. There is no option. 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: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snichol@...> Sent: Friday, August 29, 2003 1:15 PM Subject: Re: [Nusoap-general] SOAP attachment > Scott, > > I re-integrate the change in the current NuSOAP lib (1.57). So you will find > the diff and also the complete lib. > > I also fix a bug in my hack. > > A note: > > > // true for Mixed, false for Related > > $soap_proxy->MultipartType = false; > > By default, the Multipart Related is used even if you do not specify it > explicitly. > > Guillaume Leleu > > ----- Original Message ----- > From: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snichol@...> > Sent: Friday, August 29, 2003 6:20 PM > Subject: [Nusoap-general] SOAP attachment > > > > Finally, > > > > I modified the NuSOAP version for accepting mixed AND related. The way to > > use: > > > > $soapclient = new soapclient('http://localhost/server/TestMIME.php?wsdl';, > > true); > > $soap_proxy = $soapclient->getProxy(); > > // true for Mixed, false for Related > > $soap_proxy->MultipartType = false; > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > $soap_proxy->MyMethod('MyParameter'); > > > > Scott : You will find enclosed to the mail, the diff and also the NuSOAP > > modified. Please note I did a diff with the last version of NuSOAP 1.57 > and > > I developped on the previous version, so the last change you did to the > 1.57 > > is seen in my diff (hope this is clear!!!!) > > > > °-) > > > > Guillaume > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nusoap-general mailing list Nusoap-general@... https://lists.sourceforge.net/lists/listinfo/nusoap-general |
From: Scott Nichol <snicholnews@sc...> - 2003-08-29 18:25:42
|
The SOAP Messages with Attachments spec = (http://www.w3.org/TR/SOAP-attachments) requires multipart/related. = There is no option. 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: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snichol@...> Sent: Friday, August 29, 2003 1:15 PM Subject: Re: [Nusoap-general] SOAP attachment > Scott, >=20 > I re-integrate the change in the current NuSOAP lib (1.57). So you = will find > the diff and also the complete lib. >=20 > I also fix a bug in my hack. >=20 > A note: >=20 > > // true for Mixed, false for Related > > $soap_proxy->MultipartType =3D false; >=20 > By default, the Multipart Related is used even if you do not specify = it > explicitly. >=20 > Guillaume Leleu >=20 > ----- Original Message -----=20 > From: "Guillaume - myWebServices" <mywebservices@...> > To: <nusoap-general@...> > Cc: "Scott Nichol" <snichol@...> > Sent: Friday, August 29, 2003 6:20 PM > Subject: [Nusoap-general] SOAP attachment >=20 >=20 > > Finally, > > > > I modified the NuSOAP version for accepting mixed AND related. The = way to > > use: > > > > $soapclient =3D new = soapclient('http://localhost/server/TestMIME.php?wsdl';, > > true); > > $soap_proxy =3D $soapclient->getProxy(); > > // true for Mixed, false for Related > > $soap_proxy->MultipartType =3D false; > > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > > $soap_proxy->MyMethod('MyParameter'); > > > > Scott : You will find enclosed to the mail, the diff and also the = NuSOAP > > modified. Please note I did a diff with the last version of NuSOAP = 1.57 > and > > I developped on the previous version, so the last change you did to = the > 1.57 > > is seen in my diff (hope this is clear!!!!) > > > > =B0-) > > > > Guillaume > > > |
From: Scott Nichol <snicholnews@sc...> - 2003-08-29 17:18:58
|
You have defined different namespaces for your service and schema: $server->configureWSDL('hi_quote',"http://www.test_soap_service.com/";); $server->wsdl->schemaTargetNamespace =3D = 'http:/www.test_soap_service.com/xsd/'; The 'tns' prefix is mapped to the namespace of your service, not your = schema. Your types are in your schema. To continue with separate = namespaces, do something like $server->wsdl->namespaces['xsdns'] =3D = 'http:/www.test_soap_service.com/xsd/'; Then use 'xsdns' instead of 'tns' when referring to types. Or, you could do the easy thing and have your schema and service share a = namespace: $server->configureWSDL('hi_quote',"http://www.test_soap_service.com/";); $server->wsdl->schemaTargetNamespace =3D = 'http:/www.test_soap_service.com/'; 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: <phall@...> To: <nusoap-general@...> Sent: Friday, August 29, 2003 12:23 PM Subject: [Nusoap-general] MSSOAP.SoapClient30 chokes on nusoap complex = type > I wonder if anyone can help me with a problem integrating a nusoap = server > with VB 6.0 MSSOAP.SoapClient30.... >=20 > My server code: >=20 > $server =3D new soap_server(); > = $server->configureWSDL('hi_quote',"http://www.test_soap_service.com/";); > $server->wsdl->schemaTargetNamespace =3D > http:/www.test_soap_service.com/xsd/; >=20 > $server->wsdl->addComplexType( > 'Demographics', > 'complexType', > 'struct', > 'all', > '', > array( > 'zip' =3D> array('name'=3D>'zip','type'=3D>'string'), > 'state' =3D> = array('name'=3D>'state','type'=3D>'string') > ) > ); >=20 > $server->register( > 'get_quote', > array('quote_request'=3D>'tns:Demographics'), > array('return'=3D>'string'), > $namespace); >=20 >=20 > function get_quote($quote_request) > { > return("Got ".$quote_request['state'].":".$quote_request['zip']); > } >=20 > The WSDL: > <?xml version=3D"1.0" ?> > <definitions = 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"; = xmlns:tns=3D"http://dev.www.ameri-choice.com/"; > xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl > =3D"http://schemas.xmlsoap.org/wsdl/"; xmlns > =3D"http://schemas.xmlsoap.org/wsdl/"; targetNamespace > =3D"http://dev.www.ameri-choice.com/"> > <types> > <xsd:schema targetNamespace=3D"http://dev.www.ameri-choice.com/xsd/"> > <xsd:import namespace=3D"http://schemas.xmlsoap.org/soap/encoding/"; = /> > <xsd:import namespace=3D"http://schemas.xmlsoap.org/wsdl/"; /> > <xsd:complexType name=3D"Demographics"> > <xsd:all> > <xsd:element name=3D"zip" type=3D"string" /> > <xsd:element name=3D"state" type=3D"string" /> > </xsd:all> > </xsd:complexType> > </xsd:schema> > </types> > <message name=3D"get_quoteRequest"> > <part name=3D"quote_request" type=3D"tns:Demographics" /> > </message> > <message name=3D"get_quoteResponse"> > <part name=3D"return" type=3D"xsd:string" /> > </message> > <portType name=3D"get_quotePortType"> > <operation name=3D"get_quote"> > <input message=3D"tns:get_quoteRequest" /> > <output message=3D"tns:get_quoteResponse" /> > </operation> > </portType> > <binding name=3D"get_quoteBinding" type=3D"tns:get_quotePortType"> > <soap:binding style=3D"rpc" transport > =3D"http://schemas.xmlsoap.org/soap/http"; /> > <operation name=3D"get_quote"> > <soap:operation soapAction=3D"http://"; style=3D"rpc" /> > <input> > <soap:body use=3D"encoded" = namespace=3D"http://dev.www.ameri-choice.com/xsd/"; > encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"; /> > </input> > <output> > <soap:body use=3D"encoded" = namespace=3D"http://dev.www.ameri-choice.com/xsd/"; > encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/"; /> > </output> > </operation> > </binding> > <service name=3D"get_quote"> > <port name=3D"get_quotePort" binding=3D"tns:get_quoteBinding"> > <soap:address location > =3D"http://dev.www.ameri-choice.com/info/test_service.php"; /> > </port> > </service> > </definitions> >=20 > VB Code: >=20 > Set soapclient =3D CreateObject("MSSOAP.SoapClient30") > Call soapclient.mssoapinit > ("http://dev.www.ameri-choice.com/info/test_service.php?wsdl";, "", "") >=20 > When I call the mssoapinit(...) i get the following error: >=20 > SoapMapper: The schema definitions with a targetnamespace of > http://dev.www.ameri-choice.com/ for SoapMapper Demographics could not = be > found .. >=20 >=20 >=20 > Phil Hall > Ideastar, Inc. > phall@... > (216) 587-9300 x121 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > |
From: Guillaume - myWebServices <mywebservices@fr...> - 2003-08-29 17:16:07
|
Scott, I re-integrate the change in the current NuSOAP lib (1.57). So you will find the diff and also the complete lib. I also fix a bug in my hack. A note: > // true for Mixed, false for Related > $soap_proxy->MultipartType = false; By default, the Multipart Related is used even if you do not specify it explicitly. Guillaume Leleu ----- Original Message ----- From: "Guillaume - myWebServices" <mywebservices@...> To: <nusoap-general@...> Cc: "Scott Nichol" <snichol@...> Sent: Friday, August 29, 2003 6:20 PM Subject: [Nusoap-general] SOAP attachment > Finally, > > I modified the NuSOAP version for accepting mixed AND related. The way to > use: > > $soapclient = new soapclient('http://localhost/server/TestMIME.php?wsdl';, > true); > $soap_proxy = $soapclient->getProxy(); > // true for Mixed, false for Related > $soap_proxy->MultipartType = false; > $soap_proxy->addAttachment('C:\\Temp\\mydata.txt'); > $soap_proxy->MyMethod('MyParameter'); > > Scott : You will find enclosed to the mail, the diff and also the NuSOAP > modified. Please note I did a diff with the last version of NuSOAP 1.57 and > I developped on the previous version, so the last change you did to the 1.57 > is seen in my diff (hope this is clear!!!!) > > °-) > > Guillaume > |