Results 1 to 8 of 8

Thread: Http Get from BSFN

  1. #1
    New Member
    Join Date
    Aug 2011
    Location
    Czech Rep.
    Posts
    37

    Http Get from BSFN

    Hi all,

    is there any chance how to call HTTP GET from NER BSFN?
    I have some local website on intranet and need to do HTTP GET with parametrized address. For example "http://userass@192.168.1.1/values.xml?Cmd=SMS&Nmr=777232759&Text=Hello". That´s all, I don´t need to open a website or get back the xml.

    Thanks for your help.

    Petr
    E1 E8.12, E9.20

  2. #2
    Member craig_welton's Avatar
    Join Date
    Oct 2000
    Location
    Litchfield, CT
    Posts
    994
    There is no system function to peform HTTP requests from a NER. Implementing at an O/S level through a C BSFN would require platform specific code. I believe Oracle would point you towards Orchestrator for such tasks. Personally, I like to use business services (BSSV). The softcoding support gives you easy configuration for prod/test urls/credentials and HTTP is available in the core Java API. You could create a generic HTTP layer in the BSSV and expose it to apps and UBEs through business functions.

    We have done something similar with a generic web service call interface on the iSeries. It allows native iSeries objects to call web services through XMLCallObject and a JDE BSSV.

    Craig
    Craig Welton
    PatWel Group Inc.
    http://www.patwel.com
    Home of the FREE JDE Object Browser, JDETrace, NERDup and BusBuild+ Tools

    E1 9.0 8.98.4.2 Wintel SQL 2008
    E1 9.2 9.2.1.4 iSeries

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Location
    Fort Worth, Texas
    Posts
    1,552
    I will second JDE BSSV, specifically you will be looking to use a Consumer BSSVs (Internal BSSV called from a C BSFN). Oracle states (as is my understanding) that they only support SOAP based calls to third party web services, but you can call RESTful web services as well. Another option that you might consider from a C BSFN, if you don't want to stand up a BSSV server, is LibCurl.

    Lib Curl on Wikipedia
    Brian Oster
    Application Development Manager
    E1: 9.0 (TR9.1.5.1) / 9.2 (TR9.2.2.2)
    JAS/BSSV: Weblogic 12.1.2 / Weblogic 12.2
    ES: Win2008 / Win2016
    DB: MSSQL 2014 / 2016
    WebDev Client: Win7Pro / Win10Pro

  4. #4
    New Member
    Join Date
    Aug 2011
    Location
    Czech Rep.
    Posts
    37
    Thanks guys, I will try the way with cURL...
    E1 E8.12, E9.20

  5. #5
    Another simpler option is to call an executable that does the HTTP Get and saves the output somewhere. Your ER code can then read that output.

    This is pretty straight forward in our product (LynX Business Integrator), where you just use C# to do what ever you need and call the outbound web service directly from ER and read the output of the call from ER as well.
    Regards,

    Hari Sharma
    Aellius
    EnterpriseOne: Integration (.Net, Web Services) | Output Management | Monitoring

  6. #6
    Member
    Join Date
    Jun 2001
    Location
    Colorful Colorado
    Posts
    471
    This would actually be simplest with an orchestration, _if_ you've already gone to the length of setting up an AIS server.

    The NER on interactive can call BSFN B98ORCH to send the relevant data as JSON to the AIS server. The AIS server would be used to make a notification which would map the parameters into the URL and ping the restful service. The latest 9.2.3 tools update combined with an ESU for that BSFN also supports doing the same from Callobject kernel in C from NER.
    --john

  7. #7
    Member craig_welton's Avatar
    Join Date
    Oct 2000
    Location
    Litchfield, CT
    Posts
    994
    In order to use the Orchestrator studio, I understand you need a WebLogic server since it's an ADF application. Doesn't that mean a blue stack shop would have to buy Weblogic in order to use the tool?
    Craig Welton
    PatWel Group Inc.
    http://www.patwel.com
    Home of the FREE JDE Object Browser, JDETrace, NERDup and BusBuild+ Tools

    E1 9.0 8.98.4.2 Wintel SQL 2008
    E1 9.2 9.2.1.4 iSeries

  8. #8
    New Member
    Join Date
    Aug 2011
    Location
    Czech Rep.
    Posts
    37
    Finally it works! I tried to use CURL, but there was a problem with spaces in string, so now I use WGET and it works great, no problem with spaces in string.
    E1 E8.12, E9.20

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company and, or Oracle.