请求将其作为null传递到WSO2 EI 6.6中的端点

发布于 2025-01-27 06:59:11 字数 1335 浏览 2 评论 0原文

我正在尝试将作为JSON的请求传递到端点,但我会收到传入的请求null错误,请帮助我解决此问题。

<property expression="json-eval($.)" name="InputRequest" scope="default" type="STRING"/>
        <log level="custom">
            <property expression="$ctx:InputRequest" name="===VIN API Input Request==="/>
        </log>
        <property description="order_no" expression="json-eval($.order_no)" name="order_no" scope="default" type="STRING"/>
        <property description="chassis" expression="json-eval($.chassis)" name="chassis" scope="default" type="STRING"/>
        <property description="vin_number" expression="json-eval($.vin_number)" name="vin_number" scope="default" type="STRING"/>
        <header name="Authorization" scope="transport" value="Token 9e2ee7424134b4a87dd16dd80e4660143b1220f3"/>
        <header name="Content-Type" scope="transport" value="application/json"/>
        <payloadFactory description="Request Payload" media-type="json">
            <format>$1</format>
            <args>
                <arg evaluator="xml" expression="$ctx:InputRequest"/>
            </args>
        </payloadFactory>
        <send description="Coms-Endpoint-Calling">
            <endpoint key="ComsEndpoint"/>
        </send>

I'm trying to pass the request as JSON to an endpoint but I get the incoming request null error, Please help me to sort this out.

<property expression="json-eval($.)" name="InputRequest" scope="default" type="STRING"/>
        <log level="custom">
            <property expression="$ctx:InputRequest" name="===VIN API Input Request==="/>
        </log>
        <property description="order_no" expression="json-eval($.order_no)" name="order_no" scope="default" type="STRING"/>
        <property description="chassis" expression="json-eval($.chassis)" name="chassis" scope="default" type="STRING"/>
        <property description="vin_number" expression="json-eval($.vin_number)" name="vin_number" scope="default" type="STRING"/>
        <header name="Authorization" scope="transport" value="Token 9e2ee7424134b4a87dd16dd80e4660143b1220f3"/>
        <header name="Content-Type" scope="transport" value="application/json"/>
        <payloadFactory description="Request Payload" media-type="json">
            <format>$1</format>
            <args>
                <arg evaluator="xml" expression="$ctx:InputRequest"/>
            </args>
        </payloadFactory>
        <send description="Coms-Endpoint-Calling">
            <endpoint key="ComsEndpoint"/>
        </send>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柳絮泡泡 2025-02-03 06:59:11

通过使用以下提到的属性调解员在获得传入请求后,这是解决问题的。

<property name="DISABLE_CHUNKING" scope="axis2" type="STRING" value="true"/>

This is problem has been sorted out by using below mentioned property mediator after getting the Incoming Request.

<property name="DISABLE_CHUNKING" scope="axis2" type="STRING" value="true"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文