XFire

wsgen generated client no longer allows setting endpoints

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.1
  • Fix Version/s: None
  • Component/s: Generator
  • Labels:
    None
  • Number of attachments :
    0

Description

You can no longer set an endpoint in the client. You can't get around it by deriving from the client class either as the members are private.

PortGenerator.java

This code appears in 1.0 but is removed in 1.1

/**

  • addEndpoint()
    */
    JMethod addEndpointMethod = servCls.method(JMod.PUBLIC, void.class, "addEndpoint");
    JVar epname = addEndpointMethod.param(QName.class, "name");
    JVar bindingId = addEndpointMethod.param(QName.class, "binding");
    JVar address = addEndpointMethod.param(String.class, "address");

JInvocation addEPInvoke = serviceVar.invoke("addEndpoint");
addEPInvoke.arg(JExpr.direct(epname.name()));
addEPInvoke.arg(JExpr.direct(bindingId.name()));
addEPInvoke.arg(JExpr.direct(address.name()));

addEndpointMethod.body().add(addEPInvoke);

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: