Subversion Repositories SmartDukaan

Rev

Rev 20664 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20664 Rev 22598
Line 19... Line 19...
19
 
19
 
20
    public Service_1_0_ServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
20
    public Service_1_0_ServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21
        super(wsdlLoc, sName);
21
        super(wsdlLoc, sName);
22
    }
22
    }
23
 
23
 
-
 
24
    // Use to get a proxy class for BasicHttpBinding_Service_1_01
-
 
25
    private java.lang.String BasicHttpBinding_Service_1_01_address = "https://ws.aramex.net/ShippingAPI.V2/Shipping/Service_1_0.svc";
-
 
26
 
-
 
27
    public java.lang.String getBasicHttpBinding_Service_1_01Address() {
-
 
28
        return BasicHttpBinding_Service_1_01_address;
-
 
29
    }
-
 
30
 
-
 
31
    // The WSDD service name defaults to the port name.
-
 
32
    private java.lang.String BasicHttpBinding_Service_1_01WSDDServiceName = "BasicHttpBinding_Service_1_01";
-
 
33
 
-
 
34
    public java.lang.String getBasicHttpBinding_Service_1_01WSDDServiceName() {
-
 
35
        return BasicHttpBinding_Service_1_01WSDDServiceName;
-
 
36
    }
-
 
37
 
-
 
38
    public void setBasicHttpBinding_Service_1_01WSDDServiceName(java.lang.String name) {
-
 
39
        BasicHttpBinding_Service_1_01WSDDServiceName = name;
-
 
40
    }
-
 
41
 
-
 
42
    public com.aramex.stub.Service_1_0_PortType getBasicHttpBinding_Service_1_01() throws javax.xml.rpc.ServiceException {
-
 
43
       java.net.URL endpoint;
-
 
44
        try {
-
 
45
            endpoint = new java.net.URL(BasicHttpBinding_Service_1_01_address);
-
 
46
        }
-
 
47
        catch (java.net.MalformedURLException e) {
-
 
48
            throw new javax.xml.rpc.ServiceException(e);
-
 
49
        }
-
 
50
        return getBasicHttpBinding_Service_1_01(endpoint);
-
 
51
    }
-
 
52
 
-
 
53
    public com.aramex.stub.Service_1_0_PortType getBasicHttpBinding_Service_1_01(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
-
 
54
        try {
-
 
55
            com.aramex.stub.BasicHttpBinding_Service_1_01Stub _stub = new com.aramex.stub.BasicHttpBinding_Service_1_01Stub(portAddress, this);
-
 
56
            _stub.setPortName(getBasicHttpBinding_Service_1_01WSDDServiceName());
-
 
57
            return _stub;
-
 
58
        }
-
 
59
        catch (org.apache.axis.AxisFault e) {
-
 
60
            return null;
-
 
61
        }
-
 
62
    }
-
 
63
 
-
 
64
    public void setBasicHttpBinding_Service_1_01EndpointAddress(java.lang.String address) {
-
 
65
        BasicHttpBinding_Service_1_01_address = address;
-
 
66
    }
-
 
67
 
-
 
68
 
24
    // Use to get a proxy class for BasicHttpBinding_Service_1_0
69
    // Use to get a proxy class for BasicHttpBinding_Service_1_0
25
    //private java.lang.String BasicHttpBinding_Service_1_0_address = "https://ws.dev.aramex.net/ShippingAPI.V2/Shipping/Service_1_0.svc";
70
    private java.lang.String BasicHttpBinding_Service_1_0_address = "http://ws.aramex.net/ShippingAPI.V2/Shipping/Service_1_0.svc";
26
    private java.lang.String BasicHttpBinding_Service_1_0_address = "http://ws.aramex.net/shippingapi/shipping/service_1_0.svc";
-
 
27
 
71
 
28
    public java.lang.String getBasicHttpBinding_Service_1_0Address() {
72
    public java.lang.String getBasicHttpBinding_Service_1_0Address() {
29
        return BasicHttpBinding_Service_1_0_address;
73
        return BasicHttpBinding_Service_1_0_address;
30
    }
74
    }
31
 
75
 
Line 68... Line 112...
68
 
112
 
69
    /**
113
    /**
70
     * For the given interface, get the stub implementation.
114
     * For the given interface, get the stub implementation.
71
     * If this service has no port for the given interface,
115
     * If this service has no port for the given interface,
72
     * then ServiceException is thrown.
116
     * then ServiceException is thrown.
-
 
117
     * This service has multiple ports for a given interface;
-
 
118
     * the proxy implementation returned may be indeterminate.
73
     */
119
     */
74
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
120
    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
75
        try {
121
        try {
76
            if (com.aramex.stub.Service_1_0_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
122
            if (com.aramex.stub.Service_1_0_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
-
 
123
                com.aramex.stub.BasicHttpBinding_Service_1_01Stub _stub = new com.aramex.stub.BasicHttpBinding_Service_1_01Stub(new java.net.URL(BasicHttpBinding_Service_1_01_address), this);
-
 
124
                _stub.setPortName(getBasicHttpBinding_Service_1_01WSDDServiceName());
-
 
125
                return _stub;
-
 
126
            }
-
 
127
            if (com.aramex.stub.Service_1_0_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
77
                com.aramex.stub.BasicHttpBinding_Service_1_0Stub _stub = new com.aramex.stub.BasicHttpBinding_Service_1_0Stub(new java.net.URL(BasicHttpBinding_Service_1_0_address), this);
128
                com.aramex.stub.BasicHttpBinding_Service_1_0Stub _stub = new com.aramex.stub.BasicHttpBinding_Service_1_0Stub(new java.net.URL(BasicHttpBinding_Service_1_0_address), this);
78
                _stub.setPortName(getBasicHttpBinding_Service_1_0WSDDServiceName());
129
                _stub.setPortName(getBasicHttpBinding_Service_1_0WSDDServiceName());
79
                return _stub;
130
                return _stub;
80
            }
131
            }
81
        }
132
        }
Line 93... Line 144...
93
    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
144
    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
94
        if (portName == null) {
145
        if (portName == null) {
95
            return getPort(serviceEndpointInterface);
146
            return getPort(serviceEndpointInterface);
96
        }
147
        }
97
        java.lang.String inputPortName = portName.getLocalPart();
148
        java.lang.String inputPortName = portName.getLocalPart();
98
        if ("BasicHttpBinding_Service_1_0".equals(inputPortName)) {
149
        if ("BasicHttpBinding_Service_1_01".equals(inputPortName)) {
-
 
150
            return getBasicHttpBinding_Service_1_01();
-
 
151
        }
-
 
152
        else if ("BasicHttpBinding_Service_1_0".equals(inputPortName)) {
99
            return getBasicHttpBinding_Service_1_0();
153
            return getBasicHttpBinding_Service_1_0();
100
        }
154
        }
101
        else  {
155
        else  {
102
            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
156
            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
103
            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
157
            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
Line 112... Line 166...
112
    private java.util.HashSet ports = null;
166
    private java.util.HashSet ports = null;
113
 
167
 
114
    public java.util.Iterator getPorts() {
168
    public java.util.Iterator getPorts() {
115
        if (ports == null) {
169
        if (ports == null) {
116
            ports = new java.util.HashSet();
170
            ports = new java.util.HashSet();
-
 
171
            ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_Service_1_01"));
117
            ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_Service_1_0"));
172
            ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_Service_1_0"));
118
        }
173
        }
119
        return ports.iterator();
174
        return ports.iterator();
120
    }
175
    }
121
 
176
 
122
    /**
177
    /**
123
    * Set the endpoint address for the specified port name.
178
    * Set the endpoint address for the specified port name.
124
    */
179
    */
125
    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
180
    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
126
        
181
        
-
 
182
if ("BasicHttpBinding_Service_1_01".equals(portName)) {
-
 
183
            setBasicHttpBinding_Service_1_01EndpointAddress(address);
-
 
184
        }
-
 
185
        else 
127
if ("BasicHttpBinding_Service_1_0".equals(portName)) {
186
if ("BasicHttpBinding_Service_1_0".equals(portName)) {
128
            setBasicHttpBinding_Service_1_0EndpointAddress(address);
187
            setBasicHttpBinding_Service_1_0EndpointAddress(address);
129
        }
188
        }
130
        else 
189
        else 
131
{ // Unknown Port Name
190
{ // Unknown Port Name