cancel
Showing results for 
Search instead for 
Did you mean: 

MII 12 programatic login

Former Member
0 Kudos

I am attemting to login to MII 12.1 with a url containing the user name and password and redirect to a custom web page. The url I am using is of the following form:

http://172.18.2.167:50000/logon/logonServlet?redirectURL=/XMII/CM/MES/Login/initPage.html&j_user=sub...

I found this form in a thread on the forum and should work but it doesn't. I get the follwoing error:

__________________________________________________________________________

404 Not Found

SAP NetWeaver Application Server 7.11 / AS Java 7.11

Error: The requested resource does not exist.

Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jsts/home

Details: Go to main page of this application!

__________________________________________________________________________

Is this the correct format for a login url in 12.1? We are experiencing some server configuration/setup issues that could be contributing to the error but I can't find the "programmatic login" topic in the v12 help file to verify my syntax so I can determine if it is a syntax issue or a server issue.

Thanks for your help

...Sparks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think you can just go directly to your page with no redirect. Try this:

http://172.18.2.167:50000/XMII/CM/MES/Login/initPage.html&j_user=subop1a&j_password=initpass1

Former Member
0 Kudos

I get the same error. I just need to know my syntax is correct at this point. I don't trust the server build as it was done by another contractor and was their first MII server build.

Anyone else with an opinion on the URL syntax? Or, better yet, some documentation on it like there used to be in MII 11.5?

jamie_cawley
Advisor
Advisor
0 Kudos

Christian's response just has a typo in it, you need a ? after html.

[http://172.18.2.167:50000/XMII/CM/MES/Login/initPage.html?j_user=subop1a&j_password=initpass1|http://172.18.2.167:50000/XMII/CM/MES/Login/initPage.html?j_user=subop1a&j_password=initpass1]

Jamie

Former Member
0 Kudos

Excellent. It does indeed work, aside from my other server issues.

Thanks!