⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 server.java

📁 一个基于java工厂模式的 的实现
💻 JAVA
字号:

package com.sms.webserver;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;


/**
 * This class was generated by the JAXWS SI.
 * JAX-WS RI 2.0_01-b59-fcs
 * Generated source version: 2.0
 * 
 */
@WebServiceClient(name = "Server", targetNamespace = "http://tempuri.org/", wsdlLocation = "http://192.168.1.211/chinamobile/server.asmx?WSDL")
public class Server
    extends Service
{

    private final static URL SERVER_WSDL_LOCATION;

    static {
        URL url = null;
        try {
            url = new URL("http://192.168.1.211/chinamobile/server.asmx?WSDL");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        SERVER_WSDL_LOCATION = url;
    }

    public Server(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public Server() {
        super(SERVER_WSDL_LOCATION, new QName("http://tempuri.org/", "Server"));
    }

    /**
     * 
     * @return
     *     returns ServerSoap
     */
    @WebEndpoint(name = "ServerSoap")
    public ServerSoap getServerSoap() {
        return (ServerSoap)super.getPort(new QName("http://tempuri.org/", "ServerSoap"), ServerSoap.class);
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -