You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to return an object and always I see in the XML the tag return, is possible to remove that tag ? I generate the response in the controller as follows:
$out = new LoginOutput();
$out->setSessionId($tokenGenerated);
$out->setValidTo($Timestamp);
$this->container->get('besimple.soap.response')->setReturnValue($out);
return $this->container->get('besimple.soap.response');
The response that I obtain is:
<ns1:LoginResponse>
<return>
<SessionId>5643097cee2b5</SessionId>
<ValidTo/>
</return>
</ns1:LoginResponse>
And i want this return
<loginResponse>
<SessionId>5643097cee2b5</SessionId>
<ValidTo>2015-11-11T10:58:58.21775+01:00</ValidTo>
</loginResponse>
The text was updated successfully, but these errors were encountered:
I'm trying to return an object and always I see in the XML the tag return, is possible to remove that tag ? I generate the response in the controller as follows:
/**
* @soap\Method("Login")
* @soap\Param("UserName", phpType = "string")
* @soap\Result(phpType = "LoginOutput")
*/
$out = new LoginOutput();
$out->setSessionId($tokenGenerated);
$out->setValidTo($Timestamp);
$this->container->get('besimple.soap.response')->setReturnValue($out);
return $this->container->get('besimple.soap.response');
The response that I obtain is:
The text was updated successfully, but these errors were encountered: