package market.webservice;

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;

/**
 * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.3-hudson-390-
 * Generated source version: 2.0
 * <p>
 * An example of how this class may be used:
 * 
 * <pre>
 * WebService1 service = new WebService1();
 * WebService1 portType = service.getWebService1ImplPort();
 * portType.judgeCheckP(...);
 * </pre>
 * 
 * </p>
 *   改成 10.90.0.127 的映射地址：172.16.0.127
 */
@WebServiceClient(name = "WebService1", targetNamespace = "http://pda/", wsdlLocation = "http://172.16.0.127:8092/LZMES/WebService?wsdl")
public class WebService1_Service extends Service {

	private final static URL WEBSERVICE1_WSDL_LOCATION;
	private final static Logger logger = Logger
			.getLogger(market.webservice.WebService1_Service.class.getName());

	static {
		URL url = null;
		try {
			URL baseUrl;
			baseUrl = market.webservice.WebService1_Service.class
					.getResource(".");
			url = new URL(baseUrl,
					"http://172.16.0.127:8092/LZMES/WebService?wsdl");
		} catch (MalformedURLException e) {
			logger.warning("Failed to create URL for the wsdl Location: 'http://172.16.0.127:8092/LZMES/WebService?wsdl', retrying as a local file");
			logger.warning(e.getMessage());
		}
		WEBSERVICE1_WSDL_LOCATION = url;
	}

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

	public WebService1_Service() {
		super(WEBSERVICE1_WSDL_LOCATION,
				new QName("http://pda/", "WebService1"));
	}

	/**
	 * 
	 * @return returns WebService1
	 */
	@WebEndpoint(name = "WebService1ImplPort")
	public WebService1 getWebService1ImplPort() {
		return super.getPort(new QName("http://pda/", "WebService1ImplPort"),
				WebService1.class);
	}

}
