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




Attachment: smime.p7s
Description: Signature cryptographique S/MIME

_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to