ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by  Tyler 1 day, 15 hours ago.

  • Creator
    Topic
  • #39522

    Tyler
    Participant

    Hi,

    I got one ORCRM and one ORCOMMERCE.
    On my orocommerce, I create some API.

    So, I would like to request these API from my OROCRM.
    But I dont know how to be authenticate from orocrm to orocommerce.

    I know how to generate a wsse header in locale mode in cli with command line.

    So on orcrm I can generate the own wsse and same on orocommerce.

    But i dont know how to generate the wsse header of orocommerce from orocrm.

    Can you help me plz.

    Thx in advance.

    Tyler.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #40336

    jderdziak
    Participant

    Hello Tyler,

    You need to pass it through the header. Here you can find more details:

    Web Services API

    Best regards
    Jakub

    #40384

    Tyler
    Participant

    So, I try, to generate my authenticate orocrm to orocommerce with wsse header in local like that :

    How to use WSSE authentication

    But I always got a 401, like if authenticate didn’t works.

    So I try with postman and the header generated by my code. It works well.
    May are they something else to do ?
    My I didn’t use correctly Guzzle ?

    • This reply was modified 3 days, 3 hours ago by  Tyler.
    #40395

    Tyler
    Participant

    SO, the problem is from guzzle.
    In my OroCrm, the is guzzle version is v3.7.4
    And this version set by default the CURLOPT_RETURNTRANSFER at false.
    But we need to pass it at true.
    Then I used another lib “romanpitak/php-rest-client v1.2.1” and it’s works easily !

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

You must be logged in to reply to this topic.