Each tool (JBoss WS, wsimport, Apache CXF, RAD, etc.) that generates classes from WSDL does this a little differently, and they do not all generate the same classes, although they are usually similar. But there is a way to provide your own URL that points to the WSDL. I am not familiar with RAD and how it generates web services, but I assume that the WSCalculator_Service class has a constructor that accepts a URL:
WSCalculator_Service service = new WSCalculator_Service(new URL("http://www.domain.com/ws/file.wsdl")); WSCalculator port = service.getWSCalculatorPort(); port.callWebService(param1, param2, ...);
Sometimes a constructor that accepts a URL also requires a QName. I would look in the source and just copy the QName name that it uses.
source share