[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

This page requires userid & password



This  page requires userid & password usually just means you need to use the userid and password logic.  But since neither of the examples require userid and password, it is most likely a proxy that is calling for you to authenticate. You can either login in to the proxy or you have the network people create a "hole" for the IBMi to get out. For proxy support, see the EXAMPLE1 in the BETA. There are comments about how to use a proxy.

Helpful to debugging if you include the debug file that HTTPAPI can generate.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Meynard Bautista
Sent: Wednesday, May 04, 2011 8:50 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: HTTPAPI Only SOAP 1.1 or SOAP 1.2 messages are supported in the system

Hi Guys, 
Consider me as also being a HTTPAPI newbie.
 
I've been trying out the GEOIP and the EXCHRATE examples and I've been getting 'This  page requires userid & password'.
 
I'm running it on V5R1 and I've seen somewhere that GSK_SERVER_AUTH_TYPE is not available and V5R2 and prior. Is this the cause or there's something else? 
 
Any help from the forum is much appreciated.
 
Thanks,
Meynard

--- On Wed, 5/4/11, ronnie <ronnie@xxxxxxxxxxxxxxxxxx> wrote:


From: ronnie <ronnie@xxxxxxxxxxxxxxxxxx>
Subject: RE: HTTPAPI Only SOAP 1.1 or SOAP 1.2 messages are supported in the system
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wednesday, May 4, 2011, 7:17 AM


Hi Charles/Scott.

See, I told you I was a newbie. :)
Correct me if I am wrong again. 
In other words in his original message he is using http://www.w3.org/2005/08/soap/envelope/ as the soap-env
And he should be using
http://schemas.xmlsoap.org/soap/envelope/ for soap 1.1
or 
http://www.w3.org/2003/05/soap-envelope for soap 1.2

Irrespective of which soap tag he uses.

Thanks
Ronnie



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, May 04, 2011 7:19 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: HTTPAPI Only SOAP 1.1 or SOAP 1.2 messages are supported in the system

Hi Ronnie,

Bear in mind that the namespace prefix (SOAP vs SOAP12 in your example) 
doesn't mean much by itself.  It also has to point to the proper URI for 
SOAP 1.1 or 1.2

The following three XML tags are exactly equivalent:

<SOAP:Envelope xmlns:SOAP="http://www.w3.org/2003/05/soap-envelope";>

<SOAP12:Envelope xmlns:SOAP12="http://www.w3.org/2003/05/soap-envelope";>

<BobsYourUncle:Envelope 
xmlns:BobsYourUncle="http://www.w3.org/2003/05/soap-envelope";>

The part that matters is NOT the "SOAP" or "SOAP12" or "BobsYourUncle". 
The part that matters is the http://www.w3.org/2003/05/soap-envelope. 
The SOAP, SOAP12, and BobsYourUncle in the preceding examples are all 
placeholders for the http://www.w3.org/2003/05/soap-envelope URI.  Since 
they all point to the same URI, they are equivalent.

In fact, if I deliberately wanted to be confusing, I could do this:

<SOAP12:Envelope xmlns:SOAP12="http://schemas.xmlsoap.org/soap/envelope/";>

Notice the URI is the URI for SOAP 1.1.  The preceding example is 
actually SOAP 1.1 (Despite the name 'SOAP12')  Likewise, I could do this:

<SOAP11:Envelope xmlns:SOAP11="http://www.w3.org/2003/05/soap-envelope";>

Despite my use of the deliberately confusing name (SOAP11), it's 
actually SOAP version 1.2. It's the URI that counts, not the prefix.


On 5/3/2011 10:03 AM, ronnie wrote:
> Hi Charles.
>
> I am also a very, very big newbie with HTTPAPI and the SOAP environment myself but I might be able to help.
>
> Change your "xmlns:SOAP-ENV="[1]http" to "xmlns:SOAP="[1]http" for version 1.1 or "xmlns:SOAP12="[1]http" for version 1.2 depending on which one you want to use.
>
> Also similarly change your soap headers accordingly.
> + '<SOAP:Header/>'
> + '<SOAP:Body>'
> +'</SOAP:Body>'
> or
> + '<SOAP12:Header/>'
> + '<SOAP12:Body>'
> +'</SOAP12:Body>'
>
>
> Basically change wherever you have "SOAP-ENV" to "SOAP" or "SOAP12"
>
> Regards
> Ronnie
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------