예제 #1
0
}
/**
 * Via michelin
 */
if (false) {
    $wsdls = array('Geocoding' => 'http://webservices.viamichelin.com/ws2/services/Geocoding?wsdl', 'ReverseGeocoding' => 'http://webservices.viamichelin.com/ws2/services/ReverseGeocoding?wsdl', 'RouteCalculation' => 'http://webservices.viamichelin.com/ws2/services/RouteCalculation?wsdl', 'FindPOI' => 'http://webservices.viamichelin.com/ws2/services/FindPOI?wsdl', 'DistanceCalculation' => 'http://webservices.viamichelin.com/ws2/services/DistanceCalculation?wsdl', 'MapManagement' => 'http://webservices.viamichelin.com/ws2/services/MapManagement?wsdl', 'AccessManagement' => 'https://webservices.viamichelin.com/ws2/services/AccessManagement?wsdl');
    foreach ($wsdls as $name => $wsdl) {
        $name = 'ViaMichelin' . $name;
        exec('rm -rf ' . __DIR__ . '/samples/' . $name . '/*;');
        $w = new WsdlToPhpGenerator($wsdl);
        WsdlToPhpGenerator::setOptionGenerateAutoloadFile(true);
        WsdlToPhpGenerator::setOptionGenerateWsdlClassFile(true);
        WsdlToPhpGenerator::setOptionResponseAsWsdlObject(true);
        WsdlToPhpGenerator::setOptionGenerateTutorialFile(true);
        WsdlToPhpGenerator::setOptionSendArrayAsParameter(false);
        WsdlToPhpGenerator::setOptionSendParametersAsArray(false);
        WsdlToPhpGenerator::setOptionCategory(WsdlToPhpGenerator::OPT_CAT_START_NAME);
        WsdlToPhpGenerator::setOptionSubCategory(WsdlToPhpGenerator::OPT_SUB_CAT_END_NAME);
        $w->generateClasses($name, dirname(__FILE__) . '/samples/' . $name . '/');
    }
}
/**
 * Any
 */
if (true) {
    $name = 'PayPal';
    $wsdl = 'https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl';
    exec('rm -rf ' . __DIR__ . '/samples/' . $name . '/*;');
    echo "\r\nStart at " . date('H:i:s');
    $w = new WsdlToPhpGenerator($wsdl);
    WsdlToPhpGenerator::setOptionGenerateAutoloadFile(true);