我在Perl模块(GenericInterface - OTRS作为请求者)中使用REST调用程序配置了OTRS 4.0.2(无法更新它,因为它在生产环境中使用),调用测试Web服务http://www.example.com/log/index.php
页面调试OTRS请求。
我激活了调试功能并查询了数据库:
SELECT
gidec.id,
gidec.gi_debugger_entry_id,
gidec.subject,
CONCAT(gidec.content),
gidec.create_time
FROM gi_debugger_entry_content gidec
WHERE gidec.gi_debugger_entry_id = 182
ORDER BY gidec.id DESC
它返回以下项目:
Communication sequence started
Incoming data before mapping
JSON data received from remote system
Outgoing data before mapping
Remaining outgoing data to be sent
URI after interpolating Query params from outgoing data
URI after interpolating URI params from outgoing data
我的问题在于:要发送的剩余传出数据
它包含:
$VAR1 = {
'Priority' => 'Priority:5 very high',
'TestPrepareRequestRCS' => 'TestPrepareRequest009',
'TicketID' => '5'
};
但是在通过POST调用的Web服务(PHP语言)上,我没有收到数据(我使用函数来序列化超级全局$_POST
和$_GET
):
请求调用者使用GET
到Web服务(/log/index.php
):
GET = a:4: {s:8:"TicketID";s:1:"5";s:7:"invoker";s:6:"zwsync";s:8:"Priority";s:20:"Priority:5 very high";s:21:"TestPrepareRequestRCS";s:21:"TestPrepareRequest009";}
POST = a:0:{}
请求者使用POST
请求Web服务(/log/index.php
):
GET = a:4:{s:8:"TicketID";s:1:"5";s:7:"invoker";s:6:"zwsync";}
POST = a:0:{}
要在OTRS网络服务上使用POST
,我是否还需要配置其他内容?