Re: [SOAP] Re: PEAR::SOAP server handling MIME attachemnts

From: Date: Thu, 31 Jul 2003 01:00:33 +0000
Subject: Re: [SOAP] Re: PEAR::SOAP server handling MIME attachemnts
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-893@lists.php.net to get a copy of this message
Hmm, at some point the server function got removed. I've put it back but haven't retested it, you can see it at: http://cvs.php.net/co.php/pear/SOAP/example/example_server.php?r=1.3 Shane Will Green wrote:
Ok, I have done some digging into the source and have found that the service($data, $endpoint = '', $test = FALSE) method of Server.php takes care of decoding the attachments, and putting them into an array $attachments. This array's scope appears to be limited to this function. My questions, then, are thus: - How does my server class (the class passed to the SOAP_Server via $server->addObjectMap() ) access this $attachments array? - Assuming the client is the one Shane creted at http://talks.php.net/show/soap-phpcon-ny2003/53, would that attachment's key in the $attachment array be 'testattach'? - What would the $__typedef['testattach'] entry look like for the server that the above client talks to? Oh, and please do not tell me to look in the SOAP/examples directory for code examples. There is only one file in there that contains the phrase 'attach', and that is attachment.php, which is client-side. I want to know how to handle attachments on the server-side. I don't mean to be abrasive, I just want to know how to do it! Thanks! == Will Green


« previous php.soap (#893) next »