/** * Adds an instance of <code>WSDLLocation</code> as metadata to the specified EPR. * The metadata is mapped to a wsdli:wsdlLocation attribute. * * @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 wsdlLocation an instance of <code>WSDLLocation</code> that contains the * metadata * @throws AxisFault */ public static void setWSDLLocationMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, WSDLLocation wsdlLocation) throws AxisFault { OMAttribute attribute = wsdlLocation.toOM(factory); if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { epr.addAttribute(attribute); } else { ArrayList list = new ArrayList(); list.add(attribute); epr.setMetadataAttributes(list); } }
/** * Adds an instance of <code>WSDLLocation</code> as metadata to the specified EPR. * The metadata is mapped to a wsdli:wsdlLocation attribute. * * @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 wsdlLocation an instance of <code>WSDLLocation</code> that contains the * metadata * @throws AxisFault */ public static void setWSDLLocationMetadata(OMFactory factory, EndpointReference epr, String addressingNamespace, WSDLLocation wsdlLocation) throws AxisFault { OMAttribute attribute = wsdlLocation.toOM(factory); if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace)) { epr.addAttribute(attribute); } else { ArrayList list = new ArrayList(); list.add(attribute); epr.setMetadataAttributes(list); } }
while (attributes.hasNext()) { OMAttribute attribute = (OMAttribute) attributes.next(); epr.addAttribute(attribute);
while (attributes.hasNext()) { OMAttribute attribute = (OMAttribute) attributes.next(); epr.addAttribute(attribute);