dongyu4455 2012-12-20 09:54
浏览 184
已采纳

通过HTTPS从SAP Web Application Server接收数据

I am trying to receive xml idoc data I from a SAP system. It should get push to me over HTTPS but something is not working. I gave out a ssl certificate and the ip address of the server. I can see the SAP is trying to send me something because I am getting an call from Agent: SAP Web Application Server (1.0;701) but no data is transmitted in GET, POST or FILE.

The SAP system is controlled by someone else. They got this working with some other server so I assume it must be my fault.

Currently my script loges this values: serialize($_GET), serialize($_POST), serialize($_FILES), $_SERVER['REMOTE_ADDR'], $_SERVER['HTTP_USER_AGENT'], serialize(apache_request_headers())

Header tells me: content-type: text/xml, content-length: 76702 but I am not getting any content.

What I am doing wrong? How could I dig into this?

  • 写回答

2条回答 默认 最新

  • doudou_3636 2012-12-20 11:20
    关注

    Solution is to read HTTP body directly from file_get_contents("php://input"). The data has no variable so it's not getting parsed into any $_POST variable:

    <?xml version="1.0" encoding="UTF-8"?><ZSHPMNT05>...
    

    See: http://php.net/manual/en/reserved.variables.httprawpostdata.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料