当前位置:网站首页>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边栏推荐
- freeswitch拨打分机号源代码跟踪
- Metaforce force meta universe development and construction - fossage 2.0 system development
- Errors made in the development of merging the quantity of data in the set according to attributes
- ROS learning (25) rviz plugin
- Several classes and functions that must be clarified when using Ceres to slam
- PartyDAO如何在1年内把一篇推文变成了2亿美金的产品DAO
- ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
- Blackfly S USB3工业相机:缓冲区处理
- Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!
- ROS learning (24) plugin
猜你喜欢
String or binary data will be truncated
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
2022/0524/bookstrap
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
Stm32f4 --- PWM output
【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
一片叶子两三万?植物消费爆火背后的“阳谋”
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
随机推荐
Stm32f4 --- general timer update interrupt
Redis tool class redisutil (tool class III)
大咖云集|NextArch基金会云开发Meetup来啦!
BigDecimal 的正确使用方式
FLIR blackfly s usb3 industrial camera: how to use counters and timers
FLIR blackfly s usb3 industrial camera: white balance setting method
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co
[unique] what is the [chain storage structure]?
ROS learning (21) robot slam function package -- installation and testing of orbslam
最近小程序开发记录
Correct use of BigDecimal
The mega version model of dall-e MINI has been released and is open for download
遇到慢SQL该怎么办?(下)
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting
Stm32f4 --- PWM output
centos8安装mysql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
Golang foundation - data type
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
解密函数计算异步任务能力之「任务的状态及生命周期管理」