OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums OroPlatform OroPlatform – How do I? Questions Generate API WSS-Header for Kotlin

This topic contains 5 replies, has 4 voices, and was last updated by  joedenly 4 months, 3 weeks ago.

  • Creator
    Topic
  • #37924

    SkaiBoa
    Participant

    Hi there,

    I try to figure out how do I get a connection to the API for OroPlatform 3.1 for a Kotlin App.
    Here is what I’ve done:

    The problem is,that the strings for nonce and digest are just 10 chars long not as mentioned in the cookbook 28 and 24.

    Does anyone faces the same problem and found a solution ?

    • This topic was modified 6 months ago by  SkaiBoa.
    • This topic was modified 6 months ago by  SkaiBoa.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #37935

    Hello SkaiBoa.

    I’ve used following script to generate headers and it works fine (inspired by this post):

    And as a result I got following headers:

    I can guess that either something is with the way you are extracting a substring or SHA-1 hash is generated in binary form instead of hexadecimal.

    #37936

    Here I have traced nonce generation step by step – you can do the same and hopefully it may give you a clue of what was done wrong.

    Please let me know if it helped you with your issue.

    #38104

    SkaiBoa
    Participant

    Thank you very much for your reply. Finally I found a solution for getting access to the ORO-API from an Android App:

    #38107
    Michael
    Michael
    Keymaster

    You are most welcome.

    #38242

    joedenly
    Participant

    This is interesting to get the solution of this kotlin API, Fix Error code 0X0070002 helped me to solve the issue of API for OroPlatform 3.1 for a Kotlin App.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No