Search in sources :

Example 1 with W3CEndpointReferenceBuilder

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();
}
Also used : W3CEndpointReferenceBuilder(javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder) Endpoint(org.apache.cxf.endpoint.Endpoint) Message(org.apache.cxf.message.Message) Element(org.w3c.dom.Element)

Aggregations

W3CEndpointReferenceBuilder (javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder)1 Endpoint (org.apache.cxf.endpoint.Endpoint)1 Message (org.apache.cxf.message.Message)1 Element (org.w3c.dom.Element)1