1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
String sInXmlData = "<![CDATA[" +
"<tns:rechercheClientRequete xmlns:tns=\"http://www.xxxxx.fr/RCUManager\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
+"<tns:idClient>xxxxx</tns:idClient>"
+"</tns:rechercheClientRequete>"
+ "]]>";
WSConsultRCUImplService service = new WSConsultRCUImplService();
HeaderHandlerResolver handlerResolver = new HeaderHandlerResolver();
service.setHandlerResolver(handlerResolver);
WSConsultRCU port = service.getWSConsultRCUImplPort();
BindingProvider bindingProvider = (BindingProvider)port;
bindingProvider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://xxx.xxx.xxx/D1/ws/CRM/rcumanager/ws/wsConsultRCU");
bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "xxxxx");
bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "xxxxxxx");
port.rechercheClient( sInXmlData); |
Partager