/** * Adds an instance of <code>ServiceName</code> as metadata to the specified EPR. * The metadata is mapped to a WS-Addressing EPR ServiceName element. * * @param factory an <code>OMFactory</code> * @param epr the EPR to retrieve the attribute from * @param addressingNamespace the WS-Addressing namespace associated with * the EPR. * @param serviceName an instance of <code>ServiceName</code> that contains the * metadata * @throws AxisFault */ public static void setServiceNameMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, ServiceName serviceName) throws AxisFault { if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { OMElement omElement = serviceName.toOM(factory, ServiceName.subQName); epr.addExtensibleElement(omElement); } else { OMElement omElement = serviceName.toOM(factory, ServiceName.wsamQName); epr.addMetaData(omElement); } }
/** * Adds an instance of <code>ServiceName</code> as metadata to the specified EPR. * The metadata is mapped to a WS-Addressing EPR ServiceName element. * * @param factory an <code>OMFactory</code> * @param epr the EPR to retrieve the attribute from * @param addressingNamespace the WS-Addressing namespace associated with * the EPR. * @param serviceName an instance of <code>ServiceName</code> that contains the * metadata * @throws AxisFault */ public static void setServiceNameMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, ServiceName serviceName) throws AxisFault { if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { OMElement omElement = serviceName.toOM(factory, ServiceName.subQName); epr.addExtensibleElement(omElement); } else { OMElement omElement = serviceName.toOM(factory, ServiceName.wsamQName); epr.addMetaData(omElement); } }
/** * Adds an instance of <code>InterfaceName</code> as metadata to the specified EPR. * The metadata is mapped to a WS-Addressing EPR PortType or InterfaceName element. * * @param factory an <code>OMFactory</code> * @param epr the EPR to retrieve the attribute from * @param addressingNamespace the WS-Addressing namespace associated with * the EPR. * @param interfaceName an instance of <code>InterfaceName</code> that contains the * metadata * @throws AxisFault */ public static void setInterfaceNameMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, InterfaceName interfaceName) throws AxisFault { if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { OMElement omElement = interfaceName.toOM(factory, InterfaceName.subQName); epr.addExtensibleElement(omElement); } else { OMElement omElement = interfaceName.toOM(factory, InterfaceName.wsamQName); epr.addMetaData(omElement); } }
/** * Adds an instance of <code>InterfaceName</code> as metadata to the specified EPR. * The metadata is mapped to a WS-Addressing EPR PortType or InterfaceName element. * * @param factory an <code>OMFactory</code> * @param epr the EPR to retrieve the attribute from * @param addressingNamespace the WS-Addressing namespace associated with * the EPR. * @param interfaceName an instance of <code>InterfaceName</code> that contains the * metadata * @throws AxisFault */ public static void setInterfaceNameMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, InterfaceName interfaceName) throws AxisFault { if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { OMElement omElement = interfaceName.toOM(factory, InterfaceName.subQName); epr.addExtensibleElement(omElement); } else { OMElement omElement = interfaceName.toOM(factory, InterfaceName.wsamQName); epr.addMetaData(omElement); } }
epr.addExtensibleElement(eprChildElement);
epr.addExtensibleElement(eprChildElement);