Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 28857 invoked from network); 19 Jul 2004 19:01:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jul 2004 19:01:12 -0000 Received: (qmail 45980 invoked by uid 500); 19 Jul 2004 19:01:11 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 45865 invoked by uid 500); 19 Jul 2004 19:01:11 -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 45845 invoked by uid 99); 19 Jul 2004 19:01:10 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_BY_IP,SB_NEW_BULK,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [64.233.170.198] (HELO mproxy.gmail.com) (64.233.170.198) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 19 Jul 2004 12:01:07 -0700 Received: by mproxy.gmail.com with SMTP id d5so723278rng for ; Mon, 19 Jul 2004 12:01:05 -0700 (PDT) Received: by 10.38.181.43 with SMTP id d43mr282160rnf; Mon, 19 Jul 2004 12:01:05 -0700 (PDT) Message-ID: <991db9fe04071912015167950e@mail.gmail.com> Date: Mon, 19 Jul 2004 12:01:05 -0700 From: Peter Bradshaw To: Apache AXIS C User List Subject: Re: Stub::setPassword, Stub::setUsername. In-Reply-To: <20040719110723.47607.qmail@web40611.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040719110723.47607.qmail@web40611.mail.yahoo.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cool, thanks for getting back to me. I had tried using setTransportProperty but for some reason the authorization info got quoted like this: Authorization: "Basic dXNlcjM6cGFzczM=" I haven't investigated much, but I was getting login errors as a result. There may be another issue. Thanks again for the reply. On Mon, 19 Jul 2004 04:07:23 -0700 (PDT), Samisa Abeysinghe wrote: > --- Peter Bradshaw wrote: > > First of all, I apologise if this question is excessively newbie-ish. > > I'm diving head first into axis and soap, having only started with it > > all this week. > > > > Luckiily much of the work has been done for me, but unfortunately it's > > in Java and I'm in a c++ environment. So far the process has been ok, > > but I've hit a snag. > > > > The java source given includes calls to: > > > > ((Stub) fred).setUsername("username") > > ((Stub) fred).setPassword("password") > > In Axis Java, the above method calls would result in an HTTP header: > Authorization: Basic dXNlcjM6cGFzczM= > > However Axis C++ does not have support for this. A workaround would be to set the HTTP header > using setTransportProperty method. For this you may have to compute the hash (or any other > algorithm) using the plaintext username and password. > > It will be a good TODO for a future release of Axis C++ to support username and password at stub > level. > > Samisa... > > > > but unfortunately I can't find eqivalents in Axis C++. (I'm using 1.2). > > > > I'm writing a SOAP client. > > > > Any pointers greatfully received. > > > > Pete. > > > > > __________________________________ > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! > http://advision.webevents.yahoo.com/yahoo/votelifeengine/ > >