[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WSDL and XML list no User/Password but API requires it
Hi Elaina,
Lets see if I can explain this well...
The stuff you put in your XML is "SOAP stuff", i.e. it's part of the
SOAP protocol. SOAP can, theoretically be transported over different
networks using different network protocols (though, honestly, I've never
seen it used with anything but HTTP -- but theoretically, it can be.)
In this case, though, you aren't trying to put a userid/password inside
the XML, because the web service doesn't call for that -- it's calling
for HTTP BASIC authetnication, which is not part of SOAP, it's part of
the HTTP network protocol itself.
Anyway, with that background... what you'll want to do is something
like this in HTTPAPI:
If you just want to hard code the userid/password you could do:
http_setauth( HTTP_AUTH_BASIC
: 'ELAINA'
: 'THEPASSWORD' );
You can also do it by somehow getting the userid/password into
variables, and then passing the variables to the http_setauth routine:
MyUserid = 'ELAINA';
MyPassword = 'THEPASSWORD';
http_setauth( HTTP_AUTH_BASIC
: MyUserid
: MyPassword );
The idea is to call this before each http_post or http_get or whatever
HTTP operations you do, and it will include the userid/password with
BASIC auth when it does the HTTP transfer.
Hope that helps.
On 2/1/2013 1:01 PM, CXEGallagher@xxxxxxxxxxxxx wrote:
I am currently working with a vendor to "consume" a web service.
They have provided documentation listing sample XML Requests, XML
Responses and their WSDL for those operations. They have stated in
their documentation that users are authenticating using HTTP Basic
Authentication (username/password).
Nowhere in their documentation do I see any notations of a
Username/Password however, going directly to their WSDL via the
internet, I am prompted for a Username/Password. I enter what they
have provided and can successfully view their WDSL in my browser
session. Nowhere can I see the username/password elements.
Going directly to their site and extracting the WDSL via soapUI, again
using the Username/Password provided by them, it doesn't show a
username/password element in the <Header> either.
Obviously I can't pass the username/password as part of my XML process
and need some type of a precursor event.
What am I missing? I am sure it is something simple.
Elaina
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------