Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.correios.afii.service;
- 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;
- import javax.xml.ws.WebServiceException;
- import javax.xml.ws.WebServiceFeature;
- /**
- * This class was generated by the JAX-WS RI.
- * JAX-WS RI 2.2.9-b130926.1035
- * Generated source version: 2.2
- *
- */
- @WebServiceClient(name = "afiiWS", targetNamespace = "http://service.afii.correios.com.br/", wsdlLocation = "https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl")
- public class AfiiWS
- extends Service
- {
- private final static URL AFIIWS_WSDL_LOCATION;
- private final static WebServiceException AFIIWS_EXCEPTION;
- private final static QName AFIIWS_QNAME = new QName("http://service.afii.correios.com.br/", "afiiWS");
- static {
- URL url = null;
- WebServiceException e = null;
- try {
- url = new URL("https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl");
- } catch (MalformedURLException ex) {
- e = new WebServiceException(ex);
- }
- AFIIWS_WSDL_LOCATION = url;
- AFIIWS_EXCEPTION = e;
- }
- public AfiiWS() {
- super(__getWsdlLocation(), AFIIWS_QNAME);
- }
- public AfiiWS(WebServiceFeature... features) {
- super(__getWsdlLocation(), AFIIWS_QNAME, features);
- }
- public AfiiWS(URL wsdlLocation) {
- super(wsdlLocation, AFIIWS_QNAME);
- }
- public AfiiWS(URL wsdlLocation, WebServiceFeature... features) {
- super(wsdlLocation, AFIIWS_QNAME, features);
- }
- public AfiiWS(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
- public AfiiWS(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
- super(wsdlLocation, serviceName, features);
- }
- /**
- *
- * @return
- * returns AfiiService
- */
- @WebEndpoint(name = "afiiServicePort")
- public AfiiService getAfiiServicePort() {
- return super.getPort(new QName("http://service.afii.correios.com.br/", "afiiServicePort"), AfiiService.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 AfiiService
- */
- @WebEndpoint(name = "afiiServicePort")
- public AfiiService getAfiiServicePort(WebServiceFeature... features) {
- return super.getPort(new QName("http://service.afii.correios.com.br/", "afiiServicePort"), AfiiService.class, features);
- }
- private static URL __getWsdlLocation() {
- if (AFIIWS_EXCEPTION!= null) {
- throw AFIIWS_EXCEPTION;
- }
- return AFIIWS_WSDL_LOCATION;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement