on 05-10-2007 10:20 PM
I am trying to get a data service to give information to a Groovy program:
// Logon to XMII
def url = new URL('http://vc06martin:1080/Lighthammer/Illuminator?service=Personalization& ...
IllumLoginName=aguest&IllumLoginPassword=AGuest&Session=true')
println "URL=" + url
BufferedReader inStream = new BufferedReader(new InputStreamReader(url.openStream()));
def line = "";
while ((line = inStream.readLine())!= null)
println line
inStream.close()
// Should output the XML - just copied the URL from the Test button in the data service.
url = new URL('http://vc06martin:1080/Lighthammer/Illuminator?Connector=&Server ...
s&RowCount=100&Content-Type=text%2Fxml')
inStream = new BufferedReader(new InputStreamReader(url.openStream()));
line = ""
while (line = inStream.readLine()) println line
The result when running this is that I get the
<TITLE>SAP xMII Login Page</title>
served with the first URL. The second URL returns nothing.
<br>
What am I doing wrong?
<br>
The documentation under Guest Configuration/Guest Account is not very clear. It says use the user Guest (with password Guest) and it has to be linked to a real existing account. I did create an 'AGuest' account with AGuest as a password and configured it in the guest configuration.
I am guessing that if my program executes the URL
http://server/Lighthammer/Illuminator?service=Personalization&IllumLoginName=Guest&IllumLoginPassword=Guest&Ses
sion=true
and afterwords the URL from the dataservice test button, things should work.
What am I doing wrong?
Thanks!
Hi Martin,
try logging on using this URL:
http://vc06martin:1080/Illuminator/PortalLogin.jsp?&session=true&Guest=yes
Hope this helps,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Things are better now. Thanks. The URL you mention shows a different output (excerpt follows)
function initialize() {
// force focus to user name
document.Login.username.focus();
}
</SCRIPT>
<BODY onLoad="initialize();">
my second URL, the one that is suposed to retrieve the XML for the data service still returns the logon HTML. So the first URL does not seem to really log me in.
Martin,
Just forget the attempts at obtaining a session and simply append &IllumLoginName=Guest&IllumLoginPassword=Guest to your http request, which will give passthrough credentials for each servlet call such as:
If your request is coming from a server and not a client that will have a fixed IP address, another shortcut would be to add the other machine as an entry into your Trusted Servers. When a request comes from a known IP address, it becomes a 'trusted' inbound request and does not require credentials at all.
Be warned however that this is a short lived solution...xMII 12.0 uses Netweaver UME for authentication and this will eliminate the trusted servers.
Best Regards,
Jeremy Good
Jeremy - great suggestion! I should have had that idea myself! It should be stated that way in the documentation.
It doesn't stop here though: I now don't get the logon page any more, but the XML returned is
<?xml ...
<FatalError>Insufficient permission to access server Water MIT Postgres ...
I assume that I have to give the guest user access to my database server. So I went to data access in the security services 'tab' and added role guests to the 'roles assigned to' my DB server. Now it works!
User | Count |
---|---|
10 | |
5 | |
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.