Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.
This repository was archived by the owner on May 28, 2018. It is now read-only.

@BeanParam with proxy client does not work #1925

Closed
@glassfishrobot

Description

@glassfishrobot

@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]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions