RE: [SOAP] SOAP and attachment

[email protected] ("Shanon Swafford")
Newsgroups php.soap
Message-ID <0ae801c85f07$3d862370$c602a8c0@shanonlap>
Looks like if you can transfer the data encoded, anything should be able to
decode it right?

We send Word, PDF, JPG, BMP, exe, .... document attachments all the time
using NuSOAP as the client/server although I haven't had time to upgrade it
to PHP5 native.  I'm waiting on a way to generate the WSDL as easy as NuSOAP
does:) 

In my servers WSDL, I have:

..
  <xsd:element name="file_name" type="xsd:string" new_order="file_name" /> 
  <xsd:element name="file_size" type="xsd:string" new_order="file_size" /> 
  <xsd:element name="file_type" type="xsd:string" new_order="file_type" /> 
  <xsd:element name="file_contents" type="xsd:base64Binary"
new_order="file_contents" /> ..

Then in my NuSOAP client, I base64_encode any file that I can read as a
string.  In my case, files that are uploaded ($_FILES[]) to the SOAP client
via a web form.

Using:
$file_contents = base64_encode($uploaded_content);

Back on the server, I think NuSOAP decodes it for me because I'm not doing
anything special, just stuffing it in a MySQL blob.  To get it out of the
blob, I just SELECT and echo it out to state it simply.

I even have several Windows (.net) clients using that WSDL.

Regards,
Shanon
www.ntxinternet.com



-----Original Message-----
From: Samisa Abeysinghe [mailto:[email protected]] 
Sent: Thursday, January 24, 2008 8:15 PM
To: Guilhem Martin
Cc: [email protected]
Subject: Re: [SOAP] SOAP and attachment


Guilhem Martin wrote:
> Hello all,
>
> I was not able to find in the PHP SOAP documentation anything about
sending
> attachment.
> So my question is: does PHP SOAP extension support SOAP attachment?
>   

No.

Samisa...

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.