cancel
Showing results for 
Search instead for 
Did you mean: 

WSMessageListener authentication

Former Member
0 Kudos

Hello everybody,

We are trying to post XML Data from a Wonderware Industrial Application Server Installtion onto the MII Message Services:

http://<miiserver>:<port>/XMII/Illuminator?service=WSMessageListener&name=<name>&ContentType=text/xm...

Unfortunately, without success. My first idea was that this is an authentication issue. Do we have to pass user and password in the url of the http post? If yes, what are the exact url parameters?

Best Regards,

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

agentry_src
Active Contributor
0 Kudos

Hi Matthias,




To have the message listener queue and process an XML document, you can post the XML document to the WSMessageListener service. The Name property maps to the Message Name property in the Processing Rule Editor screen.

Post the XML document in the body of the message to the URL:

http://<server>:<port>/XMII/Illuminator?service=WSMessageListener&mode=WSMessageListenerServer&NAME=<UniqueMessageName>

The SAP Java Resource Adapter (SAP JRA) server is used to connect to SAP ERP Central Component (SAP ECC) to receive remote function calls (RFC) and IDocs. You can use the asynchronous HTTP interface to post data to SAP MII for asynchronous transaction processing.


I think you may have some case/syntax issues. And I would also test it with passing the username and pwd in the url (not secure, but lets check whether security is an issue).

Regards,

Edited by: Michael Appleby on Apr 26, 2011 1:09 PM

Former Member
0 Kudos

Hi Michael,

thank you for your reply. I've already tested the URL using an http post action block from the MII workbench, and it turned out that the url works fine. Therefore, I think the issue is the authentication from the remote Wonderware installation. Do you know the exact names of the url parameters that are used to passing username and password?

Thank you.

Matthias

agentry_src
Active Contributor
0 Kudos

Hi Matthias,

Just tack on the following to the url:





&IllumLoginName=<username>&IllumLoginPassword=<password>&session=true



Most of this information is available thru SAP MII Help, but google will also find it pretty quickly.

Good luck!

Mike

Former Member
0 Kudos

Hi Michael,

thank you for your help. I do normally check the documentation, unfortunately I do not agree that you can find all the things you need in the documentation. In the MII world, there are different user/password parameters (IlluminLoginName, j_user, maybe more?), and since I don't know what our current problem is it's not a good strategy to try all combinations, it's better ask somebody who has already done this successfully

I've made an experiment: I've posted an XML from one MII Server to another, and I didn't have to provide username and password to get the message delivered. Do you know what's going on here? Seems this service doesn't need login parameters? I'm a bit puzzled...

However, I will try the IlluminLoginName and IlluminLoginPassword approach with my colleagues responsible for our Wonderware installations and let you know whether it works this way.

Thank you!

Matthias

agentry_src
Active Contributor
0 Kudos

Hi Matthias,

I generally find that google will find the topics of interest in SDN faster than most other methods, so that is usually the path I follow. It is also not constrained by the default last 90 days in the SDN search engine, so you don't have to run it twice in a row. I generally use SDN first myself.

There is always room for improvement in any help system. But with the MII Forum, there is a pool of knowledgeable folks available to help.

I also forgot to remove the session property from the url script I passed before. That should be set to false, not true.

Good luck,

Mike

Edited by: Michael Appleby on Apr 26, 2011 3:38 PM

agentry_src
Active Contributor
0 Kudos

Forgot to address your other question.

But first, what version and build of MII are you working in?

You may also want to take a look at this Forum thread:

[;

Thanks,

Mike

Edited by: Michael Appleby on Apr 26, 2011 4:01 PM

Former Member
0 Kudos

Hi Michael,

we are now on 12.0.9 Build(23) with our test- and production system. I've posted the XML message from a playground system on version 12.2.2 Build(216) (we use this system for the MII 12.2 Ramp-Up) to our MII test system which is on 12.0.9.

Regards,

Matthias

Former Member
0 Kudos

Hi Matthias,

Try the following URL format to post message from MES to MII.In your URL , you are missing mode,user name and password.

http://<<MIIServer>>:<<Port>>/XMII/Illuminator?service=WSMessageListener&mode=WSMessageListenerServe... TargetMIIServer>>&IllumLoginPassword=<<password>>&content-type=text/xml

Regards

Rahul Vijaywargiya

agentry_src
Active Contributor
0 Kudos

Hi Matthias,

Do I understand correctly that it works from one MII server to another, but not from an external application?

And that from one MII server to the other, the ID and pwd are not needed? (I suspect that has something to do with NetWeaver and the UME).

Regards,

Mike

Former Member
0 Kudos

Hello,

The http post from Wonderware Applicatio Server to the MII WSMessageListener Service works now, providing the parameters IlluminLoginName and IlluminLoginPassword solved the problem.

Yes I was able to use the WSMessageListener Service between different MII Servers without IlluminLoginName and IlluminLoginPassword, but I assume that either there was an existing session or that our SSO implementation took care of the login.

Best Regards,

Matthias

Answers (0)