Skip to Content
0
Nov 30, 2020 at 12:20 PM

POST HTTP Call with SessionUser

42 Views

Hello guys

I'm having a trouble making call to ServiceLayer with HTTP Call.

I'm able to Login to ServiceLayer.

But i don't know how to include SessionUser in header.

Here is scenario that is log in to ServiceLayer.

On PrepareSL i'm preparing raw JSON to login.

<payload>
                <io xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:com.sap.b1i.bizprocessor:bizatoms" pltype="json" xsi:schemaLocation="urn:com.sap.b1i.bizprocessor:bizatoms json_pltype.xsd">
                    <object>
                        <string name="CompanyDB">
                            <xsl:value-of select="string('Database Name')"></xsl:value-of>
                        </string>
                        <string name="UserName">
                            <xsl:value-of select="string('USER')"></xsl:value-of>
                        </string>
                        <string name="Password">
                            <xsl:value-of select="string('PASSWORD')"></xsl:value-of>
                        </string>
                    </object>
                </io>
            </payload>

And here is my HTTP Call settings:

And these steps got successful.

But how do i insert SessionUser on next call to ServiceLayer?

Attachments

scenario.jpg (25.7 kB)
httpcall.jpg (93.5 kB)
sessionuser.jpg (38.2 kB)