This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===================== | |
// account information | |
// ===================== | |
$username = "999111999"; | |
$pin = "9991"; | |
// ===================== | |
// 1 = Announcement | |
// 2 = Survey | |
// 3 = SMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===================== | |
// account information | |
// ===================== | |
$username = "999111999"; | |
$pin = "9991"; | |
$proxy = "http://staging-api.call-em-all.com/webservices/ceaapi_v2.asmx?WSDL"; | |
$client = new SoapClient($proxy, array("trace" => true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# SOAP client for CEA web service | |
use strict; | |
use SOAP::Lite; | |
# To turn on SOAP debugging use this | |
# ================================== | |
# use SOAP::Lite +trace => 'all'; | |
# ================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# SOAP client for CEA web service | |
use strict; | |
use SOAP::Lite; | |
# To turn on SOAP debugging use this | |
# ================================== | |
# use SOAP::Lite +trace => 'all'; | |
# ================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# SOAP client for CEA web service | |
use strict; | |
use SOAP::Lite; | |
# To turn on SOAP debugging use this | |
# ================================== | |
# use SOAP::Lite +trace => 'all'; | |
# ================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRV1092:/usr/local/src/CEAAPI# ./sample | |
ErrorCode : 0 | |
ErrorMessage : Operation Successful | |
BroadcastID : 12939 | |
GoodrecordCount : 1 | |
BadRecordCount : 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -o sample sample.cpp soapC.cpp soapCEAAPI_USCOREv2SoapProxy.cpp soapCEAAPI_USCOREv2Soap12Proxy.cpp -lgsoap++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "soapH.h" // include header files | |
#include "soapCEAAPI_USCOREv2Soap12Proxy.h" // get proxy | |
#include "CEAAPI_USCOREv2Soap12.nsmap" // get namespace bindings | |
using namespace std; | |
int main() | |
{ | |
CEAAPI_USCOREv2Soap12Proxy q; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use regular char* strings instead of std::string, use: | |
xsd__string = | char* | char* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /usr/local/src/CEAAPI | |
cd /usr/local/src/CEAAPI | |
cp /usr/local/src/gsoap-2.8/gsoap/typemap.dat . | |
wsdl2h -o CEAAPI.h http://staging-api.call-em-all.com/webservices/CEAAPI_v2.asmx?WSDL | |
soapcpp2 -i CEAAPI.h -I/usr/share/gsoap/import/ |