Service RTservice = new Service(); Call RTcall = (Call) RTservice.createCall(); RTcall.setTargetEndpointAddress(new java.net.URL(RTendpointURL)); RTcall.setOperationName(new QName("edc.usgs.gov", "processAOI")); String response = (String) RTcall.invoke(new Object[] { payload });
protected void setRequestHeaders(org.apache.axis.client.Call call) throws AxisFault { // Set the call headers. SOAPHeaderElement[] headers = getHeaders(); for(int i=0;i<headers.length;i++){ call.addHeader(headers[i]); } }
/** * Build a call from a URL. * * @param url the target endpoint URL */ public Call(URL url) { this(new Service()); setTargetEndpointAddress(url); }
/** * set the URL to deploy to * requires that call!=null * @param address */ public void setTargetEndpointAddress(URL address) { call.setTargetEndpointAddress( address ); }
/** * set the username and password * requires that call!=null * @param user username * @param password password */ public void setLogin(String user, String password) { call.setUsername( user ); call.setPassword( password ); }
/** * Create a Service instance. * @param wsdlDocumentLocation URL for the WSDL document location for the service * @param serviceName QName for the service. * @return Service. * @throws ServiceException If any error in creation of the specified service */ public javax.xml.rpc.Service createService(URL wsdlDocumentLocation, QName serviceName) throws ServiceException { return new Service(wsdlDocumentLocation, serviceName); } // createService
/** * copy the attachments from the stub to the call object. After doing so, * the local set of attachments are cleared. * @param call call object to configure * @throws AxisFault */ protected void setAttachments(org.apache.axis.client.Call call) throws AxisFault { // Set the attachments. Object[] attachments = getAttachments(); for(int i=0;i<attachments.length;i++){ call.addAttachmentPart(attachments[i]); } clearAttachments(); }
protected AxisClient getAxisClient() { return new AxisClient(getEngineConfiguration()); }
/** * Constructs a new Service object for the service in the WSDL document * * @param parser Parser for this service * @param serviceName Qualified name of the desired service * @throws ServiceException If there's an error */ public Service(Parser parser, QName serviceName) throws ServiceException { this.serviceName = serviceName; engine = getAxisClient(); initService(parser, serviceName); }
/** * process the options then run a list call * @param opts * @return * @throws Exception */ public String list(Options opts) throws Exception { processOpts( opts ); return list(); }
/** * Creates a new Call object with no prefilled data. This assumes * that the caller will set everything manually - no checking of * any kind will be done against the WSDL. * * @return Call Used for invoking the Web Service * @throws ServiceException If there's an error */ public javax.xml.rpc.Call createCall() throws ServiceException { _call = new org.apache.axis.client.Call(this); return _call; }
/** * this is a somwhat contrived variant constructor, one that throws an exception * if things go wrong. * @param ignored */ public AdminClient(boolean ignored) throws ServiceException { initAdminClient(); }
/** * Constructs a new Service object - this assumes the caller will set * the appropriate fields by hand rather than getting them from the * WSDL. */ public Service() { engine = getAxisClient(); }
/** * Build a call from a URL. * * @param url the target endpoint URL */ public Call(URL url) { this(new Service()); setTargetEndpointAddress(url); }
/** * set the URL to deploy to * requires that call!=null * @param address */ public void setTargetEndpointAddress(URL address) { call.setTargetEndpointAddress( address ); }
protected void setRequestHeaders(org.apache.axis.client.Call call) throws AxisFault { // Set the call headers. SOAPHeaderElement[] headers = getHeaders(); for(int i=0;i<headers.length;i++){ call.addHeader(headers[i]); } }
/** * copy the attachments from the stub to the call object. After doing so, * the local set of attachments are cleared. * @param call call object to configure * @throws AxisFault */ protected void setAttachments(org.apache.axis.client.Call call) throws AxisFault { // Set the attachments. Object[] attachments = getAttachments(); for(int i=0;i<attachments.length;i++){ call.addAttachmentPart(attachments[i]); } clearAttachments(); }
protected AxisClient getAxisClient() { return new AxisClient(getEngineConfiguration()); }
/** * Build a call from a URL. * * @param url the target endpoint URL */ public Call(URL url) { this(new Service()); setTargetEndpointAddress(url); }
protected void setRequestHeaders(org.apache.axis.client.Call call) throws AxisFault { // Set the call headers. SOAPHeaderElement[] headers = getHeaders(); for(int i=0;i<headers.length;i++){ call.addHeader(headers[i]); } }