/*
* Copyright 2001,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.table.*;
import org.apache.axis.monitor.SOAPMonitorConstants;
/**
* This is a SOAP Mointor Applet class. This class provides
* the user interface for displaying data from the SOAP
* monitor service.
*
* @author Brian Price (pricebe@us.ibm.com)
*
*/
public class SOAPMonitorApplet extends JApplet {
/**
* Private data
*/
private JPanel main_panel = null;
private JTabbedPane tabbed_pane = null;
private int port = 0;
private Vector pages = null;
/**
* Constructor
*/
public SOAPMonitorApplet() {
}
/**
* Applet initialization
*/
public void init() {
// Get the port to be used
String port_str = getParameter("port");
if (port_str != null) {
port = Integer.parseInt(port_str);
}
// Try to use the system look and feel
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e){
}
// Create main panel to hold notebook
main_panel = new JPanel();
main_panel.setBackground(Color.white);
main_panel.setLayout(new BorderLayout());
setContentPane(main_panel);
// Create the notebook
tabbed_pane = new JTabbedPane(JTabbedPane.TOP);
main_panel.add(tabbed_pane,BorderLayout.CENTER);
// Add notebook page for default host connection
pages = new Vector();
addPage(new SOAPMonitorPage(getCodeBase().getHost()));
}
/**
* Add a page to the notebook
*/
private void addPage(SOAPMonitorPage pg) {
tabbed_pane.addTab(" "+pg.getHost()+" ", pg);
pages.addElement(pg);
}
/**
* Applet is being displayed
*/
public void start() {
// Tell all pages to start talking to the server
Enumeration e = pages.elements();
while (e.hasMoreElements()) {
SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
if (pg != null) {
pg.start();
}
}
}
/*
* Applet is no longer displayed
*/
public void stop() {
// Tell all pages to stop talking to the server
Enumeration e = pages.elements();
while (e.hasMoreElements()) {
SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
if (pg != null) {
pg.stop();
}
}
}
/**
* Applet cleanup
*/
public void destroy() {
tabbed_pane = null;
main_panel = null;
}
/**
* This class provides the contents of a notebook page
* representing a server connection.
*/
class SOAPMonitorPage extends JPanel
implements Runnable,
ListSelectionListener,
ActionListener {
/**
* Status Strings
*/
private final String STATUS_ACTIVE = "The SOAP Monitor is started.";
private final String STATUS_STOPPED = "The SOAP Monitor is stopped.";
private final String STATUS_CLOSED = "The server communication has been terminated.";
private final String STATUS_NOCONNECT = "The SOAP Monitor is unable to communcate with the server.";
/**
* Private data
*/
private String host = null;
private Socket socket = null;
private ObjectInputStream in = null;
private ObjectOutputStream out = null;
private SOAPMonitorTableModel model = null;
private JTable table = null;
private JScrollPane scroll = null;
private JPanel list_panel = null;
private JPanel list_buttons = null;
private JButton remove_button = null;
private JButton remove_all_button = null;
private JButton filter_button = null;
private JPanel details_panel = null;
private JPanel details_header = null;
private JSplitPane details_soap = null;
private JPanel details_buttons = null;
private JLabel details_time = null;
private JLabel details_target = null;
private JLabel details_status = null;
private JLabel details_time_value = null;
private JLabel details_target_value = null;
private JLabel details_status_value = null;
private EmptyBorder empty_border = null;
private EtchedBorder etched_border = null;
private JPanel request_panel = null;
private JPanel response_panel = null;
private JLabel request_label = null;
private JLabel response_label = null;
private SOAPMonitorTextArea request_text = null;
private SOAPMonitorTextArea response_text = null;
private JScrollPane request_scroll = null;
private JScrollPane response_scroll = null;
private JButton layout_button = null;
private JSplitPane split = null;
private JPanel status_area = null;
private JPanel status_buttons = null;
private JButton start_button = null;
private JButton stop_button = null;
private JLabel status_text = null;
private JPanel status_text_panel = null;
private SOAPMonitorFilter filter = null;
private GridBagLayout details_header_layout = null;
private GridBagConstraints details_header_constraints = null;
private JCheckBox reflow_xml = null;
/**
* Constructor (create and layout page)
*/
public SOAPMonitorPage(String host_name) {
host = host_name;
// Set up default filter (show all messages)
filter = new SOAPMonitorFilter();
// Use borders to help improve appearance
etched_border = new EtchedBorder();
// Build top portion of split (list panel)
model = new SOAPMonitorTableModel();
table = new JTable(model);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setRowSelectionInterval(0,0);
table.setPreferredScrollableViewportSize(new Dimension(600, 96));
table.getSelectionModel().addListSelectionListener(this);
scroll = new JScrollPane(table);
remove_button = new JButton("Remove");
remove_button.addActionListener(this);
remove_button.setEnabled(false);
remo
没有合适的资源?快使用搜索试试~ 我知道了~
JAVA调用火车时刻表WEB服务实例
共95个文件
java:29个
class:28个
jar:17个
4星 · 超过85%的资源 需积分: 25 30 下载量 107 浏览量
2012-10-12
10:43:33
上传
评论 1
收藏 5.18MB RAR 举报
温馨提示
java调用火车时刻表WEB服务实例,写了一个main测试实例,可以借鉴研究一下。
资源推荐
资源详情
资源评论
收起资源包目录
JAVA+调用火车时刻表WEB服务实例.rar (95个子文件)
webservice
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.core.resources.prefs 88B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 406B
src
com
util
Train.java 703B
servlet
TrainInfoServlet.java 1KB
TrainInfo.java 3KB
cn
com
WebXml
TrainTimeWebServiceSoap.java 5KB
GetStationAndTimeDataSetByLikeTrainCodeResponseGetStationAndTimeDataSetByLikeTrainCodeResult.java 4KB
GetStationAndTimeByStationNameResponse.java 5KB
TrainTimeWebServiceLocator.java 9KB
GetStationAndTimeDataSetByLikeTrainCode.java 5KB
GetStationAndTimeByTrainCodeResponse.java 5KB
GetStationAndTimeDataSetByTrainCode.java 5KB
GetDetailInfoByTrainCodeResponseGetDetailInfoByTrainCodeResult.java 4KB
GetStationName.java 2KB
GetStationAndTimeByStationNameResponseGetStationAndTimeByStationNameResult.java 4KB
GetVersionTime.java 2KB
GetStationAndTimeDataSetByTrainCodeResponse.java 5KB
TrainTimeWebServiceSoap12Stub.java 37KB
GetStationAndTimeDataSetByTrainCodeResponseGetStationAndTimeDataSetByTrainCodeResult.java 4KB
TrainTimeWebServiceSoapStub.java 37KB
GetVersionTimeResponse.java 4KB
GetDetailInfoByTrainCodeResponse.java 5KB
GetStationAndTimeByTrainCode.java 5KB
TrainTimeWebService.java 2KB
GetDetailInfoByTrainCode.java 5KB
DataSet.java 3KB
GetStationAndTimeByStationName.java 6KB
GetStationAndTimeDataSetByLikeTrainCodeResponse.java 5KB
GetStationNameResponse.java 4KB
GetStationNameDataSetResponseGetStationNameDataSetResult.java 4KB
.project 1KB
WebRoot
train.jsp 352B
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 3KB
users.lst 34B
classes
com
util
Train.class 1KB
servlet
TrainInfoServlet.class 2KB
TrainInfo.class 4KB
cn
com
WebXml
GetVersionTime.class 2KB
GetVersionTimeResponse.class 3KB
GetStationAndTimeDataSetByTrainCodeResponse.class 4KB
GetStationAndTimeDataSetByLikeTrainCodeResponse.class 4KB
GetStationAndTimeDataSetByTrainCodeResponseGetStationAndTimeDataSetByTrainCodeResult.class 3KB
GetStationNameDataSetResponseGetStationNameDataSetResult.class 3KB
TrainTimeWebServiceSoapStub.class 17KB
TrainTimeWebServiceLocator.class 6KB
GetStationAndTimeByStationName.class 4KB
GetStationName.class 2KB
TrainTimeWebService.class 558B
GetStationAndTimeByTrainCodeResponse.class 4KB
GetStationAndTimeByTrainCode.class 3KB
GetStationNameResponse.class 3KB
TrainTimeWebServiceSoap12Stub.class 17KB
GetDetailInfoByTrainCode.class 3KB
DataSet.class 3KB
GetStationAndTimeDataSetByTrainCode.class 3KB
GetStationAndTimeDataSetByLikeTrainCodeResponseGetStationAndTimeDataSetByLikeTrainCodeResult.class 3KB
GetStationAndTimeByStationNameResponseGetStationAndTimeByStationNameResult.class 3KB
GetDetailInfoByTrainCodeResponseGetDetailInfoByTrainCodeResult.class 3KB
GetDetailInfoByTrainCodeResponse.class 3KB
GetStationAndTimeByStationNameResponse.class 3KB
TrainTimeWebServiceSoap.class 1KB
GetStationAndTimeDataSetByLikeTrainCode.class 3KB
lib
commons-logging-1.0.4.jar 37KB
saaj.jar 19KB
xml-apis.jar 122KB
jdom.jar 150KB
jaxen-jdom.jar 6KB
saxpath.jar 23KB
jaxrpc.jar 31KB
log4j-1.2.8.jar 344KB
axis.jar 1.56MB
axis-schema.jar 199KB
jaxen-core.jar 157KB
xalan.jar 1.23MB
ant.jar 715KB
axis-ant.jar 33KB
wsdl4j-1.5.1.jar 124KB
commons-discovery-0.2.jar 70KB
xerces.jar 937KB
HelloClient.jws 103B
StockQuoteService.jws 2KB
EchoHeaders.jws 3KB
index.html 603B
happyaxis.jsp 15KB
fingerprint.jsp 10KB
index.jsp 3KB
traininfo.jsp 1KB
SOAPMonitorApplet.java 57KB
i18nLib.jsp 7KB
.mymetadata 303B
.classpath 2KB
.myeclipse
train.xml 10KB
共 95 条
- 1
资源评论
- ypf86669612013-12-14需要后期的加工才能正常使用
- wy9206081262013-06-01好像不能实现啊,没有结果
- dengkai1772014-01-19这个得自己按照思乡从新做一遍
p疯子
- 粉丝: 2
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功