After further investigation into the application that is generating the web service that I'm trying to access with TBL, here is what I've found.
You call the web service using a call like www.example.com/service&parms... where you are prompted for UID and PWD. The web service then returns the results and simultaneously redirects your URL to something like www.example.com:51113/service... This is verified using a browser to talk to the webservice. According to the vendor, the web service is configured such that you only have to provide login credentials once since it maintains your session unless you are idle for too long. This is beneficial since I can foresee calling it multiple times during a single SM script. Is TBL configured to deal with this situation? In this specific case, the vendor is willing to modify the web service but if I hit it again, I may not be able to work around it. Thanks, Tim On Tue, Aug 30, 2011 at 2:21 PM, Tim Smith <[email protected]> wrote: > Hi Bob, > > I'm running TBCME 3.5.0 on Win 7/64. > > The web service is part of another none-semantic system. The > authentication is local to the server. It does not use LDAP. Is that what > you mean by "basic authentication"? > > The user ID has a period in it but I don't think that should cause a > problem. > > Is there any logging that I can activate that would show what is being > transmitted to the web service? I'm also trying to get access to the server > to see if there is anything in its log files. > > Thanks, > > Tim > > > On Tue, Aug 30, 2011 at 11:12 AM, Bob Ducharme > <[email protected]>wrote: > >> Tim,**** >> >> ** ** >> >> It should work as you describe. I just tried this with TBCME 3.5.1 under >> XP, and when I ran the script the ImportXMLFromURL module asked me for my >> username and password and after I entered them it retrieved the XML file >> that I asked for.**** >> >> ** ** >> >> Can you tell me the release of TBC you’re using, the operating system, and >> anything more about the web service that you’re trying to retrieve the data >> from (e.g. whether it’s using basic authentication) so that I can try to >> reproduce the issue you’re having?**** >> >> ** ** >> >> Thanks,**** >> >> ** ** >> >> Bob DuCharme**** >> >> TopQuadrant**** >> >> ** ** >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Tim Smith >> *Sent:* Tuesday, August 30, 2011 10:01 AM >> *To:* [email protected] >> *Subject:* [topbraid-users] Authenticating to a Web Service in SM**** >> >> ** ** >> >> Hi, >> >> I'm trying to access a web service that requires authentication using the >> ImportXMLFromURL module in SM. When I run the script, I'm prompted for the >> uid/pwd which I enter. However, authentication always fails. If I use the >> same URL to access the web service using a browser and enter the same >> credentials, it works as expected. >> >> Are there settings in TBC-ME that control authenticating to a web >> service? I'm confused why it would work via a browser but not TBC-ME. >> >> Thanks, >> >> Tim**** >> >> -- >> You received this message because you are subscribed to the Google >> Group "TopBraid Suite Users", the topics of which include TopBraid >> Composer, >> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. >> To post to this group, send email to >> [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/topbraid-users?hl=en**** >> >> -- >> You received this message because you are subscribed to the Google >> Group "TopBraid Suite Users", the topics of which include TopBraid >> Composer, >> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. >> To post to this group, send email to >> [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/topbraid-users?hl=en >> > > -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
