当前位置:网站首页>How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
2022-07-07 02:19:00 【javail】
problem :
I need to debug some code which uses soap client. I need to debug some usage soap Client code .I found getLast* methods in php.net, but when I try to get last request for debug it returns NULL I am here php.net Found in the getLast* Method , But when I try to get the last debug request , It returns NULL
<?php $client = new SoapClient("http://www.webservicex.net/ConverPower.asmx?WSDL"); $response = $client->ChangePowerUnit(array( "PowerValue" => 100, "fromPowerUnit" => "horsepower", "toPowerUnit" => "megawatts" )); echo "====== REQUEST HEADERS =====" . PHP_EOL; var_dump($client->__getLastRequestHeaders()); echo "========= REQUEST ==========" . PHP_EOL; var_dump($client->__getLastRequest()); echo "========= RESPONSE =========" . PHP_EOL; var_dump($response);?>
The result of code execution: Code execution result :
$php soap_test.php ====== REQUEST HEADERS =====NULL========= REQUEST ==========NULL========= RESPONSE =========object(stdClass)#2 (1) { ["ChangePowerUnitResult"]=> float(0.0746)}
How to get the content of body and headers of the last SoapClient request? How to get the last one SoapClient The content of the body and title of the request ?
Solution :
Reference resources : https://stackoom.com/en/question/wru0边栏推荐
- Halcon knowledge: segment_ contours_ XLD operator
- 【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
- 建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
- Centros 8 installation MySQL Error: The gpg Keys listed for the "MySQL 8.0 Community Server" repository are already ins
- 如何从0到1构建32Core树莓派集群
- 机器人队伍学习方法,实现8.8倍的人力回报
- Integrated navigation: product description and interface description of zhonghaida inav2
- Lidar: introduction and usage of ouster OS
- 15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
- Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
猜你喜欢
[unique] what is the [chain storage structure]?
Jacob Steinhardt, assistant professor of UC Berkeley, predicts AI benchmark performance: AI has made faster progress in fields such as mathematics than expected, but the progress of robustness benchma
New generation cloud native message queue (I)
The mega version model of dall-e MINI has been released and is open for download
ROS学习(26)动态参数配置
ROS learning (XIX) robot slam function package cartographer
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
Draco - glTF模型压缩利器
ROS learning (21) robot slam function package -- installation and testing of orbslam
Integrated navigation: product description and interface description of zhonghaida inav2
随机推荐
最近小程序开发记录
张平安:加快云上数字创新,共建产业智慧生态
Time synchronization of livox lidar hardware -- PPS method
组合导航:中海达iNAV2产品描述及接口描述
激光雷达:Ouster OS产品介绍及使用方法
Big guys gather | nextarch foundation cloud development meetup is coming!
CISP-PTE实操练习讲解(二)
Robot team learning method to achieve 8.8 times human return
Input and output of C language pointer to two-dimensional array
leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
The GPG keys listed for the "MySQL 8.0 community server" repository are already ins
一片葉子兩三萬?植物消費爆火背後的“陽謀”
Stm32f4 --- PWM output
张平安:加快云上数字创新,共建产业智慧生态
Infrared camera: juge infrared mag32 product introduction
【论文阅读|深读】 GraphSAGE:Inductive Representation Learning on Large Graphs
centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
Recent applet development records
XML to map tool class xmlmaputils (tool class V)
MetaForce原力元宇宙开发搭建丨佛萨奇2.0系统开发