cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Communicating with DI-Server through JavaScript (NodeJS with Express)

Former Member
0 Likes
1,478

Hello experts,

i am looking for a way to communicate with the DI-Server from JavaScript.

From .NET it's not a problem.. i add the COM Object of the DI-Server and call Interact(request);

But how can i make calls from JavaScript.

Can i maybe send direct SOAP requests to the DI-Server? if yes, how can i do that?

my idea is to make a .NET Webservice (WebAPI or WCF) which handles the communication with the DI-Server

and from my node.js application i just send DIS requests to the service and handle the responses.

Is there maybe a better way to do this?

View Entire Topic
pedro_magueija
Active Contributor
0 Likes

Hi Jan,

This seems a reasonable approach, although I would also have a look at the B1if. This framework allows you to create a RESTful interface which you could then use with your Node.js app.

Have a look here to start with B1if.

Good luck.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Likes

Hello Pedro,

thank you for your reply.

i was just watching the video series for the b1if.

this is actually what i am looking for, but the guy in the video is only talking about a "Get Request" -> SELECT

how about INSERT ? can i INSERT data to SAP B1 via B1if ?

greetings

pedro_magueija
Active Contributor
0 Likes

Hi Jan,

Yes that is also possible. Look at the thread below also. The dropbox link contains a PDF which shows how to Add/Update data with B1if.

Good luck.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Likes

Big big thanks to you Pedro

you really helped me out