[EMAIL PROTECTED] wrote:

how can i modify this code to disable http chunking if required?

After the "T port = (T) factory.create();", you can do

      Client client = ClientProxy.getClient(port);
      Conduit conduit = client.getConduit();
      if(conduit instanceof HTTPConduit) {
        HTTPClientPolicy policy = ((HTTPConduit)conduit).getClient();
        if(policy == null) {
          policy = new HTTPClientPolicy();
          ((HTTPConduit)conduit).setClient(policy);
        }

        // disable chunking
        policy.setAllowChunking(false);
      }

Ian

--
Ian Roberts               | Department of Computer Science
[EMAIL PROTECTED]  | University of Sheffield, UK

Reply via email to