p.setConnection(ConnectionType.valueOf(v)); } else if ("DecoupledEndpoint".equals(k)) { p.setDecoupledEndpoint(v); } else if ("ProxyServer".equals(k)) { p.setProxyServer(v);
p.setConnection(ConnectionType.valueOf(v)); } else if ("DecoupledEndpoint".equals(k)) { p.setDecoupledEndpoint(v); } else if ("ProxyServer".equals(k)) { p.setProxyServer(v);
p.setConnection(ConnectionType.valueOf(v)); } else if ("DecoupledEndpoint".equals(k)) { p.setDecoupledEndpoint(v); } else if ("ProxyServer".equals(k)) { p.setProxyServer(v);
c.getClient().setDecoupledEndpoint("http://localhost:" + FaultToEndpointServer.FAULT_PORT2 + "/sendFaultHere");
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer()));
private static Dispatch<Source> createUsernameTokenDispatcher(boolean decoupled, String port) { final Service service = Service.create( GREETER_SERVICE_QNAME ); service.addPort( USERNAME_TOKEN_PORT_QNAME, decoupled ? SOAPBinding.SOAP11HTTP_BINDING : HTTPBinding.HTTP_BINDING, "http://localhost:" + port + "/GreeterService/UsernameTokenPort" ); final Dispatch<Source> dispatcher = service.createDispatch( USERNAME_TOKEN_PORT_QNAME, Source.class, Service.Mode.MESSAGE, new AddressingFeature(decoupled, decoupled) ); final java.util.Map<String, Object> requestContext = dispatcher.getRequestContext(); requestContext.put( MessageContext.HTTP_REQUEST_METHOD, "POST" ); if (decoupled) { HTTPConduit cond = (HTTPConduit)((DispatchImpl<?>)dispatcher).getClient().getConduit(); cond.getClient().setDecoupledEndpoint("http://localhost:" + DEC_PORT + "/decoupled"); } return dispatcher; }
HTTPConduit hc = (HTTPConduit)(c.getConduit()); HTTPClientPolicy cp = hc.getClient(); cp.setDecoupledEndpoint(decoupledEndpoint);
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer()));
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer()));