Changeset 841


Ignore:
Timestamp:
Mar 12, 2010, 8:10:05 PM (15 years ago)
Author:
tobias
Message:

setting properties for http protocol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/Client.java

    r840 r841  
    44import org.apache.axis2.client.Options;
    55import org.apache.axis2.client.ServiceClient;
     6import org.apache.axis2.context.ConfigurationContext;
     7import org.apache.axis2.context.ConfigurationContextFactory;
    68
    79import de.dass_it.www.vanhelsing.*;
    810import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;
    911import de.dass_it.www.vanhelsing.VanHelsingStub.*;
     12import java.util.*;
    1013
    1114public class Client {
     
    1316                VanHelsingStub stub;
    1417                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/");
    1626                       
    1727                        getResourceList(stub);
     
    91101        public static void main(String args[]){
    92102                Client c = new Client();
    93                 //c.connect();
     103                c.connect();
    94104               
    95                 ListResourcesType lrt = new ListResourcesType();
     105                /*ListResourcesType lrt = new ListResourcesType();
    96106                lrt.setDirector("bacula-dir");
    97107                lrt.setResourceType("JobDefs");
Note: See TracChangeset for help on using the changeset viewer.