Hi, I'm tring to create a j2ee client which will call to webservice. Only at run time I know the ip of the machine that runs the web-service.
Do I need to parse the wsdl file and to replace the string <REPLACE_WITH_ACTUAL_URL> by the real ip ? Is there another option? I know when using the stub option (which doesn't implemented in JBOSS) there is an option to change the end point IP address in the stub | _setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://tulip.imagine-com.local:12124"); | Currently my code looks as follow | URL mappingLocation = this.getClass().getClassLoader | .getResource("META-INF/jaxrpc-mapping.xml"); | File file = new File("C:/a.wsdl"); | URL url = new URL(file.toURL().toString()); | QName serviceName = new QName("http://com.bbb.aa", | "aaService"); | ServiceFactoryImpl factory = (ServiceFactoryImpl) ServiceFactory | .newInstance(); | Service service = (Service) factory.createService(url, mappingLocation, | null, serviceName, null); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937885#3937885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937885 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user