Home dynamics ax php API on IIS encryption
dynamics ax

php API on IIS encryption

this is how I do it, connecting to IIS encryption (on android java) on php bridging

<?php
        try{             
                $input = $_POST["input"];
                //contoh input : NvUlnUqBh1vvDWWoGvELKTwAKv9yKEBSYvfdTXNY2HUhPydLhzLhbBuB0FuBtlcSaTw2hyY2Ln8vmACu02knnxmzzCSaUtKBWwNcdCsAkTk=

                if($input != "") {
                        error_reporting(E_ALL);

                        define('_HP_WEBSERVICE_URL_','http://192.168.50.44/inwcommerce/sirait.asmx?WSDL');
                        define('_HP_WEBSERVICE_NAMESPACE_','http://sirait.highpoint/');
                        $webservice = new SoapClient(_HP_WEBSERVICE_URL_,
                                array('soap_version' => SOAP_1_1,
                                'uri' => _HP_WEBSERVICE_NAMESPACE_));
                        $request = array('Input' => $input);
                        $action = $webservice->Mobile($request);
                        $result = $action->MobileResult;
                } else {
                        $result = '{"DataType":"Error", "Message":"No Data Post",}';
                }
                print_r($result);
        } catch (Exception $e) {
                echo '{"DataType":"Error", "Message":"'. $e->getMessage() . '",}';
        }
?>

 

Author

Ronny

Leave a Reply

EnglishIndonesian