cancel
Showing results for 
Search instead for 
Did you mean: 

How to return the response as JSON format in B1IF 2.0 version

former_member416544
Participant
0 Kudos

Hi,

I want to return the response as JSON format in B1IF 2.0, I have tried with below mentioned code in B1IF 1.x version and it's working in 1.x version, response returned as JSON format.

But, same code I'm using in B1IF 2.0 version, response still return in XML format only. B1IF 2.0 version not working below code.

  <xsl:template name="transform">
        <xsl:attribute name="pltype">json</xsl:attribute>
        <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>
                <!--optional multiple of the following elements-->
                <string name="AbsEntry"><xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/BOM/BO/PickLists/row/Absoluteentry"></xsl:value-of></string>
            </object>
        </io>
    </xsl:template>

could you please suggest me , how can I return the response as JSON format using B1IF 2.0 version.

Thanks,

Chenna

former_member416544
Participant
0 Kudos

Hi Huan Yang & bastian schaefer

If possible could you please have look at this issue?

Thanks,

Chenna.


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member416544
Participant
0 Kudos

Hi,

Issue has been resolved

Thanks,

chenna.