BufferedInputStream(new FileInputStream(wsdlFile)));
Document wsdlDoc = dFactory.newDocumentBuilder().parse(new
BufferedInputStream(new FileInputStream(wsdlFile)));
XPathFactory xPathFactory = XPathFactory.newInstance();
XPath xPath = xPathFactory.newXPath();
NamespaceContext context = new NamespaceContextImpl(wsdlDoc);
xPath.setNamespaceContext(context);
String xpathExpression = "/:definitions/:service/:port[@name='"+
localPart+"']/soap:address/@location";
endpointURL = xPath.evaluate(xpathExpression, inputSource);
return endpointURL;