use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSBAClient method getParticipantCompletionParticipantPort.
public static BusinessAgreementWithParticipantCompletionParticipantPortType getParticipantCompletionParticipantPort(String action, MAP map) {
final BusinessAgreementWithParticipantCompletionParticipantService service = getParticipantCompletionParticipantService();
final BusinessAgreementWithParticipantCompletionParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, BusinessAgreementWithParticipantCompletionParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configurePort(bindingProvider, action, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSBAClient method getCoordinatorCompletionCoordinatorPort.
public static BusinessAgreementWithCoordinatorCompletionCoordinatorPortType getCoordinatorCompletionCoordinatorPort(String action, MAP map) {
final BusinessAgreementWithCoordinatorCompletionCoordinatorService service = getCoordinatorCompletionCoordinatorService();
final BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, BusinessAgreementWithCoordinatorCompletionCoordinatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configurePort(bindingProvider, action, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSBAClient method getCoordinatorCompletionParticipantPort.
public static BusinessAgreementWithCoordinatorCompletionParticipantPortType getCoordinatorCompletionParticipantPort(W3CEndpointReference endpointReference, String action, MAP map) {
final BusinessAgreementWithCoordinatorCompletionParticipantService service = getCoordinatorCompletionParticipantService();
final BusinessAgreementWithCoordinatorCompletionParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, BusinessAgreementWithCoordinatorCompletionParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configureEndpointPort(bindingProvider, action, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class BAInteropClient method getInitiatorPort.
public static InitiatorPortType getInitiatorPort(MAP map, String action) {
InitiatorService service = getInitiatorService();
InitiatorPortType port = service.getPort(InitiatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
String to = map.getTo();
/*
* we no longer have to add the JaxWS WSAddressingClientHandler because we can specify the WSAddressing feature
List<Handler> customHandlerChain = new ArrayList<Handler>();
customHandlerChain.add(new WSAddressingClientHandler());
bindingProvider.getBinding().setHandlerChain(customHandlerChain);
*/
Map<String, Object> requestContext = bindingProvider.getRequestContext();
map.setAction(action);
AddressingHelper.configureRequestContext(requestContext, map, to, action);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project jbossws-cxf by jbossws.
the class JBWS3516TestCase method initPort.
private Greeter initPort() throws Exception {
URL wsdlURL = new URL(baseURL + "/helloworld?wsdl");
QName qname = new QName("http://jboss.org/hello_world", "SOAPService");
Service service = Service.create(wsdlURL, qname);
Greeter greeter = service.getPort(Greeter.class, new AddressingFeature());
return greeter;
}
Aggregations