|
Re: sending more then one packet: msg#00075php.nusoap.general
There is nothing in NuSOAP, as should be the case for all TCP/IP code, that is dependent on the network packetization of the data. If the server is really sending two packets, your NuSOAP code should be reading all the data in those two. If the server sends each byte in its own packet, NuSOAP should receive all those bytes. If you are getting a particular NuSOAP error, you will do best to post the error here, along with the request, response and debug information. 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: "Bishop, Ryan" <Ryan.Bishop@xxxxxxxxxx> To: "'Scott Nichol'" <snicholnews@xxxxxxxxxxxxxxx> Sent: Thursday, May 13, 2004 8:40 PM Subject: RE: [Nusoap-general] sending more then one packet also im curious that since its sending two packets, i should be getting two back im only getting the header packet back right now is there a way to read back more then one packet ? or does it do that already? > ---------- > From: Scott Nichol > Sent: Thursday, May 6, 2004 7:37 PM > To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx > Subject: Re: [Nusoap-general] sending more then one packet > > What do you mean by "packet"? Do you literally mean that the request must > be sent in exactly 2 TCP/IP packets? That is a truly bizarre requirement > that sounds like poor coding on the server. I think this would be a > challenging requirement for most SOAP client implementations. > > Here is my suggestion for modifying NuSOAP's soap_transport_http class to > work with this server. > > 1. In buildPayload, comment out the last line > > $this->outgoing_payload .= $data; > > This will mean the $this->outgoing_payload will only have the HTTP > headers. > > 2. In sendRequest, you will see the following code > > if(!fputs($this->fp, $this->outgoing_payload, > strlen($this->outgoing_payload))) { > $this->setError('couldn\'t write message data to socket'); > $this->debug('couldn\'t write message data to socket'); > return false; > } > $this->debug('wrote data to socket, length = ' . > strlen($this->outgoing_payload)); > > After that, add the following > > fflush($this->fp); > if(!fputs($this->fp, $data, strlen($data))) { > $this->setError('couldn\'t write message data to socket'); > $this->debug('couldn\'t write message data to socket'); > return false; > } > $this->debug('wrote data to socket, length = ' . strlen($data)); > > This will make NuSOAP write the data to the socket in 2 separate writes. > The underlying TCP/IP implementation is free to coalesce these 2 writes > into a single packet, but most of the time with most implementations, it > will be sent as two packets. > > 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: "Bishop, Ryan" <Ryan.Bishop@xxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Thursday, May 06, 2004 4:42 PM > Subject: [Nusoap-general] sending more then one packet > > > hello, > > im sending my SOAP request all in one packet, however the SOAP server > needs > it to be in two packets. one for the header, ie. POST /4DSOAP/ > HTTP/1.0User-Agent: NuSOAP/0.6.7 (1.75)Host: Content-Type: text/xml; > charset=ISO-8859-1Content-Length: 538 > > and another packet for the <SOAP -ENV code... > > anyone know how or have to split this into two packets to get a result > back > using nusoap ? > > thanks for any help > > Ryan > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: sending more then one packet: 00075, Scott Nichol |
|---|---|
| Next by Date: | Re: nusoap client, .NET document/literal server: 00075, Scott Nichol |
| Previous by Thread: | Re: sending more then one packeti: 00075, Scott Nichol |
| Next by Thread: | Need help with passing complex type to server: 00075, Martin Kriz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |