cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Soap Exception

From: chris byrnes <cjbyrnes_at_hotmail.com>
Date: Thu, 03 Nov 2005 01:52:45 +0000
Hi i get the following error when trying to connect to a https external site.
 
this is the error:
 
 soap:Client System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
 
this is the code im using:
 
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL,$url );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $xmlSend );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_TIMEOUT, 240 );
$xmlResults = curl_exec($ch);
if( curl_errno( $ch ) == CURLE_OK ) {
 echo "Connected<br><br>";
} else {
 echo "Not Connected<br><br>";
}
curl_close( $ch );
echo $xmlResults;
 
Connected does appear and it happens when i use firefox.
 
Thanks,
Chris
 
cjbyrnes <at> hotmail <dot> com

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-03