Skip to content

Commit 126838b

Browse files
proxy generated
1 parent 6a760dc commit 126838b

28 files changed

+854
-1
lines changed

README.md

328 Bytes

plugin

  • Generating by: Help > find action > generate ...

generate

generate

Result proxy

pro

soap-jws-webservice-client/src/main/java/org/example/Main.java renamed to soap-jws-webservice-client/src/main/java/me/elaamiri/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.example;
1+
package me.elaamiri;
22

33
public class Main {
44
public static void main(String[] args) {
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version='1.0' encoding='UTF-8'?><!-- Published by XML-WS Runtime (https://github.com/eclipse-ee4j/metro-jax-ws). Runtime's version is XML-WS Runtime 4.0.0 git-revision#129f787. --><!-- Generated by XML-WS Runtime (https://github.com/eclipse-ee4j/metro-jax-ws). Runtime's version is XML-WS Runtime 4.0.0 git-revision#129f787. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservice.elaamiri.me/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://webservice.elaamiri.me/" name="BankWS">
2+
<types>
3+
<xsd:schema>
4+
<xsd:import namespace="http://webservice.elaamiri.me/" schemaLocation="http://localhost:9292/?xsd=1"/>
5+
</xsd:schema>
6+
</types>
7+
<message name="covert">
8+
<part name="parameters" element="tns:covert"/>
9+
</message>
10+
<message name="covertResponse">
11+
<part name="parameters" element="tns:covertResponse"/>
12+
</message>
13+
<message name="getAccount">
14+
<part name="parameters" element="tns:getAccount"/>
15+
</message>
16+
<message name="getAccountResponse">
17+
<part name="parameters" element="tns:getAccountResponse"/>
18+
</message>
19+
<message name="getAccounts">
20+
<part name="parameters" element="tns:getAccounts"/>
21+
</message>
22+
<message name="getAccountsResponse">
23+
<part name="parameters" element="tns:getAccountsResponse"/>
24+
</message>
25+
<portType name="BankWebservice">
26+
<operation name="covert">
27+
<input wsam:Action="http://webservice.elaamiri.me/BankWebservice/covertRequest" message="tns:covert"/>
28+
<output wsam:Action="http://webservice.elaamiri.me/BankWebservice/covertResponse" message="tns:covertResponse"/>
29+
</operation>
30+
<operation name="getAccount">
31+
<input wsam:Action="http://webservice.elaamiri.me/BankWebservice/getAccountRequest" message="tns:getAccount"/>
32+
<output wsam:Action="http://webservice.elaamiri.me/BankWebservice/getAccountResponse" message="tns:getAccountResponse"/>
33+
</operation>
34+
<operation name="getAccounts">
35+
<input wsam:Action="http://webservice.elaamiri.me/BankWebservice/getAccountsRequest" message="tns:getAccounts"/>
36+
<output wsam:Action="http://webservice.elaamiri.me/BankWebservice/getAccountsResponse" message="tns:getAccountsResponse"/>
37+
</operation>
38+
</portType>
39+
<binding name="BankWebservicePortBinding" type="tns:BankWebservice">
40+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
41+
<operation name="covert">
42+
<soap:operation soapAction=""/>
43+
<input>
44+
<soap:body use="literal"/>
45+
</input>
46+
<output>
47+
<soap:body use="literal"/>
48+
</output>
49+
</operation>
50+
<operation name="getAccount">
51+
<soap:operation soapAction=""/>
52+
<input>
53+
<soap:body use="literal"/>
54+
</input>
55+
<output>
56+
<soap:body use="literal"/>
57+
</output>
58+
</operation>
59+
<operation name="getAccounts">
60+
<soap:operation soapAction=""/>
61+
<input>
62+
<soap:body use="literal"/>
63+
</input>
64+
<output>
65+
<soap:body use="literal"/>
66+
</output>
67+
</operation>
68+
</binding>
69+
<service name="BankWS">
70+
<port name="BankWebservicePort" binding="tns:BankWebservicePortBinding">
71+
<soap:address location="http://localhost:9292/"/>
72+
</port>
73+
</service>
74+
</definitions>
Binary file not shown.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
2+
package me.elaamiri.proxy;
3+
4+
import javax.xml.datatype.XMLGregorianCalendar;
5+
import jakarta.xml.bind.annotation.XmlAccessType;
6+
import jakarta.xml.bind.annotation.XmlAccessorType;
7+
import jakarta.xml.bind.annotation.XmlSchemaType;
8+
import jakarta.xml.bind.annotation.XmlType;
9+
10+
11+
/**
12+
* <p>Java class for account complex type.
13+
*
14+
* <p>The following schema fragment specifies the expected content contained within this class.
15+
*
16+
* <pre>{@code
17+
* <complexType name="account">
18+
* <complexContent>
19+
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20+
* <sequence>
21+
* <element name="balance" type="{http://www.w3.org/2001/XMLSchema}double"/>
22+
* <element name="code" type="{http://www.w3.org/2001/XMLSchema}int"/>
23+
* <element name="createdAt" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
24+
* </sequence>
25+
* </restriction>
26+
* </complexContent>
27+
* </complexType>
28+
* }</pre>
29+
*
30+
*
31+
*/
32+
@XmlAccessorType(XmlAccessType.FIELD)
33+
@XmlType(name = "account", propOrder = {
34+
"balance",
35+
"code",
36+
"createdAt"
37+
})
38+
public class Account {
39+
40+
protected double balance;
41+
protected int code;
42+
@XmlSchemaType(name = "dateTime")
43+
protected XMLGregorianCalendar createdAt;
44+
45+
/**
46+
* Gets the value of the balance property.
47+
*
48+
*/
49+
public double getBalance() {
50+
return balance;
51+
}
52+
53+
/**
54+
* Sets the value of the balance property.
55+
*
56+
*/
57+
public void setBalance(double value) {
58+
this.balance = value;
59+
}
60+
61+
/**
62+
* Gets the value of the code property.
63+
*
64+
*/
65+
public int getCode() {
66+
return code;
67+
}
68+
69+
/**
70+
* Sets the value of the code property.
71+
*
72+
*/
73+
public void setCode(int value) {
74+
this.code = value;
75+
}
76+
77+
/**
78+
* Gets the value of the createdAt property.
79+
*
80+
* @return
81+
* possible object is
82+
* {@link XMLGregorianCalendar }
83+
*
84+
*/
85+
public XMLGregorianCalendar getCreatedAt() {
86+
return createdAt;
87+
}
88+
89+
/**
90+
* Sets the value of the createdAt property.
91+
*
92+
* @param value
93+
* allowed object is
94+
* {@link XMLGregorianCalendar }
95+
*
96+
*/
97+
public void setCreatedAt(XMLGregorianCalendar value) {
98+
this.createdAt = value;
99+
}
100+
101+
}
Binary file not shown.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
2+
package me.elaamiri.proxy;
3+
4+
import java.net.MalformedURLException;
5+
import java.net.URL;
6+
import javax.xml.namespace.QName;
7+
import jakarta.xml.ws.Service;
8+
import jakarta.xml.ws.WebEndpoint;
9+
import jakarta.xml.ws.WebServiceClient;
10+
import jakarta.xml.ws.WebServiceException;
11+
import jakarta.xml.ws.WebServiceFeature;
12+
13+
14+
/**
15+
* This class was generated by the XML-WS Tools.
16+
* XML-WS Tools 4.0.0
17+
* Generated source version: 3.0
18+
*
19+
*/
20+
@WebServiceClient(name = "BankWS", targetNamespace = "http://webservice.elaamiri.me/", wsdlLocation = "http://localhost:9292/BankWS/?wsdl")
21+
public class BankWS
22+
extends Service
23+
{
24+
25+
private final static URL BANKWS_WSDL_LOCATION;
26+
private final static WebServiceException BANKWS_EXCEPTION;
27+
private final static QName BANKWS_QNAME = new QName("http://webservice.elaamiri.me/", "BankWS");
28+
29+
static {
30+
URL url = null;
31+
WebServiceException e = null;
32+
try {
33+
url = new URL("http://localhost:9292/BankWS/?wsdl");
34+
} catch (MalformedURLException ex) {
35+
e = new WebServiceException(ex);
36+
}
37+
BANKWS_WSDL_LOCATION = url;
38+
BANKWS_EXCEPTION = e;
39+
}
40+
41+
public BankWS() {
42+
super(__getWsdlLocation(), BANKWS_QNAME);
43+
}
44+
45+
public BankWS(WebServiceFeature... features) {
46+
super(__getWsdlLocation(), BANKWS_QNAME, features);
47+
}
48+
49+
public BankWS(URL wsdlLocation) {
50+
super(wsdlLocation, BANKWS_QNAME);
51+
}
52+
53+
public BankWS(URL wsdlLocation, WebServiceFeature... features) {
54+
super(wsdlLocation, BANKWS_QNAME, features);
55+
}
56+
57+
public BankWS(URL wsdlLocation, QName serviceName) {
58+
super(wsdlLocation, serviceName);
59+
}
60+
61+
public BankWS(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
62+
super(wsdlLocation, serviceName, features);
63+
}
64+
65+
/**
66+
*
67+
* @return
68+
* returns BankWebservice
69+
*/
70+
@WebEndpoint(name = "BankWebservicePort")
71+
public BankWebservice getBankWebservicePort() {
72+
return super.getPort(new QName("http://webservice.elaamiri.me/", "BankWebservicePort"), BankWebservice.class);
73+
}
74+
75+
/**
76+
*
77+
* @param features
78+
* A list of {@link jakarta.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 BankWebservice
81+
*/
82+
@WebEndpoint(name = "BankWebservicePort")
83+
public BankWebservice getBankWebservicePort(WebServiceFeature... features) {
84+
return super.getPort(new QName("http://webservice.elaamiri.me/", "BankWebservicePort"), BankWebservice.class, features);
85+
}
86+
87+
private static URL __getWsdlLocation() {
88+
if (BANKWS_EXCEPTION!= null) {
89+
throw BANKWS_EXCEPTION;
90+
}
91+
return BANKWS_WSDL_LOCATION;
92+
}
93+
94+
}
Binary file not shown.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
package me.elaamiri.proxy;
3+
4+
import java.util.List;
5+
import jakarta.jws.WebMethod;
6+
import jakarta.jws.WebParam;
7+
import jakarta.jws.WebResult;
8+
import jakarta.jws.WebService;
9+
import jakarta.xml.bind.annotation.XmlSeeAlso;
10+
import jakarta.xml.ws.Action;
11+
import jakarta.xml.ws.RequestWrapper;
12+
import jakarta.xml.ws.ResponseWrapper;
13+
14+
15+
/**
16+
* This class was generated by the XML-WS Tools.
17+
* XML-WS Tools 4.0.0
18+
* Generated source version: 3.0
19+
*
20+
*/
21+
@WebService(name = "BankWebservice", targetNamespace = "http://webservice.elaamiri.me/")
22+
@XmlSeeAlso({
23+
ObjectFactory.class
24+
})
25+
public interface BankWebservice {
26+
27+
28+
/**
29+
*
30+
* @param amount
31+
* @return
32+
* returns double
33+
*/
34+
@WebMethod
35+
@WebResult(targetNamespace = "")
36+
@RequestWrapper(localName = "covert", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.Covert")
37+
@ResponseWrapper(localName = "covertResponse", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.CovertResponse")
38+
@Action(input = "http://webservice.elaamiri.me/BankWebservice/covertRequest", output = "http://webservice.elaamiri.me/BankWebservice/covertResponse")
39+
public double covert(
40+
@WebParam(name = "amount", targetNamespace = "")
41+
double amount);
42+
43+
/**
44+
*
45+
* @param code
46+
* @return
47+
* returns me.elaamiri.proxy.Account
48+
*/
49+
@WebMethod
50+
@WebResult(targetNamespace = "")
51+
@RequestWrapper(localName = "getAccount", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.GetAccount")
52+
@ResponseWrapper(localName = "getAccountResponse", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.GetAccountResponse")
53+
@Action(input = "http://webservice.elaamiri.me/BankWebservice/getAccountRequest", output = "http://webservice.elaamiri.me/BankWebservice/getAccountResponse")
54+
public Account getAccount(
55+
@WebParam(name = "code", targetNamespace = "")
56+
int code);
57+
58+
/**
59+
*
60+
* @return
61+
* returns java.util.List<me.elaamiri.proxy.Account>
62+
*/
63+
@WebMethod
64+
@WebResult(targetNamespace = "")
65+
@RequestWrapper(localName = "getAccounts", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.GetAccounts")
66+
@ResponseWrapper(localName = "getAccountsResponse", targetNamespace = "http://webservice.elaamiri.me/", className = "me.elaamiri.proxy.GetAccountsResponse")
67+
@Action(input = "http://webservice.elaamiri.me/BankWebservice/getAccountsRequest", output = "http://webservice.elaamiri.me/BankWebservice/getAccountsResponse")
68+
public List<Account> getAccounts();
69+
70+
}
Binary file not shown.

0 commit comments

Comments
 (0)