Soap webservice how to remove return struc field?

I am writing a web service (server side) based on API spec of other party.

The problem: when I want to return multiple field, the soap controller always return a root struct with childs are my fields.

Client request:

<urn:request>

     &lt;request xsi:type=&quot;xsd:string&quot;&gt;anc&lt;/request&gt;


     &lt;requestSignature xsi:type=&quot;xsd:string&quot;&gt;ac&lt;/requestSignature&gt;

</urn:request>

My server response:

<ns1:requestResponse>

     &lt;return xsi:type=&quot;SOAP-ENC:Struct&quot;&gt;


        &lt;response xsi:type=&quot;xsd:string&quot;&gt;SUCCESS&lt;/response&gt;


        &lt;responseSignature xsi:type=&quot;xsd:string&quot;&gt;abc&lt;/responseSignature&gt;


     &lt;/return&gt;

</ns1:requestResponse>

What i want:

<ns1:requestResponse>

        &lt;response xsi:type=&quot;xsd:string&quot;&gt;SUCCESS&lt;/response&gt;


        &lt;responseSignature xsi:type=&quot;xsd:string&quot;&gt;abc&lt;/responseSignature&gt;

</ns1:requestResponse>

Currently in soap controller i return an object {response,responseSignature}

My soapcontroller was declare with:

/**

  • @param string request

  • @param string requestSignature

  • @return mixed requestResponse

  • @soap

*/

public function request($request,$requestSignature) {}

How i modify to return without the "return" tag?

Thanks,

Hung

i see that cannot remove it because it hard code in CWsdlGenerator at line 152

$this->_messages[$methodName.‘Response’]=array(‘return’=>$return);

I dont know how to modify it parsing and it should not modify the core so it let it as is. I will find another library or write php soap directly.

Finally i find out this is not the requirement as soap client will map whatever struc name return, so keep it as is and working. Sorry for my stupid question.