Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check whether the server is able to handle SOAP requests

How can I check whether the server is able to handle SOAP requests at run time ? I need to verify it before my script is executing.

like image 798
phpqa.in Avatar asked May 25 '12 07:05

phpqa.in


People also ask

How do I know if SOAP is installed?

You can use the phpinfo script to see is SOAP is installed.

How do I send a SOAP request in PHP?

To make SOAP requests to the SOAP API endpoint, use the "Content-Type: application/soap+xml" request header, which tells the server that the request body contains a SOAP envelope.

What is PHP SOAP Extension?

A PHP SOAP Extension can be used to provide and consume Web services. In other words, this PHP extension can be used by PHP developers to write their own Web Services, as well as to write clients to make use of the existing Web services.


1 Answers

You can use:

if (extension_loaded('soap')) {   // Do things } 

http://php.net/manual/en/function.extension-loaded.php

like image 189
Epoc Avatar answered Sep 16 '22 22:09

Epoc