Notes on Reference Citations - Version 2.70, by Dr. Herong Yang
CONNECTING TO A SOAP WEB SERVICE
'PHP SOAP Extension - RPC Method Based Web Services' tutorial was cited in a wpmudev.org forum post in 2015.
The PHP SOAP Extension - RPC Method Based Web Services tutorial was cited in a wpmudev.org forum post in 2015.
Subject: CONNECTING TO A SOAP WEB SERVICE Date: Jul 8, 2015 Author: Anang Source: https://premium.wpmudev.org/forums/topic /connecting-to-a-soap-web-service >I am using wp_remote_get ( &url , &args ) to connect to a >legacy application (we have control of) via an exposed web service. >Although I am able to connect to it, I am having problems >understanding the mechanism to call methods within it and pass >parameters to it. I understand the array construct but not sure what >to poke where. I'm close , but no cigar. Note the service is SOAP >(1.2) and not JSON. > >If you could point me in some explicit examples I could follow, this >would be of great assistance. After looking some references I found out that you must use SOAP 1.1 if you want to use encoded version: http://forums.ocsinventory-ng.org/viewtopic.php?id=10329 Or you can use something like binding SOAP 1.1 function to SOAP 1.2 as described on this article : Notice that SoapClient used SOAP 1.2 namespaces correctly in the SOAP request. This confirms that SOAP Extension in PHP 5.3.1 does support RPC method based Web services defined in WSDL 1.1 with SOAP 1.2 binding. http://www.herongyang.com/WSDL/SOAP-12-Client-PHP-SOAP-Extension-RPC- Method.html Let me know what's your opinion :)
Table of Contents