Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
set Basic128Rsa15 and User/Password on Xojo
thanks for update.
If I have not missed something, the only difference between the last two code samples is ReadValue vs. ReadMultipleValues. The ReadValue is, however, just a wrapper around ReadMultipleValues, so this difference in the code does not explain the difference in behavior. I suspect the reason is somewhere else.
Best regards
Please Log in or Create an account to join the conversation.
- kristof2015
-
- Offline
- Premium Member
-
- Posts: 11
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- kristof2015
-
- Offline
- Premium Member
-
- Posts: 11
- Thank you received: 0
Thank you for your response. I have tryed in many ways, egz.
Exception code 0: Status is not good: BadUserAccessDenied., (failed on "ReadValue")
What I do wrong?
Thank you,
Please Log in or Create an account to join the conversation.
As I wrote, there may be two issues - one is the communication security, and the other is the username/password.
Based on the error message you are getting (BadUserAccessDenied), let's start with the username/password first, because there is a chance that the communication security part is OK.
Here is the basic theory:
- you can set the user name and password in the UserIdentity.UserNameTokeInfo.UserName and .Password properties of the UAEndpointDescriptor.
- but in COM API (Xojo), there is no overload of the ReadValue method that would accept the UAEndpointDescriptor. You need to use ReadMultipleValues instead.
I do not have Xojo at hand right now, but here is VBScript example of putting together the UAEndpointDescriptor with username and password:
And here are VB6 and VBScript examples that use ReadMultipleValues.
VB6:
VBScript:
With this at hand, you should be able to put together the Xojo code for it.
Let me know if this helps
Please Log in or Create an account to join the conversation.
- kristof2015
-
- Offline
- Premium Member
-
- Posts: 11
- Thank you received: 0
Thanks or fast answer.
Following QuickOPC Xojo example I have:
' Create EasyOPC-UA component
Dim Client As New OleObject ("OpcLabs.EasyOpc.UA.EasyUAClient")
Dim OpcUrl As String = "opc.tcp://172.17.2.106:4840"
Dim Node As String = "nsu=SinumerikVarProvider;ns=2;s=/Bag/State/opMode"
Dim sResult As String
sResult = Client.ReadValue(OpcUrl, node)
And this works fine. But on server which has included "none" in security mode.
When Server has, in this case "Basic128Rsa15" or any as on picture, user and password, than I dont know haw to set it up in Xojo code. In result gave me OLEException:
"Exception code 0: Status is not good: BadUserAccessDenied., (failed on "ReadValue")"
How can I define this?
Thanks,
Kris
Please Log in or Create an account to join the conversation.
Have you studied the related documentation, mainly
opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...me.html#OPC-UA%20Security.html ?
If you did, and still have a specific problem, please explain the problem according to Rules for Forum Posts: www.opclabs.com/forum/announcements12/2365-rules-for-forum-posts .
Also, please be aware that application/communication security is separate from user security in OPC UA. Therefore, when you say "how to set Basic128Rsa15 and User/Password", it can mean many things.
It mean, for example, that the communication is secured using Basic128Rsa15, and on top of that, username/passwords authentication is used. Or, it can be that communication itself is not secured, but user still authenticate using username/password, and the token is secured using Basic128Rsa15. Clarify this as well. If you do not fully understand, that's fine too, just give us as much info as you can.
Best regards
Please Log in or Create an account to join the conversation.
Sent: Wednesday, December 12, 2018 1:52 AM
To: Z.
Subject: Ask for support
Dear Z.,
As until now we didn’t have problems with connect to OPC Server I didn’t contact for support.
Now Server is using Basic128Rsa15 And User/Password authentication.
Language we use is XOJO.
Can you please help how to set Basic128Rsa15 and User/Password on Xojo.
Thank you,
Best regards,
K.
Please Log in or Create an account to join the conversation.