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 Peter Bradshaw <fl...@gmail.com> on 2004/07/16 18:31:26 UTC
Stub::setPassword, Stub::setUsername.
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")
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.
Re: Stub::setPassword, Stub::setUsername.
Posted by Alexei Dets <ad...@idsk.com>.
Hi!
On Monday 19 July 2004 15:01, Peter Bradshaw wrote:
> 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
You are not alone :-)
I have exactly the same problem - for some reason the value becomes quoted :-(
Alexei
Re: Stub::setPassword, Stub::setUsername.
Posted by Samisa Abeysinghe <sa...@yahoo.com>.
--- Peter Bradshaw <fl...@gmail.com> wrote:
> 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="
>
In the stubBase sample in tests/stubTest a header is set like:
ws.setTransportProperty("Accept-Language", "da, en-gb;q=0.8, en;q=0.7");
where 'ws' is the stub object.
I do not get get the value quoted:
Accept-Language: da, en-gb;q=0.8, en;q=0.7
May be something else is causing the problem.
Samisa...
> 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
> <sa...@yahoo.com> wrote:
> > --- Peter Bradshaw <fl...@gmail.com> 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/
> >
> >
>
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
Re: Stub::setPassword, Stub::setUsername.
Posted by Peter Bradshaw <fl...@gmail.com>.
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
<sa...@yahoo.com> wrote:
> --- Peter Bradshaw <fl...@gmail.com> 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/
>
>
Re: Stub::setPassword, Stub::setUsername.
Posted by Samisa Abeysinghe <sa...@yahoo.com>.
--- Peter Bradshaw <fl...@gmail.com> 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/