phpCharset. When using nusoap, soapclient->soap_defencoding will be initialized with phpCharset. The following settings are recommended (try the first setting appropriate for your language, if it doesn't work try the second): * English: $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" ); * Western european languages (French, Spanish, German, etc.): $gateway->setCharsetHandler( "iconv", "ISO-8859-1", "ISO-8859-1" ); $gateway->setCharsetHandler( "utf8_decode", "ISO-8859-1", "ISO-8859-1" ); * Eastern european languages (Russian and other slavic languages): $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" ); $gateway->setCharsetHandler( "iconv", "your codepage", "your codepage" ); * Oriental languages (Chinese, japanese, korean): $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" ); $gateway->setCharsetHandler( "iconv", "big5", "big5" ); $gateway->setCharsetHandler( "iconv", "CP950", "CP950" ); $gateway->setCharsetHandler( "iconv", "Shift_JIS", "Shift_JIS" ); $gateway->setCharsetHandler( "iconv", "CP932", "CP932" ); $gateway->setCharsetHandler( "iconv", "CP949", "CP949" ); * Other languages: $gateway->setCharsetHandler( "none", "ISO-8859-1", "ISO-8859-1" ); See all the possible codepages for iconv here: http://www.gnu.org/software/libiconv/ iconv is included by default in php5, but not in php4 although most hosts have it installed. utf8_decode is of some use for Western European languages, but please remember that it won't work with settings other than ISO-8859-1. The other methods also require seldom-used extensions but were included just in case your particular host only supports them. - setWebServiceHandler(string handler) Handler can be one of: - php5 (that is, PHP5 SoapClient) - pear - nusoap This is used for webservices when working with http:// service names in new Service(). For php5 and pear, you will need to have it installed on your server. For nusoap, you need nusoap.php instead in ./lib relative to this file. If you have PHP5 and the SOAP extension installed it is highly recommended that you use it as it is _much_ faster than NuSOAP or PEAR::SOAP Things you may want to disable for production environments: - disableStandalonePlayer() Disables the standalone player by filtering out its User-Agent string - disableServiceDescription() Disable service description from Macromedia's service browser - disableTrace() Disables remote tracing - disableDebug() Stops debug info from being sent (independant of remote trace setting) */ error_log("service connection"); //You can set this constant appropriately to disable traces and debugging headers //You will also have the constant available in your classes, for changing //the mysql server info for example define("PRODUCTION_SERVER", true); //Include things that need to be global, for integrating with other frameworks include "globals.php"; //Include framework include "core/amf/app/Gateway.php"; $gateway = new Gateway(); //Set where the services classes are loaded from, *with trailing slash* //$servicesPath defined in globals.php $gateway->setClassPath($servicesPath); //Set where class mappings are loaded from (ie: for VOs) //$voPath defined in globals.php $gateway->setClassMappingsPath($voPath); //Read above large note for explanation of charset handling //The main contributor (Patrick Mineault) is French, //so don't be afraid if he forgot to turn off iconv by default! // $gateway->setCharsetHandler("utf8_decode", "UISO-8859-1", "ISO-8859-1"); // Modif CJ $gateway->setCharsetHandler("utf8_decode", "UTF-8", "UTF-8"); //Error types that will be rooted to the NetConnection debugger $gateway->setErrorHandling(E_ALL ^ E_NOTICE); if(PRODUCTION_SERVER) { //Disable profiling, remote tracing, and service browser $gateway->disableDebug(); // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections. $gateway->disableStandalonePlayer(); } //If you are running into low-level issues with corrupt messages and //the like, you can add $gateway->logIncomingMessages('path/to/incoming/messages/'); //and $gateway->logOutgoingMessages('path/to/outgoing/messages/'); here //$gateway->logIncomingMessages('in/'); //$gateway->logOutgoingMessages('out/'); //Explicitly disable the native extension if it is installed //$gateway->disableNativeExtension(); //Enable gzip compression of output if zlib is available, //beyond a certain byte size threshold $gateway->enableGzipCompression(25*1024); //Service now $gateway->service(); ?>