ns.put("tns", "http://cxf.apache.org/systest/jaxws/DocLitWrappedCodeFirstService");
ns.put("wsdl", "http://schemas.xmlsoap.org/wsdl/");
ns.put("xs", "http://www.w3.org/2001/XMLSchema");
XPathUtils xu = new XPathUtils(ns);
//make sure the wrapper types are anonymous types
Node ct = (Node) xu.getValue("//wsdl:definitions/wsdl:types/xs:schema"
+ "/xs:element[@name='getFooSetResponse']/xs:complexType/xs:sequence",
doc, XPathConstants.NODE);
assertNotNull(ct);
//make sure the params are nillable, not minOccurs=0
ct = (Node) xu.getValue("//wsdl:definitions/wsdl:types/xs:schema"
+ "/xs:element[@name='multiInOut']/xs:complexType/xs:sequence"
+ "/xs:element[@nillable='true']",
doc, XPathConstants.NODE);
assertNotNull(ct);
}