public void setSessionCookie(String cookie) { stub._getServiceClient().getOptions().setProperty(HTTPConstants.COOKIE_STRING, cookie); }
public void cleanup() { try { stub._getServiceClient().cleanupTransport(); stub._getServiceClient().cleanup(); stub.cleanup(); } catch (AxisFault axisFault) { if (log.isErrorEnabled()) { log.error("Stub cleanup failed: " + this.getClass().getName(), axisFault); } } } }
/** * Create a SOAP message envelope using the supplied options. * TODO generated stub code should use this method, or similar method taking * an operation client * * @param options * @return generated * @throws SOAPProcessingException */ protected static SOAPEnvelope createEnvelope(Options options) throws SOAPProcessingException { return getFactory(options.getSoapVersionURI()).getDefaultEnvelope(); }
/** * Finalize method called by garbage collection. This is overridden to * support cleanup of any associated resources. * * @throws Throwable */ protected void finalize() throws Throwable { super.finalize(); cleanup(); }
protected void addHeader(OMElement omElementToadd, SOAPEnvelope envelop){ addHeader(omElementToadd,envelop,false); }
/** * Finalize method called by garbage collection. This is overridden to * support cleanup of any associated resources. * * @throws Throwable */ protected void finalize() throws Throwable { super.finalize(); cleanup(); }
protected void addHeader(OMElement omElementToadd, SOAPEnvelope envelop){ addHeader(omElementToadd,envelop,false); }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
/** * Create a SOAP message envelope using the supplied options. * TODO generated stub code should use this method, or similar method taking * an operation client * * @param options * @return generated * @throws SOAPProcessingException */ protected static SOAPEnvelope createEnvelope(Options options) throws SOAPProcessingException { return getFactory(options.getSoapVersionURI()).getDefaultEnvelope(); }
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
env = this.toEnvelope(Stub.getFactory(_operationClient.getOptions().getSoapVersionURI()), nfeDistDFeInteresse, this.optimizeContent(new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe", "nfeDistDFeInteresse")));
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
env = this.toEnvelope(Stub.getFactory(_operationClient.getOptions().getSoapVersionURI()), cteDistDFeInteresse, this.optimizeContent(new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe", "cteDistDFeInteresse")));
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, Boolean.TRUE, stub._getServiceClient()); } }
env = this.toEnvelope(Stub.getFactory(_operationClient.getOptions().getSoapVersionURI()), nfeDadosMsg1, this.optimizeContent(new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", "nfeAutorizacaoLote")), new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4", "nfeDadosMsg"));
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
env = this.toEnvelope(Stub.getFactory(_operationClient.getOptions().getSoapVersionURI()), nfeDadosMsg0, this.optimizeContent(new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", "nfeInutilizacaoNF")), new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4", "nfeDadosMsg"));
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }
env = this.toEnvelope(Stub.getFactory(_operationClient.getOptions().getSoapVersionURI()), nfeDadosMsg0, this.optimizeContent(new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", "nfeRetAutorizacaoLote")), new javax.xml.namespace.QName("http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4", "nfeDadosMsg"));
/** * Authenticate the given web service stub against the Product user manager. This * will make it possible to use the stub for invoking Product admin services. * * @param stub Axis2 service stub which needs to be authenticated */ public static void authenticateStub(String userName, String password, Stub stub) { CarbonUtils.setBasicAccessSecurityHeaders(userName, password, stub._getServiceClient()); } }