URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1809/EndpointImpl?wsdl");
WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
assertNotNull("Unable to read WSDL definitions", wsdlDefinitions);
XSModelTypes wsdlTypes = (XSModelTypes)wsdlDefinitions.getWsdlTypes();
// convert XSModelTypes to dom representation
// it's easier to consume...
Element types = DOMUtils.parse(wsdlTypes.getSchemaModel().serialize());
Iterator it = DOMUtils.getChildElements(types, "complexType");
boolean foundAttributeDeclaration = false;
while(it.hasNext())
{