* @return an instance of <code>WSDLLocation</code>. The return value is
* never <code>null</code>.
* @throws AxisFault
*/
public static WSDLLocation getWSDLLocationMetadata(EndpointReference epr, String addressingNamespace) throws AxisFault {
WSDLLocation wsdlLocation = new WSDLLocation();
List attributes = null;
if (AddressingConstants.Submission.WSA_NAMESPACE.equals(addressingNamespace))
attributes = epr.getAttributes();
else
attributes = epr.getMetadataAttributes();
if (attributes != null) {
//Retrieve the wsdl location.
for (int i = 0, size = attributes.size(); i < size; i++) {
OMAttribute omAttribute = (OMAttribute) attributes.get(i);
if (WSDLLocation.isWSDLLocationAttribute(omAttribute)) {
wsdlLocation.fromOM(omAttribute);
break;
}
}
}