Skip to content

Instantly share code, notes, and snippets.

@KomanRudden
Created July 6, 2015 08:50
Show Gist options
  • Save KomanRudden/58da1eb49ef87680024c to your computer and use it in GitHub Desktop.
Save KomanRudden/58da1eb49ef87680024c to your computer and use it in GitHub Desktop.
SOAP web service client - binding endpoint url to client
<system-properties>
<property name="adeptra.endpoint.url" value="https://gateway1-cqa.adeptra.eu/fnb/fnbZAFRMOriginations"/>
</system-properties>
protected FicoCcsCem createAdeptraClient() {
URL wsdlLocation = this.getClass().getResource("/wsdl/adeptra.wsdl");
QName q = new QName("http://www.fico.com/ccs.cem/", "fico.ccs.cem");
final FicoCcsCem_Service service = new FicoCcsCem_Service(wsdlLocation, q);
final FicoCcsCem port = service.getFicoCcsCemSoap();
BindingProvider bp = (BindingProvider) port;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, System.getProperty("adeptra.endpoint.url"));
service.setHandlerResolver(new AdeptraSOAPHandlerResolver());
return port;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment