Search in sources :

Example 1 with MetadataType

use of org.apache.cxf.ws.addressing.MetadataType in project cxf by apache.

the class WSAEndpointReferenceUtils method getSetMetadata.

public static MetadataType getSetMetadata(EndpointReferenceType ref) {
    MetadataType mt = ref.getMetadata();
    if (null == mt) {
        mt = WSA_OBJECT_FACTORY.createMetadataType();
        ref.setMetadata(mt);
    }
    return mt;
}
Also used : MetadataType(org.apache.cxf.ws.addressing.MetadataType)

Example 2 with MetadataType

use of org.apache.cxf.ws.addressing.MetadataType in project tesb-rt-se by Talend.

the class CXFEndpointProvider method addProperties.

/**
 * Adds service locator properties to an endpoint reference.
 * @param epr
 * @param props
 */
private static void addProperties(EndpointReferenceType epr, SLProperties props) {
    MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(epr);
    ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props);
    JAXBElement<ServiceLocatorPropertiesType> slp = SL_OBJECT_FACTORY.createServiceLocatorProperties(jaxbProps);
    metadata.getAny().add(slp);
}
Also used : ServiceLocatorPropertiesType(org.talend.esb.servicelocator.client.internal.endpoint.ServiceLocatorPropertiesType) MetadataType(org.apache.cxf.ws.addressing.MetadataType)

Aggregations

MetadataType (org.apache.cxf.ws.addressing.MetadataType)2 ServiceLocatorPropertiesType (org.talend.esb.servicelocator.client.internal.endpoint.ServiceLocatorPropertiesType)1