[wsf-c-dev] [PHP] Supporting SoapServer::handle()'s optional parameter

Samisa Abeysinghe samisa at wso2.com
Mon Feb 12 00:04:41 PST 2007


James Clark wrote:
> On Mon, 2007-02-12 at 08:44 +0600, Samisa Abeysinghe wrote:
>   
>> SOAP ext's SoapServer::handle() takes an optional parameter soap_request.
>> If the SOAP request argument is omitted, the request is supposed to be 
>> in the $HTTP_RAW_POST_DATA PHP variable.
>> IMHO, 99% of the time, handle() would be used without any parameters. 
>> However we cannot rule out the possibility of using the parameter; 
>> especially that can be useful in testing.
>>
>> In WSService, we always assume that the request would come through the 
>> transport. So we do not have any parameters to WSService::request().
>> Looks like we would have to add an optional parameter to request().
>>     
>
> You mean reply(), right?
>   
Yes; apologies for the typo.
> This sounds reasonable to me.  What exactly does the optional argument
> contain?  A string containing a MIME message including header plus
> entity body?
>   
In my understanding, for SoapServer, the parameter has to be a sting 
containing whatever POSTed data to be consumed by service. Basically if 
you give the SOAP envelope, it works.
For WSService, as we support MTOM, we should be able to provide the 
string with MIME stuff.

Samisa...





More information about the Wsf-c-dev mailing list