You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Michael Mole <mj...@us.ibm.com> on 2007/07/31 19:59:23 UTC

Axis2/C - USERNAME and PASSWORD

I'm looking for more information about AXIS2_USER_NAME and AXIS2_PASSWORD 
in axis2_const.h.  What are they used for, and how are they used?  I'm 
still trying to solve my issue of using Basic http Authentication with my 
web services, and these look like they may be the key.  Any help is 
greatly appreciated.

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710

Re: Axis2/C - USERNAME and PASSWORD

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Michael Mole wrote:
>
> Yes, that would be very helpful.
It is here: http://people.apache.org/~samisa/1.1.0-RC1/
Samisa...

-- 
Samisa Abeysinghe : WSO2 WSF/C
"http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services"


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
Yes, that would be very helpful.

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Dumindu Pallewela <du...@wso2.com> 
08/14/2007 12:29 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc

Subject
Re: Axis2/C - USERNAME and PASSWORD






Samisa Abeysinghe wrote:
> Dumindu Pallewela wrote:
>> We have not released Axis2/C after HTTP Authentication was added. You 
>> may use the current svn trunk [1] if you prefer.
> Lets pack a nightly build so that they could pick up the source. I can 
> even do an RC1 of 1.1 today.

+1

-Dumindu.


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Dumindu Pallewela <du...@wso2.com>.
Samisa Abeysinghe wrote:
> Dumindu Pallewela wrote:
>> We have not released Axis2/C after HTTP Authentication was added. You 
>> may use the current svn trunk [1] if you prefer.
> Lets pack a nightly build so that they could pick up the source. I can 
> even do an RC1 of 1.1 today.

+1

-Dumindu.


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Dumindu Pallewela wrote:
> We have not released Axis2/C after HTTP Authentication was added. You 
> may use the current svn trunk [1] if you prefer.
Lets pack a nightly build so that they could pick up the source. I can 
even do an RC1 of 1.1 today.

Samisa...

>
> -Dumindu.
>
> [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/c
>
> Michael Mole wrote:
>>
>> That's great news!  Is there a version where I should be able to pick 
>> up those changes?
>>
>> Thanks,
>> Mike
>>
>> Michael J Molé
>> Software Engineer
>> IBM Software Group - Rational
>> (781)676-2710
>>
>>
>> *Dumindu Pallewela <du...@wso2.com>*
>>
>> 08/13/2007 07:38 AM
>> Please respond to
>> "Apache AXIS C User List" <ax...@ws.apache.org>
>>
>>
>>     
>> To
>>     Apache AXIS C User List <ax...@ws.apache.org>
>> cc
>>     Michael Mole/Lexington/IBM@IBMUS
>> Subject
>>     Re: Axis2/C - USERNAME and PASSWORD
>>
>>
>>     
>>
>>
>>
>>
>>
>> Michael Mole wrote:
>>  >
>>  > I'm looking for more information about AXIS2_USER_NAME and
>>  > AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
>>  > they used?  I'm still trying to solve my issue of using Basic http
>>  > Authentication with my web services, and these look like they may 
>> be the
>>  > key.  Any help is greatly appreciated.
>>  >
>>
>> We have added HTTP basic authentication support for axis2/c client. All
>> you have to do is to set the two properties HTTP_AUTH_USERNAME and
>> HTTP_AUTH_PASSWD in your client code.
>>
>> Please refer to echo.c [1] for a sample of its usage.
>>
>> I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD
>> declarations as they are not being used. HTTP authentication related
>> declarations can be found in axis2_http_transport.h.
>>
>> Regards,
>> Dumindu.
>>
>> [1]
>> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup 
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>


-- 
Samisa Abeysinghe : WSO2 WSF/C
"http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services"


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Dumindu Pallewela <du...@wso2.com>.
We have not released Axis2/C after HTTP Authentication was added. You 
may use the current svn trunk [1] if you prefer.

-Dumindu.

[1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/c

Michael Mole wrote:
> 
> That's great news!  Is there a version where I should be able to pick up 
> those changes?
> 
> Thanks,
> Mike
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710
> 
> 
> *Dumindu Pallewela <du...@wso2.com>*
> 
> 08/13/2007 07:38 AM
> Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
> 
> 
> 	
> To
> 	Apache AXIS C User List <ax...@ws.apache.org>
> cc
> 	Michael Mole/Lexington/IBM@IBMUS
> Subject
> 	Re: Axis2/C - USERNAME and PASSWORD
> 
> 
> 	
> 
> 
> 
> 
> 
> Michael Mole wrote:
>  >
>  > I'm looking for more information about AXIS2_USER_NAME and
>  > AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
>  > they used?  I'm still trying to solve my issue of using Basic http
>  > Authentication with my web services, and these look like they may be the
>  > key.  Any help is greatly appreciated.
>  >
> 
> We have added HTTP basic authentication support for axis2/c client. All
> you have to do is to set the two properties HTTP_AUTH_USERNAME and
> HTTP_AUTH_PASSWD in your client code.
> 
> Please refer to echo.c [1] for a sample of its usage.
> 
> I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD
> declarations as they are not being used. HTTP authentication related
> declarations can be found in axis2_http_transport.h.
> 
> Regards,
> Dumindu.
> 
> [1]
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 
> 


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
That's great news!  Is there a version where I should be able to pick up 
those changes?

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Dumindu Pallewela <du...@wso2.com> 
08/13/2007 07:38 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc
Michael Mole/Lexington/IBM@IBMUS
Subject
Re: Axis2/C - USERNAME and PASSWORD






Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and 
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are 
> they used?  I'm still trying to solve my issue of using Basic http 
> Authentication with my web services, and these look like they may be the 

> key.  Any help is greatly appreciated.
>

We have added HTTP basic authentication support for axis2/c client. All 
you have to do is to set the two properties HTTP_AUTH_USERNAME and 
HTTP_AUTH_PASSWD in your client code.

Please refer to echo.c [1] for a sample of its usage.

I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD 
declarations as they are not being used. HTTP authentication related 
declarations can be found in axis2_http_transport.h.

Regards,
Dumindu.

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Dumindu Pallewela <du...@wso2.com>.
Michael Mole wrote:
> 
> Yes, that would be much appreciated.  Also, is it possible for me to
> submit these directly?  I was looking at the issue tracker, but couldn't
> find a way to do it.

You need to create an account in order to report issues in jira.

HTH,
Dumindu.

-- 
Dumindu Pallewela
http://blog.dumindu.com
GPG ID: 0x9E131672

WSO2 | http://wso2.com | "Oxygenating the Web Service Platform"


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
Thanks!  I've raised a JIRA for this one.  AXIS2C-716 

- Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Samisa Abeysinghe <sa...@wso2.com> 
10/03/2007 08:49 PM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc

Subject
Re: Axis2/C - USERNAME and PASSWORD






Michael Mole wrote:
>
> Yes, that would be much appreciated.  Also, is it possible for me to 
> submit these directly? 
Yes you can. Go to http://issues.apache.org/jira/browse/AXIS2C. You need 
to create an account for you there. Once you login, you can create the 
issues.

Samisa...

-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"
http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP
"


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Michael Mole wrote:
>
> Yes, that would be much appreciated.  Also, is it possible for me to 
> submit these directly? 
Yes you can. Go to http://issues.apache.org/jira/browse/AXIS2C. You need 
to create an account for you there. Once you login, you can create the 
issues.

Samisa...

-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
Yes, that would be much appreciated.  Also, is it possible for me to 
submit these directly?  I was looking at the issue tracker, but couldn't 
find a way to do it.

 - Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Samisa Abeysinghe <sa...@wso2.com> 
10/03/2007 01:32 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc

Subject
Re: Axis2/C - USERNAME and PASSWORD






Dumindu Pallewela wrote:
> Hi Mole,
>
> Currently the auth header is sent only if the server requests for
> it. So if your server sends a WWW-Authenticate:.... header when
> authentication failed at the first request, Axis2 will send another
> with the required header.
>
> However, I think we should have allowed the user to send the auth
> header without waiting for a failed response in the first place,
> because it is only an additional overhead, if the user already
> *knows* that the server requires basic auth, Somehow we missed it
> from 1.1 release :(
> 
Sounds like it is a good feature to have. Lets raise a Jira on this and 
fix it.

Samisa...

-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"
http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP
"


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Dumindu Pallewela wrote:
> Hi Mole,
>
> Currently the auth header is sent only if the server requests for
> it. So if your server sends a WWW-Authenticate:.... header when
> authentication failed at the first request, Axis2 will send another
> with the required header.
>
> However, I think we should have allowed the user to send the auth
> header without waiting for a failed response in the first place,
> because it is only an additional overhead, if the user already
> *knows* that the server requires basic auth, Somehow we missed it
> from 1.1 release :(
>   
Sounds like it is a good feature to have. Lets raise a Jira on this and 
fix it.

Samisa...

-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Dumindu Pallewela <du...@wso2.com>.
Hi Mole,

Currently the auth header is sent only if the server requests for
it. So if your server sends a WWW-Authenticate:.... header when
authentication failed at the first request, Axis2 will send another
with the required header.

However, I think we should have allowed the user to send the auth
header without waiting for a failed response in the first place,
because it is only an additional overhead, if the user already
*knows* that the server requires basic auth, Somehow we missed it
from 1.1 release :(

Regards,
Dumindu.

Michael Mole wrote:
> 
> I tried to run echo.c using the Axis2C 1.1 release, but I'm not seeing
> the basic http authorization in the http headers.  I'm expecting to see
> something like "Authorization: Basic YJKLa35".  I'm using tcp monitor to
> check the outgoing message (shown below).  Is there something else I
> have to do to get this to work?
>
> *This is my command:*
> C:\axis2c-src-1.1.0\build\deploy\bin\samples>echo.exe -auth user pass
> 
> *This is the outgoing message:*
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 512
> Content-Type: application/soap+xml;charset=UTF-8
> Host: localhost:9090
> 
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>    <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
>       <wsa:To>http://localhost:9091/axis2/services/echo</wsa:To>
>      
> <wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
>       <wsa:MessageID>4ecf636a-5637-4be9-afe4-80e80f0e3117</wsa:MessageID>
>    </soapenv:Header>
>    <soapenv:Body>
>       <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/services/echo">
>          <text>Hello World!</text>
>       </ns1:echoString>
>    </soapenv:Body></soapenv:Envelope>
> 
> Thanks,
> Mike
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710
> 
> 
> *Dumindu Pallewela <du...@wso2.com>*
> 
> 08/13/2007 07:38 AM
> Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
> 
> 
> 	
> To
> 	Apache AXIS C User List <ax...@ws.apache.org>
> cc
> 	Michael Mole/Lexington/IBM@IBMUS
> Subject
> 	Re: Axis2/C - USERNAME and PASSWORD
> 
> 
> 	
> 
> 
> 
> 
> 
> Michael Mole wrote:
>>
>> I'm looking for more information about AXIS2_USER_NAME and
>> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
>> they used?  I'm still trying to solve my issue of using Basic http
>> Authentication with my web services, and these look like they may be the
>> key.  Any help is greatly appreciated.
>>
> 
> We have added HTTP basic authentication support for axis2/c client. All
> you have to do is to set the two properties HTTP_AUTH_USERNAME and
> HTTP_AUTH_PASSWD in your client code.
> 
> Please refer to echo.c [1] for a sample of its usage.
> 
> I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD
> declarations as they are not being used. HTTP authentication related
> declarations can be found in axis2_http_transport.h.
> 
> Regards,
> Dumindu.
> 
> [1]
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 
> 


-- 
Dumindu Pallewela
http://blog.dumindu.com
GPG ID: 0x9E131672

WSO2 | http://wso2.com | "Oxygenating the Web Service Platform"


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
I tried to run echo.c using the Axis2C 1.1 release, but I'm not seeing the 
basic http authorization in the http headers.  I'm expecting to see 
something like "Authorization: Basic YJKLa35".  I'm using tcp monitor to 
check the outgoing message (shown below).  Is there something else I have 
to do to get this to work?

This is my command:
C:\axis2c-src-1.1.0\build\deploy\bin\samples>echo.exe -auth user pass

This is the outgoing message:
POST /axis2/services/echo HTTP/1.1
User-Agent: Axis2/C
Content-Length: 512
Content-Type: application/soap+xml;charset=UTF-8
Host: localhost:9090

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:To>http://localhost:9091/axis2/services/echo</wsa:To>
 <wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
      <wsa:MessageID>4ecf636a-5637-4be9-afe4-80e80f0e3117</wsa:MessageID>
   </soapenv:Header>
   <soapenv:Body>
      <ns1:echoString 
xmlns:ns1="http://ws.apache.org/axis2/services/echo">
         <text>Hello World!</text>
      </ns1:echoString>
   </soapenv:Body></soapenv:Envelope>

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Dumindu Pallewela <du...@wso2.com> 
08/13/2007 07:38 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc
Michael Mole/Lexington/IBM@IBMUS
Subject
Re: Axis2/C - USERNAME and PASSWORD






Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and 
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are 
> they used?  I'm still trying to solve my issue of using Basic http 
> Authentication with my web services, and these look like they may be the 

> key.  Any help is greatly appreciated.
>

We have added HTTP basic authentication support for axis2/c client. All 
you have to do is to set the two properties HTTP_AUTH_USERNAME and 
HTTP_AUTH_PASSWD in your client code.

Please refer to echo.c [1] for a sample of its usage.

I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD 
declarations as they are not being used. HTTP authentication related 
declarations can be found in axis2_http_transport.h.

Regards,
Dumindu.

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Dumindu Pallewela <du...@wso2.com>.
Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and 
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are 
> they used?  I'm still trying to solve my issue of using Basic http 
> Authentication with my web services, and these look like they may be the 
> key.  Any help is greatly appreciated.
>

We have added HTTP basic authentication support for axis2/c client. All 
you have to do is to set the two properties HTTP_AUTH_USERNAME and 
HTTP_AUTH_PASSWD in your client code.

Please refer to echo.c [1] for a sample of its usage.

I propose that we remove the AXIS2_USER_NAME and AXIS2_PASSWORD 
declarations as they are not being used. HTTP authentication related 
declarations can be found in axis2_http_transport.h.

Regards,
Dumindu.

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=markup

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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Stefano Pettini <sp...@users.sourceforge.net>.
Dinesh Premalal wrote:

> AFAIK, it is not implemented in Axis2/C. BTW if you have any
> requirement, did you ask on mailing list or did you raise a jira for a
> new feature. (If you have already done it please point us to there we
> could work on that).
>   
Just done, AXIS2C-656. I, and Micheal I suppose, thank you all in 
advance if you could implement it as soon as you can.

Cheers,
Stefano


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Stefano,

Stefano Pettini <sp...@users.sourceforge.net> writes:
> Dear Micheal,
>
> I'll have the same problem of yours very soon, since I need HTTP basic
> authentication, but it looks like not implemented for HTTP clients. If
> I'm wrong, I strongly welcome everybody to correct me :-) and point me
> out where to specify username and password.
AFAIK, it is not implemented in Axis2/C. BTW if you have any
requirement, did you ask on mailing list or did you raise a jira for a
new feature. (If you have already done it please point us to there we
could work on that).
>
> In 1.0.0 sources, looking in http_sender.c, where the HTTP request is
> built, you can find an axis2_http_sender_util_add_header call for
> every item the clients wants to put in the HTTP request header.
>
> According to HTTP, basic authentication is implemented by a client
> using the "Authorization" header, in the following way:
>
> Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
>
> The string "Authorization" is mapped to C constant
> AXIS2_HTTP_HEADER_AUTHORIZATION in axis2_http_transport.h, but looks
> like not used by any file, and there's no corresponding
> axis2_http_sender_util_add_header anywhere :-(
Yes, you almost there :)
> Yeah, the power of open source ... the power of reverse engineering
> :-) 
> ... the power of "looks like I'll have to implement it by myself" :-(
>
> Adding the header line looks like relatively easy, apart from the
> username and password encryption, but I don't know how integrate the
> thing in the Axis' framework correctly and in an elegant and
> consistent way.
At least you could try and send us a patch. We always welcome new
contributions. Don't worry about integrate in elegant and consistent
way. Because before committing your patch into the trunk one of the
developer will review. I'm sure that if you could understand up to
this point you could do the rest :).

I agree that we could add it quite easily, the thing is that without
any user requirements there is no point of doing it. (that is what I
believe). Until Michel talk about HTTP Basic Authentication , I didn't
see any thread relative to that subject (I might miss some of the
mails, please bear with me if I missed some). If there is a particular
Jira issue , there is a high possibility to fix it before a
release. *High possibility* means we have to do high priority things
first :)

thanks,
Dinesh
-- 
Dinesh Premalal
http://xydinesh.wordpress.com/
GPG ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Stefano Pettini <sp...@users.sourceforge.net>.
Dear Micheal,

I'll have the same problem of yours very soon, since I need HTTP basic 
authentication, but it looks like not implemented for HTTP clients. If 
I'm wrong, I strongly welcome everybody to correct me :-) and point me 
out where to specify username and password.

In 1.0.0 sources, looking in http_sender.c, where the HTTP request is 
built, you can find an axis2_http_sender_util_add_header call for every 
item the clients wants to put in the HTTP request header.

According to HTTP, basic authentication is implemented by a client using 
the "Authorization" header, in the following way:

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

The string "Authorization" is mapped to C constant 
AXIS2_HTTP_HEADER_AUTHORIZATION in axis2_http_transport.h, but looks 
like not used by any file, and there's no corresponding 
axis2_http_sender_util_add_header anywhere :-(

Yeah, the power of open source ... the power of reverse engineering :-) 
... the power of "looks like I'll have to implement it by myself" :-(

Adding the header line looks like relatively easy, apart from the 
username and password encryption, but I don't know how integrate the 
thing in the Axis' framework correctly and in an elegant and consistent way.

Cheers,
Stefano

Michael Mole wrote:
>
> Hey Manjula,
>
> My server is already set up to use basic http authentication using 
> Axis1 (Java) and Websphere Application Server.  It's in my C client in 
> which I need to provide my credentials, but cannot seem to figure out 
> how.  Is there a way to manually add the necessary http headers to the 
> request?
>
> Thanks,
> Mike
>
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


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


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
Hey Manjula,

My server is already set up to use basic http authentication using Axis1 
(Java) and Websphere Application Server.  It's in my C client in which I 
need to provide my credentials, but cannot seem to figure out how.  Is 
there a way to manually add the necessary http headers to the request?

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Manjula Peiris <ma...@wso2.com> 
08/01/2007 07:03 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc

Subject
Re: Axis2/C - USERNAME and PASSWORD






Hi Michael,

The constants AXIS2_USER_NAME and AXIS2_PASSWORD defined in
axis2_const.h are not in use. If you want Basic http Authentication you
can use Axis2/c with Apache. There is a httpd module for this .Please
see the section Deploying with Apache Http Server in the Axis2/C
mannual.
And Rampart/C also support soap message level Username and Password
support with http.

-Manjula.

On Tue, 2007-07-31 at 13:59 -0400, Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
> they used?  I'm still trying to solve my issue of using Basic http
> Authentication with my web services, and these look like they may be
> the key.  Any help is greatly appreciated. 
> 
> Thanks, 
> Mike 
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


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



Re: Axis2/C - USERNAME and PASSWORD

Posted by Manjula Peiris <ma...@wso2.com>.
Hi Michael,

The constants AXIS2_USER_NAME and AXIS2_PASSWORD defined in
axis2_const.h are not in use. If you want Basic http Authentication you
can use Axis2/c with Apache. There is a httpd module for this .Please
see the section Deploying with Apache Http Server in the Axis2/C
mannual.
And Rampart/C also support soap message level Username and Password
support with http.

-Manjula.

On Tue, 2007-07-31 at 13:59 -0400, Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
> they used?  I'm still trying to solve my issue of using Basic http
> Authentication with my web services, and these look like they may be
> the key.  Any help is greatly appreciated. 
> 
> Thanks, 
> Mike 
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


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