Closed
Description
@BeanParam with proxy client does not work
It does not send through the @HeaderParam's in the request... and the SmsResponse from the proxy method call is null.
For example...
@Path( "/" )
public interface ZengMessagingService
{
@GET
@Path( "/sms" )
@BeanParam
SmsResponse sendSms( @BeanParam SmsRequest request );
}
public class SmsRequest
extends OneTimePasswordRequest
{
@HeaderParam( "delivery-mode" )
private int deliveryMode;
@HeaderParam( "categ" )
private String subscriptionCategory;
...
public class SmsResponse
extends OneTimePasswordResponse
{
@HeaderParam( "provisioning-code" )
private String provisioningCode;
...
Client client = ClientFactory.newClient();
WebTarget target = client.target( "http://localhost:" + port + "/" ); ZengMessagingService zengMessagingService = WebResourceFactory.newResource( ZengMessagingService.class, target );
SmsResponse smsResponse = zengMessagingService.sendSms( smsRequest );
Environment
Glassfish 4.0 b72
Affected Versions
[2.0-m11]