cancel
Showing results for 
Search instead for 
Did you mean: 

Session Properties inside Transaction

Former Member
0 Kudos

Hi All,

I am trying to access session variable inside transaction as below.

1. Create new XML query

2. Set URL as xMII 11.5 --> http://<Server>/Lighthammer/PropertyAccessServlet?Mode=List and

12.0 --> http://<Server>:50000/XMII/PropertyAccessServlet?mode=Retrieve&PropName=TETSP&Content-Type=text/xml

3. execute query.

This working in xMII 12.0 version but it is not working in xMII 11.5.

It's is throwing following error.

Error Processing XMLQuery Premature end of file

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

-


XML document must have a top level element. Error processing resource 'http://<Server>/Lighthammer/OutputStorageServlet...

Is there any problem with URL setting in 11.5.

Edited by: sachinjadhavar on Oct 1, 2010 3:35 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

to read the session variable in your BLT, I guess it is still the best solution to use the autobind feature which is also available in the [MII 11.5|http://help.sap.com/saphelp_xmii115/helpdata/en/index.htm] (see your last thread).

The XML error may be caused by missing creadentials in the URL call (the login page may be returned). Try to add URL parameters IllumLoginName= and IllumLoginPassword=.

Michael

Former Member
0 Kudos

Hi Michael,

Thanks for quick reply.

I tried executing xml query with and without login credentials but still it is trhowing same error.

http://<Server>/Lighthammer/Login.jsp?IllumLoginName=<username>&IllumLoginPassword=<Password>&Sessio...

If i paste URL in explore address bar it gives correct result without login page.

but from Query Templae it throws error --> Error Processing XMLQuery Premature end of file

Also i tried with encoded URL in target

Without passing credentials it is qrking in 12.0 version but not in 11.5

Regards,

Sachin

Former Member
0 Kudos

Please try to add "Content-Type=text/xml" to the URL.

Michael

Former Member
0 Kudos

it throws same error

Former Member
0 Kudos

If you use thr URL incl. Content type text/xml in the explorer, does it show the xml correctly?

Former Member
0 Kudos

What I just saw:

In your URL at the end it is written "...PropertyAccessServlet?Mode%3DList". I get an error with this. Have you tried "...PropertyAccessServlet?Mode=List&Content-Type=text/xml" ?

Former Member
0 Kudos

Hi Michael ,

URL incl. Content type text/xml in the explorer gives correct result in xml format, but when i execute it from Query Template a it gives error.

I tried QT with "...PropertyAccessServlet?Mode=List&Content-Type=text/xml" but it throws same error.

It is working in 12.0 but not in 11.5.

I think some problem with URL.

Let me know if u have any working sample URL.

Former Member
0 Kudos

Please try the following one:

http://<; XMII Server Name>/servlet/PropertyAccessServlet?Mode=List

as described in the [SAP note 94405|https://service.sap.com/sap/support/notes/944005].

Hope this helps.

Michael