public Dispatch<Source> getDispatch() { if (_dispatch == null) { QName portQName = new QName("http://service.agentservice.ewallet.esolutions.co.zw/", "AgentServiceSOAP"); _dispatch = _service.createDispatch(portQName, Source.class, Service.Mode.MESSAGE); String proxyEndpointUrl = getEndpoint(); BindingProvider bp = (BindingProvider) _dispatch; String dispatchEndpointUrl = (String) bp.getRequestContext().get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY); if (!dispatchEndpointUrl.equals(proxyEndpointUrl)) bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, proxyEndpointUrl); } return _dispatch; }
private void initCommon() { _proxy = _service.getAgentServiceSOAP(); }