[wsf-c-dev] [PHP] WSService API additions
Samisa Abeysinghe
samisa at wso2.com
Mon Feb 12 20:30:49 PST 2007
>> In non-WSDL case, how are we to get to know the format of the payload to
>> be prepared?
>>
>
> I don't understand the question. Could you step me through the scenario
> you are asking about?
>
Let me give an example.
Say that we want the response payload to look something like the following:
<ns1:addResponse>
<addReturn xsi:type="xsd:int">120</addReturn>
</ns1:addResponse>
Now I could write the add function like the following with SOAP ext:
function add($param1, $param2) {
$result = new SoapParam($param1 + $param2, "addReturn");
return $result;
}
My question is, how to support such a scenario?
Also note that, if I have the function just like the flowing:
function add($param1, $param2) {
return $param1 + $param2;
}
that would result in the following payload (note that supporting this
case is simple)
<ns1:addResponse>
<return xsi:type="xsd:int">120</return>
</ns1:addResponse>
Samisa...
More information about the Wsf-c-dev
mailing list