Changeset 841 for vanHelsing/trunk/gui
- Timestamp:
- Mar 12, 2010, 8:10:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/Client.java
r840 r841 4 4 import org.apache.axis2.client.Options; 5 5 import org.apache.axis2.client.ServiceClient; 6 import org.apache.axis2.context.ConfigurationContext; 7 import org.apache.axis2.context.ConfigurationContextFactory; 6 8 7 9 import de.dass_it.www.vanhelsing.*; 8 10 import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*; 9 11 import de.dass_it.www.vanhelsing.VanHelsingStub.*; 12 import java.util.*; 10 13 11 14 public class Client { … … 13 16 VanHelsingStub stub; 14 17 try { 15 stub = new VanHelsingStub("http://localhost:8080/"); 18 ConfigurationContext cfgCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); 19 HashMap<String, Object> params = new HashMap<String, Object>(); 20 params.put("org.apache.axis2.transport.http.HTTPConstants.CHUNKED", Boolean.FALSE); 21 params.put("org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION", "org.apache.axis2.transport.http.HTTPConstants.HEADER_PROTOCOL_10"); 22 cfgCtx.setProperties(params); 23 24 25 stub = new VanHelsingStub(cfgCtx, "http://localhost:8080/"); 16 26 17 27 getResourceList(stub); … … 91 101 public static void main(String args[]){ 92 102 Client c = new Client(); 93 //c.connect();103 c.connect(); 94 104 95 ListResourcesType lrt = new ListResourcesType();105 /*ListResourcesType lrt = new ListResourcesType(); 96 106 lrt.setDirector("bacula-dir"); 97 107 lrt.setResourceType("JobDefs");
Note:
See TracChangeset
for help on using the changeset viewer.