Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 35715 invoked from network); 2 Oct 2007 16:16:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 16:16:51 -0000 Received: (qmail 32065 invoked by uid 500); 2 Oct 2007 16:16:40 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 32051 invoked by uid 500); 2 Oct 2007 16:16:40 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 32040 invoked by uid 99); 2 Oct 2007 16:16:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 09:16:40 -0700 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mjmole@us.ibm.com designates 32.97.182.141 as permitted sender) Received: from [32.97.182.141] (HELO e1.ny.us.ibm.com) (32.97.182.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 16:16:40 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l92GGJYQ016832 for ; Tue, 2 Oct 2007 12:16:19 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l92GGJZq693734 for ; Tue, 2 Oct 2007 12:16:19 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l92GGJOW005158 for ; Tue, 2 Oct 2007 12:16:19 -0400 Received: from d01ml253.pok.ibm.com (d01ml253.pok.ibm.com [9.56.227.127]) by d01av03.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l92GGJSn005151 for ; Tue, 2 Oct 2007 12:16:19 -0400 In-Reply-To: <46C042D0.80502@wso2.com> To: "Apache AXIS C User List" MIME-Version: 1.0 Subject: Re: Axis2/C - USERNAME and PASSWORD X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Michael Mole Date: Tue, 2 Oct 2007 12:16:17 -0400 X-MIMETrack: Serialize by Router on D01ML253/01/M/IBM(Release 7.0.2FP2HF51 | June 19, 2007) at 10/02/2007 12:16:19, Serialize complete at 10/02/2007 12:16:19 Content-Type: multipart/alternative; boundary="=_alternative 005961D685257368_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 005961D685257368_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 something like "Authorization: Basic YJKLa35". I'm using tcp monitor to=20 check the outgoing message (shown below). Is there something else I have=20 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=3DUTF-8 Host: localhost:9090 http://localhost:9091/axis2/services/echo http://ws.apache.org/axis2/c/samples/echoString 4ecf636a-5637-4be9-afe4-80e80f0e3117 Hello World! Thanks, Mike Michael J Mol=E9 Software Engineer IBM Software Group - Rational (781)676-2710 Dumindu Pallewela =20 08/13/2007 07:38 AM Please respond to "Apache AXIS C User List" To Apache AXIS C User List cc Michael Mole/Lexington/IBM@IBMUS Subject Re: Axis2/C - USERNAME and PASSWORD Michael Mole wrote: >=20 > I'm looking for more information about AXIS2=5FUSER=5FNAME and=20 > AXIS2=5FPASSWORD in axis2=5Fconst.h. What are they used for, and how are= =20 > they used? I'm still trying to solve my issue of using Basic http=20 > 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=20 you have to do is to set the two properties HTTP=5FAUTH=5FUSERNAME and=20 HTTP=5FAUTH=5FPASSWD in your client code. Please refer to echo.c [1] for a sample of its usage. I propose that we remove the AXIS2=5FUSER=5FNAME and AXIS2=5FPASSWORD=20 declarations as they are not being used. HTTP authentication related=20 declarations can be found in axis2=5Fhttp=5Ftransport.h. Regards, Dumindu. [1]=20 http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/= echo.c?view=3Dmarkup --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org --=_alternative 005961D685257368_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable
I tried to run echo.c using the Axis= 2C 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;c= harset=3DUTF-8
Host: localhost:9090

<soapenv:Envelope xmlns:soapenv= =3D"http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header xmln= s:wsa=3D"http://www.w3.org/2005/08/addressing">
      <wsa:To>h= ttp://localhost:9091/axis2/services/echo</wsa:To>
      <wsa:Action&= gt;http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
      <wsa:Message= ID>4ecf636a-5637-4be9-afe4-80e80f0e3117</wsa:MessageID>
   </soapenv:Header>=
   <soapenv:Body>
      <ns1:echoStr= ing xmlns:ns1=3D"http://ws.apache.org/axis2/services/echo">
         &l= t;text>Hello World!</text>
      </ns1:echoSt= ring>
   </soapenv:Body>&l= t;/soapenv:Envelope>

Thanks,
Mike

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



Dumindu Pallewela <= ;dumindu@wso2.com>

08/13/2007 07:38 AM
Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org>

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





Michael Mole wrote:
>
> I'm looking for more information about AXIS2=5FUSER=5FNAME and
> AXIS2=5FPASSWORD in axis2=5Fconst.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=5FAUTH=5FUSERNAME and
HTTP=5FAUTH=5FPASSWD in your client code.

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

I propose that we remove the AXIS2=5FUSER=5FNAME and AXIS2=5FPASSWORD
declarations as they are not being used. HTTP authentication related
declarations can be found in axis2=5Fhttp=5Ftransport.h.

Regards,
Dumindu.

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

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


--=_alternative 005961D685257368_=--