@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference(MailConstants.TRANSPORT_PREFIX + emailAddress) }; }
public EndpointReference getAcksToEndpointReference(){ if(acksToEndpointRef==null && acksToEPR!=null){ //this is for release to release compatability with serializaed data acksToEndpointRef = new EndpointReference(acksToEPR);; } return acksToEndpointRef; }
public static EndpointReference createEndpointReference(String brokerURL, String topic) { if (brokerURL == null) { throw new IllegalArgumentException("Broker URL is null."); } if (topic == null) { throw new IllegalArgumentException("Topic is null."); } String sinkLocation = brokerURL.endsWith("/") ? brokerURL + "topic/" + topic : brokerURL + "/topic/" + topic; EndpointReference eventSinkReference = new EndpointReference(sinkLocation); return eventSinkReference; }
@Override public EndpointReference[] getEndpointReferences(AxisService service, String ip) { return new EndpointReference[] { new EndpointReference("pipe://" + pipe.getAbsolutePath() + "?contentType=" + getContentType()) }; } }
public EndpointReference[] getEPRsForService(String s, String s1) throws AxisFault { if (smsManeger.getPhoneNumber() != null) { // need to change this after sms transport have a proper standered epr return new EndpointReference[]{ new EndpointReference("sms://"+smsManeger.getPhoneNumber()+"/")}; } else { log.debug("Unable to generate EPR for the transport sms"); } return null; }
/** * Constructor that takes in a configContext and useseperate listner */ public CTeDistribuicaoDFeSoapStub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); }
public NFeDistribuicaoDFeSoapStub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); }
public NfeConsulta2Stub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public NfeAutorizacaoStub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public NfeRetAutorizacaoStub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public NfeStatusServico2Stub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public RecepcaoEventoStub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public NfeConsulta2Stub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public CadConsultaCadastro2Stub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
public NfeInutilizacao2Stub(final org.apache.axis2.context.ConfigurationContext configurationContext, final java.lang.String targetEndpoint, final boolean useSeparateListener) throws org.apache.axis2.AxisFault { // To populate AxisService this.populateAxisService(); this.populateFaults(); this._serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, this._service); this._serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); this._serviceClient.getOptions().setUseSeparateListener(useSeparateListener); // Set the soap version this._serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); }
private String subscribeToBroker(String eventSink, String topic, String xpath, WseMsgBrokerClient wseClient, boolean subscribePermanatly) throws MsgBrokerClientException { String subId = null; wseClient.init(brokerURL); if (subscribePermanatly) { subId = wseClient.subscribe(new EndpointReference(eventSink), topic, xpath, -1); } else { subId = wseClient.subscribe(eventSink, topic, xpath); } return subId; }
ServiceClient sc = new ServiceClient(); Options opt= new Options(); //set the target EP opt.setTo(new EndpointReference("http://localhost:8080/axis2/services/CountryService")); opt.setAction("urn:getCountryDetails"); sc.setOptions(opt); sc.sendReceiveNonBlocking(payload, callBack);
/** * Returns all EPRs for a given Service name & IP * @param serviceName ServiceName * @param ip IP */ public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { String domainName = serverCredentials.getDomainName() == null? serverCredentials.getDomainName() : serverCredentials.getServerUrl(); return new EndpointReference[]{new EndpointReference(XMPPConstants.XMPP_PREFIX + serverCredentials.getAccountName() +"@"+ domainName +"/services/" + serviceName)}; }
public WorkflowTrackingContext createTrackingContext(Properties golbalProperties, String epr, URI workflowID, URI serviceID, String workflowNodeID, Integer workflowTimestep) { WorkflowTrackingContext workflowTrackingContext = new WorkflowTrackingContext(); workflowTrackingContext.setGlobalAnnotations(golbalProperties); workflowTrackingContext.setBrokerEpr(new EndpointReference(epr)); workflowTrackingContext.setMyself(createEntity(workflowID, serviceID, workflowNodeID, workflowTimestep)); return workflowTrackingContext; }
public void publish(String topic, OMElement message) throws MsgBrokerClientException { String producerURl = ClientUtil.formatURLString(ClientUtil.getHostIP()); EndpointReference producerReference = new EndpointReference(producerURl); try { OMElement messageToNotify = WSNTProtocolClient.encodeNotification(topic, message, producerReference); notifProducer.deliverMessage(messageToNotify, "wsnt", brokerEndpointRef, getTimeoutInMilliSeconds()); } catch (AxisFault e) { throw new MsgBrokerClientException("unable to publish msg", e); } }