Quantcast
Channel: SCN : Unanswered Discussions - SAP Business One Integration Technology
Viewing all articles
Browse latest Browse all 373

B1if - httpCall atom with OAuth authorization for getting XML data from a server with a token

$
0
0

Hi Experts,

 

I have created a simple B1if scenario with a httpCall atom, but I have an issue on how to configure the oauth authorisation.

 

I would like to achieve is the following call:

     GET https://www.domain.com/path/to/reports?param1=25&user=ALL&param2=2 HTTP/1.1

     Authorization: OAuth xyzoauthencriptedtokentoaccessthedata=

     Content-Type: application/xml

 

I am trying the following parameters in the atom2.xml -> which is the automatically created atom for my httpCall atom.

 

<connect>

     <destProtocol>https</destProtocol>

     <destHost>www.domain.com</destHost>

     <destPort>443</destPort>

     <destPath>/path/to/reports</destPath>

     <query/>

     <proxyHost/>

     <proxyPort/>

     <method>GET</method>

     <authentification>basic</authentification>   <!-- but I'm not sure in this, under the header I added the token... -->

     <user/>

     <password/>

     <user2query/>

     <password2query/>

     <trustStoreURI/>

     <keyStoreURI/>

</connect>

..


..

<htta>

          <parid="httpheader.???"value="">
               <!-- optional - you can specify here your own http header definitions - multiple elements allowed -->
             Authorization: OAuth oauth_token=xyzoauthencriptedtokentoaccessthedata=

         </par>

         ..


Is here anyone who have managed to make something similar to work?


The other question where and how to put the query parameters? (?param1=25&user=ALL&param2=2)


In advance thank you for your help.

Laszlo


Viewing all articles
Browse latest Browse all 373

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>