Created
July 6, 2015 08:50
-
-
Save KomanRudden/58da1eb49ef87680024c to your computer and use it in GitHub Desktop.
SOAP web service client - binding endpoint url to client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system-properties> | |
<property name="adeptra.endpoint.url" value="https://gateway1-cqa.adeptra.eu/fnb/fnbZAFRMOriginations"/> | |
</system-properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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