addInterceptors(staticBus.getOutFaultInterceptors(), interceptors);
addInterceptors(staticBus.getInFaultInterceptors(), interceptors);
EndpointReferenceType target =
EndpointReferenceUtils.getEndpointReference(Server.ADDRESS);
ReferenceParametersType params =
ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType();
JAXBElement<String> param =
new JAXBElement<String>(CUSTOMER_NAME, String.class, CUSTOMER_KEY);
params.getAny().add(param);
target.setReferenceParameters(params);
URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
ServiceImpl serviceImpl =
ServiceDelegateAccessor.get(new SOAPService(wsdl, SERVICE_NAME));
greeter = serviceImpl.getPort(target, Greeter.class);