2 Replies Latest reply on Nov 10, 2009 12:14 PM by Peter Johnson

    HTTP 1.0 Config

    Jason Stratton Newbie

      Hello All,

      I'm trying to create a JBossWS client that uses the HTTP 1.0 protocol in order to prevent chunking, but I cannot seem to set the configuration. I've tried several variations of the following:

      URL securityURL = new File("C:/app_projects_jboss/temp/MM/standard-jaxws-client-config.xml").toURL();
      ((StubExt)ial).setSecurityConfig(securityURL.toExternalForm());
      ((StubExt)ial).setConfigName("HTTP 1.0 Client");
      


      All without success. I imagine I'm missing something simple. Can anyone illuminate me?

      Thank you
      Jason

        • 1. Re: HTTP 1.0 Config
          Jason Stratton Newbie

          By spewing out:

          System.out.println("Config File = " + ((StubExt)ial).getConfigFile());


          I was able to determine that it was looking for the standard-jaxws-client-config.xml in the META-INF directory. So I created a META-INF on the classpath and copied it there.

          It appears that setSecurityConfig() and setConfigName() did not change these values for me. No matter what values I set for these two properties, it always uses "META-INF/standard-jaxws-client-config.xml" and "Standard Client"

          So I was able to turn off the chunking by changing the http://org.jboss.ws/http#chunksize to 0 in the Standard Client element, but this seems less than ideal.

          What is my disconnect here?

          Alternately, I would like to set CHUNKED_ENCODING_SIZE to 0 programatically, but I have not been able to figure out how.

          Thank you all for your time and attention.
          Jason

          • 2. Re: HTTP 1.0 Config
            Peter Johnson Master

             

            turn off the chunking by changing the http://org.jboss.ws/http#chunksize to 0 in the Standard Client element

            Having dealt with this issue a few months ago, it would appear that this is the only way to do this. At least I could not come up with any alternatives.