Welcome Guest, Not a member yet? Register   Sign In
Requesting SOAP using CURL on Codieigniter 4
#1

(This post was last modified: 05-27-2020, 01:15 AM by remesses_thegreat.)

I am consuming a service using CURL. I am able to connect all the functions of the services in the form of a CXF Service List using the following code.
$client = \Config\Services::curlrequest();
Code:
    $response = $client->request('GET', 'www.soapservice.co.za/service');

    var_dump($response->getBody());
Var Dump Returns a string with Available services
The service has 10 functions listed in this manner getDataFunction.
How do i invoke the function? Or how do i get the contents of the body and start using Service functions ?
Any help would be appreciated

I was using SoapClient on CI3 now I have moved to CI4 and the same SoapClient code that worked on CI3 does not work on CI4. Does CI4 Support SOAP? I would use soap client too as it was much easier for me. I am very new to CURL. If you have a solution i would appreciate it. The service was developed using Java and it returns CXF Service List with all Available functions.
Reply


Messages In This Thread
Requesting SOAP using CURL on Codieigniter 4 - by remesses_thegreat - 05-27-2020, 01:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB