php webservice 接口 实例 机票航班时刻表
<?php header('Content-Type: text/html; charset=UTF-8'); $client = new SoapClient('http://webservice.webxml.com.cn/webservices/DomesticAirline.asmx?wsdl'); $fromcity=!empty($_POST['fromcity']) ? trim($_POST['fromcity']) : '长沙'; $tocity=!empty($_POST['tocity']) ? trim($_POST['tocity']) : '广州'; $date=!empty($_POST['date']) ? trim($_POST['date']) : date('Y-m-d',time()); $parm=array( 'startCity'=>$fromcity, 'lastCity'=>$tocity, 'theDate'=>$date, 'userID'=>'' ); $city=$client->getDomesticCity(); $city=get_object_vars($city); $city=$city['getDomesticCityResult']->any; //print_r($city); //var_dump($city); $city_xml = simplexml_load_string($city); $result=$client->getDomesticAirlinesTime($parm); $result=get_object_vars($result); $result=$result['getDomesticAirlinesTimeResult']->any; //print_r($result['getDomesticAirlinesTimeResult']->any); $obj_xml = simplexml_load_string($result); //print_r($obj_xml->children()->children()); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>WecXml.com.cn 火车时刻表 Web Service 实例</title> <style type="text/css"> <!-- @import url("css/c.css"); --> </style> </head> <body> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td>  </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"> <strong>WebXml.com.cn</strong><strong> 航班时刻表 Web Service 实例</strong></td> </tr> <tr> <td>  </td> </tr> <tr> <td> </td> </tr> <tr> <td>  </td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="2" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#E5005A"> <tr> <th style="background-color: #FFD7E7;"> 航空公司</th> <th style="width: 10%; background-color: #FFD7E7;"> 航班编号</th> <th style="width: 18%; background-color: #FFD7E7;"> 出发机场</th> <th style="width: 10%; background-color: #FFD7E7;"> 出发时间</th> <th style="width: 18%; background-color: #FFD7E7;"> 到达机场</th> <th style="width: 10%; background-color: #FFD7E7;"> 到达时间</th> <th style="width: 10%; background-color: #FFD7E7;"> 机型</th> <th style="width: 10%; background-color: #FFD7E7;"> 中途是否停</th> </tr> <?php foreach($obj_xml->children()->children() as $child) { ?> <tr> <td class="tdbg"> <?php echo $child->Company; ?> </td> <td class="tdbg" > <?php echo $child->AirlineCode; ?> </td> <td class="tdbg" > <?php echo $child->StartDrome; ?> </td> <td class="tdbg"> <?php echo $child->StartTime; ?> </td> <td class="tdbg"> <?php echo $child->ArriveDrome; ?> </td> <td class="tdbg"> <?php echo $child->ArriveTime; ?> </td> <td class="tdbg"> <?php echo $child->Mode; ?> </td> <td class="tdbg"> <?php if($child->AirlineStop==0) echo '不停';else{echo '停';} ?> </td> </tr> <?php }?> </table> </td> </tr> </table> </body> </html>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Support Vector Machine (SVM) in Python is a powerful supervised learning algorithm that can be used to solve classification and regression problems. SVM performs well when dealing with high-dimensional data and non-linear problems, and is widely used in data mining, image classification, text classification, bioinformatics and other fields. In this article, we will introduce an example of using SVM for classification in Python. We will use the SVM model from the scikit-learn library

Flight tracker apps are becoming a popular way to keep an eye on planes in the sky. Whether it's a flight for you or for someone you care about, these apps provide real-time updates to ensure your flight goes as planned. On iPhone, flight tracking does not require the installation of third-party apps as it is a built-in feature of the operating system, allowing users to easily track flight status. This feature makes it easier for people to plan their travels and ensure their or someone they care about’s flight goes smoothly. The ability to track flights in iOS is thanks to the data detectors that Apple has integrated into the system. Data detectors can identify information such as time, date and address and convert these into clickable links in the correct context

According to news from this website on July 5, on July 3, some netizens revealed that a Juneyao Airlines flight was delayed for unknown reasons and the air conditioning was not turned on in the cabin, causing passengers to suffer from heat stroke. On the evening of July 4, Juneyao Airlines released the "Instructions on the Situation of Flight HO1851 on July 3" on its official Weibo, apologizing for the passenger's heatstroke. Juneyao Airlines sincerely apologizes for the passenger discomfort caused by poor cabin air conditioning during preparation for departure of flight HO1851. It has been confirmed that Juneyao Airlines will operate flight HO1851 from Hongqiao to Guangzhou on July 3. The flight was originally scheduled to take off at 18:10, but was delayed until 19:20 due to weather conditions. The flight completed boarding at 17:56 that day. Considering that the air-conditioning capacity of one side of the aircraft was weak, while the passengers were waiting to take off, the crew opened the aircraft door and arranged for the bridge to carry passengers.

Golang is a powerful and efficient programming language that can be used to develop various applications and services. In Golang, pointers are a very important concept, which can help us operate data more flexibly and efficiently. Pointer conversion refers to the process of pointer operations between different types. This article will use specific examples to learn the best practices of pointer conversion in Golang. 1. Basic concepts In Golang, each variable has an address, and the address is the location of the variable in memory.

As the new generation of front-end frameworks continues to emerge, VUE3 is loved as a fast, flexible, and easy-to-use front-end framework. Next, let's learn the basics of VUE3 and make a simple video player. 1. Install VUE3 First, we need to install VUE3 locally. Open the command line tool and execute the following command: npminstallvue@next Then, create a new HTML file and introduce VUE3: <!doctypehtml>

VAE is a generative model, its full name is VariationalAutoencoder, which is translated into Chinese as variational autoencoder. It is an unsupervised learning algorithm that can be used to generate new data, such as images, audio, text, etc. Compared with ordinary autoencoders, VAEs are more flexible and powerful and can generate more complex and realistic data. Python is one of the most widely used programming languages and one of the main tools for deep learning. In Python, there are many excellent machine learning and deep

With the rapid development of the Internet, data has become one of the most important resources in today's information age. As a technology that automatically obtains and processes network data, web crawlers are attracting more and more attention and application. This article will introduce how to use PHP to develop a simple web crawler and realize the function of automatically obtaining network data. 1. Overview of Web Crawler Web crawler is a technology that automatically obtains and processes network resources. Its main working process is to simulate browser behavior, automatically access specified URL addresses and extract all information.

The relationship between the number of Oracle instances and database performance Oracle database is one of the well-known relational database management systems in the industry and is widely used in enterprise-level data storage and management. In Oracle database, instance is a very important concept. Instance refers to the running environment of Oracle database in memory. Each instance has an independent memory structure and background process, which is used to process user requests and manage database operations. The number of instances has an important impact on the performance and stability of Oracle database.
