Search in sources :

Example 11 with IPingService

use of wssec.wssec10.IPingService in project cxf by apache.

the class WSSecurity10UsernameAuthorizationTest method getComplexPolicyPort.

private static IPingService getComplexPolicyPort(Bus bus) {
    BusFactory.setDefaultBus(bus);
    BusFactory.setThreadDefaultBus(bus);
    PingService svc = new PingService(getWsdlLocation("UserNameOverTransport"));
    return svc.getPort(new QName("http://WSSec/wssec10", "UserNameOverTransport" + "_IPingService"), IPingService.class);
}
Also used : QName(javax.xml.namespace.QName) IPingService(wssec.wssec10.IPingService) PingService(wssec.wssec10.PingService)

Aggregations

IPingService (wssec.wssec10.IPingService)10 Bus (org.apache.cxf.Bus)7 SpringBusFactory (org.apache.cxf.bus.spring.SpringBusFactory)7 Test (org.junit.Test)7 QName (javax.xml.namespace.QName)5 PingService (wssec.wssec10.PingService)4 MalformedURLException (java.net.MalformedURLException)3 IOException (java.io.IOException)2 URL (java.net.URL)2 Client (org.apache.cxf.endpoint.Client)1 HTTPConduit (org.apache.cxf.transport.http.HTTPConduit)1 HTTPClientPolicy (org.apache.cxf.transports.http.configuration.HTTPClientPolicy)1 IPingService (wssec.wssec11.IPingService)1 PingService11 (wssec.wssec11.PingService11)1