SHARE
TWEET

Untitled

a guest Aug 10th, 2014 214 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. package br.com.correios.afii.service;
  3.  
  4. import java.net.MalformedURLException;
  5. import java.net.URL;
  6. import javax.xml.namespace.QName;
  7. import javax.xml.ws.Service;
  8. import javax.xml.ws.WebEndpoint;
  9. import javax.xml.ws.WebServiceClient;
  10. import javax.xml.ws.WebServiceException;
  11. import javax.xml.ws.WebServiceFeature;
  12.  
  13.  
  14. /**
  15.  * This class was generated by the JAX-WS RI.
  16.  * JAX-WS RI 2.2.9-b130926.1035
  17.  * Generated source version: 2.2
  18.  *
  19.  */
  20. @WebServiceClient(name = "afiiWS", targetNamespace = "http://service.afii.correios.com.br/", wsdlLocation = "https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl")
  21. public class AfiiWS
  22.     extends Service
  23. {
  24.  
  25.     private final static URL AFIIWS_WSDL_LOCATION;
  26.     private final static WebServiceException AFIIWS_EXCEPTION;
  27.     private final static QName AFIIWS_QNAME = new QName("http://service.afii.correios.com.br/", "afiiWS");
  28.  
  29.     static {
  30.         URL url = null;
  31.         WebServiceException e = null;
  32.         try {
  33.             url = new URL("https://apphom.correios.com.br/afiiWS-v1.0/afiiWS/afiiService?wsdl");
  34.         } catch (MalformedURLException ex) {
  35.             e = new WebServiceException(ex);
  36.         }
  37.         AFIIWS_WSDL_LOCATION = url;
  38.         AFIIWS_EXCEPTION = e;
  39.     }
  40.  
  41.     public AfiiWS() {
  42.         super(__getWsdlLocation(), AFIIWS_QNAME);
  43.     }
  44.  
  45.     public AfiiWS(WebServiceFeature... features) {
  46.         super(__getWsdlLocation(), AFIIWS_QNAME, features);
  47.     }
  48.  
  49.     public AfiiWS(URL wsdlLocation) {
  50.         super(wsdlLocation, AFIIWS_QNAME);
  51.     }
  52.  
  53.     public AfiiWS(URL wsdlLocation, WebServiceFeature... features) {
  54.         super(wsdlLocation, AFIIWS_QNAME, features);
  55.     }
  56.  
  57.     public AfiiWS(URL wsdlLocation, QName serviceName) {
  58.         super(wsdlLocation, serviceName);
  59.     }
  60.  
  61.     public AfiiWS(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
  62.         super(wsdlLocation, serviceName, features);
  63.     }
  64.  
  65.     /**
  66.      *
  67.      * @return
  68.      *     returns AfiiService
  69.      */
  70.     @WebEndpoint(name = "afiiServicePort")
  71.     public AfiiService getAfiiServicePort() {
  72.         return super.getPort(new QName("http://service.afii.correios.com.br/", "afiiServicePort"), AfiiService.class);
  73.     }
  74.  
  75.     /**
  76.      *
  77.      * @param features
  78.      *     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.
  79.      * @return
  80.      *     returns AfiiService
  81.      */
  82.     @WebEndpoint(name = "afiiServicePort")
  83.     public AfiiService getAfiiServicePort(WebServiceFeature... features) {
  84.         return super.getPort(new QName("http://service.afii.correios.com.br/", "afiiServicePort"), AfiiService.class, features);
  85.     }
  86.  
  87.     private static URL __getWsdlLocation() {
  88.         if (AFIIWS_EXCEPTION!= null) {
  89.             throw AFIIWS_EXCEPTION;
  90.         }
  91.         return AFIIWS_WSDL_LOCATION;
  92.     }
  93.  
  94. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top