You should be getting the complete xml message. Are you viewing the
result from a browser. In that case, the browser is only showing the
text in the xml and hence you are seeing the 'true' value.

Regards
Nandika

On Wed, May 30, 2012 at 9:40 PM, Antoine Louiset
<antoine.loui...@yousign.fr> wrote:
>
> Hi everyone,
>
> I would like to run a simple service, my client get the answer but it is
> not complete. I do not receive the xml response but only the value of a tag.
>
> The code of the service is :
>
> class AuthenticationService
> {
>     function __construct()
>     {
>     }
>     function connect($in)
>     {
> <ns1:connectResponse xmlns:ns1="http://www.wso2.org/php/xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <ns1:returnVal xsi:type="xsd:boolean">true</ns1:returnVal>
> </ns1:connectResponse>
>
>         return new WSMessage($returnMessage);
>     }
>
> }
>
>
> $classes = array('AuthenticationService' =>
>     array('operations' =>  array("connect" =>  "connect")));
>
> $options = array('classes' =>  $classes);
> $wsmanager = new \WsManager();
> $s = new WSService($options);
> $s->reply();
>
>
> ----------------
>
> The code of the client is :
>
> $client = new WSClient(array("to" =>
> "http://localhost/apiserver/services/authentication/index.php";));
> $response = $client->request($payloadMsg);
> echo $response->str;
>
>
> ---------------------------
>
> The client shows just the value "true" and not the complete response :
> <ns1:connectResponse xmlns:ns1="http://www.wso2.org/php/xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <ns1:returnVal xsi:type="xsd:boolean">true</ns1:returnVal>
> </ns1:connectResponse>
>
>
> Do you have any ideas ?
>
> Thanks.
>
> Best regards,
>
> --
> Antoine Louiset
>
>
>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Nandika Jayawardana
Technical Lead
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to