XML & Web services: Axis client call from HTTP to HTTPS

  1. Axis client call from HTTP to HTTPS (1 messages)


    I'm a complete newbie to Web Services development. I have generated a Axis client with a provided WSDL with HTTP URLs, but now I need to send some messages using HTTPS. Should I manually update the WSDL with HTTPS URLs or is there an option/configuration/property that can be set programmatically in Axis to send HTTPS rather HTTP messages, without having to regenerate a client?

  2. Finally found the answer. Axis client generated class *Proxy.java has a method named setEndPoint(String). Just make a setEndPoint(getEndPoint.replaceFirst("http", "https")) and it's done. RTFC to me.