Skip to Content
avatar image
Former Member

B1if 2.0 HTTP Get call with parameter

Hi Experts,

At B1if version 2.0, how to setup the inbound for HTTP call of method GET with parameter?

for example

getSalesOrder?DocNum=5
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 20 at 02:28 AM

    Hello Balakumar,

    Do you mean how to use B1if 2.0 to set an HTTP Inbound Scenario Step?

    There are some slides in Help - Training, and I believe these do help.

    For your case, I designed one and you may follow the screenshots.

    Designtime No.1

    Designtime No.2

    Designtime No.3

                <xsl:template match="/">
                    <!--your coding-->
                    <root>
                        <payload>Hello World</payload>
                    </root>
                </xsl:template>
    

    Deployment No.1

    Runtime No.1

    Hope these help

    Best Regards.

    Huan Yang


    b1if20design.png (167.2 kB)
    b1if20design2.png (153.3 kB)
    b1if20design3.png (85.2 kB)
    b1if20run.png (80.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20 at 07:44 AM

    Hi Huan,

    Still, how to pass the parameter at Trigger URL? In your example trigger, I like to have the parameter as

    http://...../test.sap.getSalesOrder?docEntry=10

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Balakumar,

      • If you treat B1i as a service provider, then how to pass the parameter depends on the client(request side).
        You may see the screenshot (Runtime No.1), I put a parameter DocNum in it.
      • In Monitor, when you open the debug mode, you can see the input parameter information.
        If you want to use B1i to call other service provider, then you may not set HTTP inbound.
      • If you just want the Trigger URL, then http://...../test.sap.getSalesOrder is the one.
        Parameters after "?" will be in the input steam.
      • If you mean to B1if 1.x Trigger URL, then I would say, it's a little bit different.
        In B1if 1.x, there is a dispatcher.
        In B1if 2.0, you directly call the step.

      Best Regards.

      Huan Yang

  • avatar image
    Former Member
    Feb 20 at 06:00 PM

    Thanks Huan Yang

    Add comment
    10|10000 characters needed characters exceeded