package com.hyan.client;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.6 in JDK 6
* Generated source version: 2.1
*
*/
@WebServiceClient(name = "ServiceHelloService", targetNamespace = "http://service.hyan.com/", wsdlLocation = "http://localhost:9001/Service/ServiceHello?wsdl")
public class ServiceHelloService
extends Service
{
private final static URL SERVICEHELLOSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger.getLogger(com.hyan.client.ServiceHelloService.class.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = com.hyan.client.ServiceHelloService.class.getResource(".");
url = new URL(baseUrl, "http://localhost:9001/Service/ServiceHello?wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'http://localhost:9001/Service/ServiceHello?wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
SERVICEHELLOSERVICE_WSDL_LOCATION = url;
}
public ServiceHelloService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public ServiceHelloService() {
super(SERVICEHELLOSERVICE_WSDL_LOCATION, new QName("http://service.hyan.com/", "ServiceHelloService"));
}
/**
*
* @return
* returns ServiceHello
*/
@WebEndpoint(name = "ServiceHelloPort")
public ServiceHello getServiceHelloPort() {
return super.getPort(new QName("http://service.hyan.com/", "ServiceHelloPort"), ServiceHello.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns ServiceHello
*/
@WebEndpoint(name = "ServiceHelloPort")
public ServiceHello getServiceHelloPort(WebServiceFeature... features) {
return super.getPort(new QName("http://service.hyan.com/", "ServiceHelloPort"), ServiceHello.class, features);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
WebService配套案例
共42个文件
class:8个
java:8个
xml:4个
3星 · 超过75%的资源 需积分: 9 19 下载量 92 浏览量
2017-05-25
10:02:09
上传
评论
收藏 19KB RAR 举报
温馨提示
【Java】WebService 整理实例(代码实战)配套案例http://blog.csdn.net/hj7jay/article/details/72722438
资源推荐
资源详情
资源评论
收起资源包目录
Java WebService案例.rar (42个子文件)
TheService
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.wst.common.component 468B
org.eclipse.jdt.core.prefs 364B
com.genuitec.eclipse.ws.prefs 78B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 303B
WebRoot
WEB-INF
web.xml 404B
lib
classes
com
hyan
service
ServiceHello.class 1KB
index.jsp 834B
META-INF
MANIFEST.MF 36B
.myeclipse
src
com
hyan
service
ServiceHello.java 510B
.classpath 599B
TheClient
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.wst.common.component 465B
org.eclipse.jdt.core.prefs 364B
com.genuitec.eclipse.ws.prefs 78B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 300B
WebRoot
WEB-INF
web.xml 404B
lib
classes
com
hyan
test
ServiceTest.class 882B
client
GetValueResponse.class 875B
ServiceHello.class 788B
ObjectFactory.class 2KB
ServiceHelloService.class 2KB
GetValue.class 769B
package-info.class 245B
index.jsp 834B
META-INF
MANIFEST.MF 36B
.myeclipse
src
com
hyan
test
ServiceTest.java 379B
client
ServiceHelloService.java 2KB
ObjectFactory.java 2KB
GetValue.java 1KB
package-info.java 104B
ServiceHello.java 1KB
GetValueResponse.java 1KB
.classpath 599B
共 42 条
- 1
资源评论
- 黄华2018-11-19学习一下经验,谢谢分享。
Joker_Ye
- 粉丝: 1897
- 资源: 26
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功