Created
May 31, 2013 19:48
-
-
Save dcvezzani/5687520 to your computer and use it in GitHub Desktop.
Java client snippet for configuration for Apache CXF-enabled client that will be establishing an encrypted connection (SSL via HTTPS) with a server, also powered by Apache CXF.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.cxf.Bus; | |
import org.apache.cxf.BusFactory; | |
import org.apache.cxf.bus.spring.SpringBusFactory; | |
public final class UCIDMServicesClient { | |
private UCIDMServicesClient() { | |
} | |
public static void main(String args[]) throws java.lang.Exception { | |
... | |
SpringBusFactory bf = new SpringBusFactory(); | |
URL busFile = UCIDMServicesClient.class.getResource("/ClientConfig.xml"); | |
Bus bus = bf.createBus(busFile.toString()); | |
BusFactory.setDefaultBus(bus); | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment