axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saminda Abeyruwan <sami...@opensource.lk>
Subject Re: [Axis2] temp fix for NTML authentication & axiom serialization error
Date Fri, 09 Jun 2006 10:41:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeff, Dims, Paul and all,

To do NTLM Authentication one has to do the following now,

...
<snippet/>

HttpTransportProperties.NTLMAuthentication ntlmAuthentication =
                    new HttpTransportProperties().new NTLMAuthentication();

            ntlmAuthentication.setUsername("axis2");
            // other credentials.

            options.setProperty(

org.apache.axis2.transport.http.HTTPConstants.NTLM_AUTHENTICATION,
                    ntlmAuthentication);

...

To do Basic Authentication one has to do the following,

...
<snippet/>

HttpTransportProperties.BasicAuthentication basicAuthentication =
                    new HttpTransportProperties().new BasicAuthentication();

            basicAuthentication.setUsername("axis2");
            basicAuthentication.setPassword("axis2");
            options.setProperty(

org.apache.axis2.transport.http.HTTPConstants.BASIC_AUTHENTICATION,
                    basicAuthentication);
...

Jeff, please try it and let us know the results. Will update the docs asap.

Thank you

Saminda

Jeff Ling wrote:
> Hi Dims,
> 
> Thanks a lot!
> 
> When would it be patched? And what's the plan for the next stable release?
> 
> Thanks!
> 
> Jeff
> 
> On 6/8/06, *Davanum Srinivas * <davanum@gmail.com
> <mailto:davanum@gmail.com>> wrote:
> 
>     Jeff,
> 
>     Yep. that's the one. Basically http client tries to send the data and
>     when it fails tries to send it again. serializeAndConsume by design
>     does not cache the information (does not build the om tree). This is
>     good news just replacing one for the other. We'll take this account
>     and may be add a flag for this behavior.
> 
>     Thanks,
>     dims
> 
>     On 6/8/06, Jeff Ling <jeffling@google.com
>     <mailto:jeffling@google.com>> wrote:
>     > Hi Paul,
>     >
>     > I assume you meant the
>     >                     element.serializeAndConsume(bytesOut, format);
>     > in         public byte[] writeBytes()
>     >
>     > right? No, that didn't work. However, following your lead, I
>     changed the
>     > same function in
>     >
>     >         private void handleOMOutput(OutputStream out, boolean
>     doingMTOM)
>     > throws XMLStreamException {
>     >             format.setDoOptimize(doingMTOM);
>     >
>     >             element.serializeAndConsume (out, format);
>     >         }
>     >
>     > to
>     >
>     >         private void handleOMOutput(OutputStream out, boolean
>     doingMTOM)
>     > throws XMLStreamException {
>     >              format.setDoOptimize(doingMTOM);
>     >              element.serialize(out, format);
>     >          }
>     >
>     > That fixed it. Maybe we are using different versions so the line
>     count is
>     > different? Please confirm.
>     >
>     > This is great!
>     >
>     > Jeff
>     >
>     >
>     > On 6/8/06, Paul Fremantle <pzfreo@gmail.com
>     <mailto:pzfreo@gmail.com>> wrote:
>     > > Jeff
>     > >
>     > > We have an idea :-) Can you help us test if its any good?
>     > >
>     > > Can you please try this fix:
>     > >
>     > > At line 194 in
>     > org.apache.axis2.transport.http.SOAPOverHTTPSender.
>     > >
>     > > Please change
>     > > element.serializeAndConsume (out, format); to
>     > > element.serialize(out, format);
>     > >
>     > > If that works for you then we can craft a proper fix around this.
>     > >
>     > > Thanks
>     > >
>     > > Paul
>     > >
>     > > --
>     > > Paul Fremantle
>     > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>     > >
>     > > http://bloglines.com/blog/paulfremantle
>     <http://bloglines.com/blog/paulfremantle>
>     > > paul@wso2.com <mailto:paul@wso2.com>
>     > >
>     > > "Oxygenating the Web Service Platform", www.wso2.com
>     <http://www.wso2.com>
>     > >
>     >
>     >
> 
> 
>     --
>     Davanum Srinivas : http://wso2.com/blogs/
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>     <mailto:axis-dev-unsubscribe@ws.apache.org>
>     For additional commands, e-mail: axis-dev-help@ws.apache.org
>     <mailto:axis-dev-help@ws.apache.org>
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFEiVBdYmklbLuW6wYRAuTXAJwK6LPFvAduT/GMRraFAA8EIRh0iwCY3DBi
rnkK5RBPaT0ZdGDSlJTRVw==
=S+ml
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message