OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums 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 5 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • 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 5 years, 3 months ago by  SkaiBoa.
    • This topic was modified 5 years, 3 months ago by  SkaiBoa.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #37935

    Yevhen Shyshkin
    Participant

    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

    Yevhen Shyshkin
    Participant

    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
    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)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top