use of javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder in project tomee by apache.
the class EjbMessageContext method getEndpointReference.
public EndpointReference getEndpointReference(Element... referenceParameters) {
org.apache.cxf.message.Message msg = getWrappedMessage();
Endpoint ep = msg.getExchange().get(Endpoint.class);
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
builder.address(ep.getEndpointInfo().getAddress());
builder.serviceName(ep.getService().getName());
builder.endpointName(ep.getEndpointInfo().getName());
if (referenceParameters != null) {
for (Element referenceParameter : referenceParameters) {
builder.referenceParameter(referenceParameter);
}
}
return builder.build();
}
Aggregations