on 03-24-2011 12:40 AM
Hi Experts,
Clearly I'm missing something, but can't figure out what. Perhaps someone can help me...
Am using 12.0.7. To simulate my actual problem, I created a simple stub transaction with 2 action blocks: an HTML Loader action block that loads a report from the server and outputs resulting HTML file to a data file.
If I run this from the inside the Workbench I get an HTML file as expected.
But, if I create a schedule that executes this same transaction, the HTML file returned is BLANK (as in stringlength(StringContent) = 0).
Can anybody offer any insights? Is this a security-related thing?
Thanks in advance,
Dave
Hi,
I had faced a similar issue with http post action.
The thing is that the Loader action needs a authentication method, When the txn is run in the workbench it will fetch the file because your user already has a valid web session active. But when it is run through sceduler it will not have a valid session, so if you configure authentication via credential alias it will work.
This worked for me.
Thanks,
Obu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jeremy: I'm calling the following URL:
server://logon/logonServlet?redirectURL=/XMII/Illuminator?%3FReportType%3D1%26QueryTemplate..........text%2Fhtml&j_user=<myUsername>&j_password=<myPassword>
where myUsername and myPassword are hardcoded temporarily. I've tried adding credentials to the HTML Loader action. As far as I can tell, I'm performing all of the authentication best that I can. Does the "server://" switch lose context when run in this manner? As I mentioned, the TRX works fine when I run it through the Workbench, so the URL syntax is valid at least in that context.
Obu: I'm using 12.0, not sure that I can create a credential alias (like 12.1?). Or if I did then how would i apply it to the schedule or the action block in the TRX. Can you explain?
Thanks again!
Dave
Yeah, thanks Christian. Sure enough, the "server://" didn't work via a scheduled transaction.
I guess that it results for me to create a Global Transaction Variable to store the LOCAL server/port then call that dynamically in the scheduled transaction. This seems a little clunky, since I'll need to EITHER change this Global Variable as part of the promotion (DEV -> QA -> PROD) OR include the server as an input parameter to the transaction to be called from the scheduler. How did you resolve this?
Thanks again.
It sounds like you're on the right track. I think the reason the server:// prefix doesn't work is that when running the scheduled job it doesn't have the http(s) session to determine server port like it does when you run from the WB. Not that unlike the credential/session issue.
If the NW server port configurations are consistent within the customer landscape you may be able to simply use http://localhost:port since localhost will resolve on the fixed port (just no free security pass like older versions with trusted servers).
The WB has a user session, whereas the Scheduled job does not.
Do you have a user / pwd combination in the Scheduled job (like a Run As account)?
Any way to make the loader request with authorization?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeremy,
Yes, I do have a "run as" user in the Schedule, but it doesn't seem to make much difference in my case.
Not sure what you mean by "make the loader request authorization". How do I do that? I tried adding a Username and Password transaction variables (in addition to having the scheduler user) and pass those from the scheduler parameters through into the Loader authorization, but that doesn't seem to make a difference either.
I'm kind of stuck at this point. Any further thoughts will be much appreciated.
Dave
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.