I am using https://github.com/jamesiarmes/php-ews library to connect to our Microsft Exchange Server 2010 SP3 but I am getting this error: Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in
I am using the example provided under: /examples/message/create.php
and the error is triggered on this line:
index.php
$response = $client->CreateItem($request);
Client.php
$response = $this->soap->{$operation}($request);
When I try to access the wsdl file from the browser it works fine and after authentication, I can see all the options under Services.wsdl .
What do you think the problem is?
Is there some settings that I need to enable on Microsoft Exchange in order to use the SOAP services?
Related
I'm getting following error while trying to implement google authentication in my local website.
Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\social_login_example\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187.
I surfed the given URL but it didn't provide me any useful information to eliminate the error. What is this error and what can I do to remove it.
I'm using chrome web browser and PHP-5.6.8
$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);
Guzzle version 6
I'm trying fetch some data from Twitter API. I've got a shared host with SSL support and I've configured my Twitter developer account.
However, if I try to load my script (as per example) it returns:
{"errors":[{"code":32,"message":"Could not authenticate you."}]}
Fatal error: Uncaught Exception: Unknown SSL protocol error in connection to api.twitter.com:443 in
My script is based on https://github.com/J7mbo/twitter-api-php
I'm trying to connect to a API using SOAP (nusoap client), but when i try and make a request I get this error:
wsdl error: Getting https://example.com/webservices.asmx?WSDL - HTTP ERROR: cURL ERROR: 0: NSS: client certificate not found (nickname not specified)
The API does not require a certificate to connect to the API, but for some reason I am getting an error with a none existent certificate. This code works on my VM, but not on the live site, does anyone know why this error is occurring?
Thanks
Rob
I have written a very simple SOAP Server to check access to the server but I'm getting an error.
The server is a brand new VM of Windows Server 2008R2 (which I installed today to check this) I then installed WAMP which is working correctly. I think the issue is more of a configuration one but I'm no expert from here so need some help finding it.
I have enabled SOAP in WAMP. The WSDL is fine, I have checked it on a hosted server and it works as expected along with the server and client php files.
The error received at the client:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
Couldn't load from './Soaptest.wsdl' : failed to load external entity "./Soaptest.wsdl" in
C:\wamp\www\Connector\Testing\c20\c20simpleClient.php:7
Stack trace: #0 C:\wamp\www\Connector\Testing\c20\c20simpleClient.php(7):
SoapClient->SoapClient('./c20simpleSoap...') #1 {main} thrown in
C:\wamp\www\Connector\Testing\c20\c20simpleClient.php on line 7
The Soap Server:
function Test(){
return true;
}
$server = new SoapServer("Soaptest.wsdl");
$server->addFunction("Test");
$server->handle();
The client (Line 6+):
$url = "./Soaptest.wsdl";
$client = new SoapClient($url);
echo "client created<br>";
$result = $client->Test();
echo "<hr>Method Test: <pre>".(string)$result."</pre>";
Aside from enabling soap in the php config, is there anything I need to do in Apache or php to enable SOAP?
I have been trying to connect to a web service which I previously had set up using a soap request in PHP, like so:
$client = new SoapClient($this->config->item('WSDL'));
$response = $client->Login(array('email' => $this->input->post('email'), 'password' => $this->input->post('password')));
this worked when the WSDL url ended in asmx?WSDL but now its a different url ending in .xml and it doesn't work...I keep getting the following error: "PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in..."
Can anyone help me please? It is hurting my head, thanks!
URL of WSDL can be ended with anything. Try to echo your WSDL URL and load it by browser.
$client = new SoapClient(exit($this->config->item('WSDL')));