(http://www.xmethods.net/sd/2001/BabelFishService.wsdl)
String endpoint = "http://services.xmethods.net:80/perl/soaplite.cgi"; Look, you have two different url. -Henry >>> [EMAIL PROTECTED] 5/24/2005 10:45:36 AM >>> Dear All, Every call i try to make to an extenal web service i get the error java.net.SocketTimeoutException: Read timed out Is anyone able to expalin this to me Do i need to set some timeouts, if so where do i set them? Code is from an example (http://www.xmethods.net/sd/2001/BabelFishService.wsdl) String endpoint = "http://services.xmethods.net:80/perl/soaplite.cgi"; String namespaceURI = "urn:xmethodsBabelFish"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( endpoint ); call.setOperationName(new QName(namespaceURI, "BabelFish") ); Object [] arguments = new Object[2]; arguments[0] = "en_fr"; arguments[1] = "Thank You"; String greeting = (String) call.invoke(arguments); greeting = (String) call.invoke(arguments); System.out.println(greeting); _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
