The problem is in your Webservices impl class. Because if we are developing the first web service of the contract, our CXF tool will generate all classes of Binding, Service Interface and its implementation class.
So, if you check your generated impl class once, it will look like this:
import java.util.logging.Logger; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.xml.bind.annotation.XmlSeeAlso; @javax.jws.WebService( serviceName = "TrainInfoServices", portName = "TrainInfoSOAPPort", targetNamespace = "http://www.irctc.org/TrainInfo/types", wsdlLocation = "file:WebContent/WEB-INF/TrainInfo.wsdl", endpointInterface = "org.irctc.traininfo.types.TrainInfo") public class TrainInfoImpl implements TrainInfo {
But the value of the wsdlLocation variable should look like this: wsdlLocation = "/WEB-INF/TrainInfo.wsdl",
try with this change and expand it and it will slove ..
Thanks.
source share