Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW AVDIENKO #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,40 +62,6 @@
<release>1.8</release>
</configuration>
</plugin>
<!-- usage of jax-ws maven plugin-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>wsimport-from-jdk</id>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- using wsdl from an url -->
<wsdlUrls>
<wsdlUrl>
http://www.thomas-bayer.com/axis2/services/BLZService?wsdl
</wsdlUrl>
</wsdlUrls>
<!-- or using wsdls file directory -->
<!-- <wsdlDirectory>src/wsdl</wsdlDirectory> -->
<!-- which wsdl file -->
<!-- <wsdlFiles> -->
<!-- <wsdlFile>myWSDL.wsdl</wsdlFile> -->
<!--</wsdlFiles> -->
<!-- Keep generated files -->
<keep>true</keep>
<!-- Package name -->
<packageName>generated</packageName>
<!-- generated source files destination-->
<sourceDestDir>src/generated/java</sourceDestDir>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down
73 changes: 73 additions & 0 deletions src/generated/java/generated/org/tempuri/Add.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@

package generated.org.tempuri;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="intA" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="intB" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"intA",
"intB"
})
@XmlRootElement(name = "Add")
public class Add {

protected int intA;
protected int intB;

/**
* Gets the value of the intA property.
*
*/
public int getIntA() {
return intA;
}

/**
* Sets the value of the intA property.
*
*/
public void setIntA(int value) {
this.intA = value;
}

/**
* Gets the value of the intB property.
*
*/
public int getIntB() {
return intB;
}

/**
* Sets the value of the intB property.
*
*/
public void setIntB(int value) {
this.intB = value;
}

}
56 changes: 56 additions & 0 deletions src/generated/java/generated/org/tempuri/AddResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

package generated.org.tempuri;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="AddResult" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"addResult"
})
@XmlRootElement(name = "AddResponse")
public class AddResponse {

@XmlElement(name = "AddResult")
protected int addResult;

/**
* Gets the value of the addResult property.
*
*/
public int getAddResult() {
return addResult;
}

/**
* Sets the value of the addResult property.
*
*/
public void setAddResult(int value) {
this.addResult = value;
}

}
97 changes: 97 additions & 0 deletions src/generated/java/generated/org/tempuri/Calculator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@

package generated.org.tempuri;

import org.springframework.context.annotation.Bean;

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 = "Calculator", targetNamespace = "http://tempuri.org/", wsdlLocation = "file:/D:/JavaProject/perlab/testng-spring-soap/calc.xml")
public class Calculator
extends Service
{

private final static URL CALCULATOR_WSDL_LOCATION;
private final static WebServiceException CALCULATOR_EXCEPTION;
private final static QName CALCULATOR_QNAME = new QName("http://tempuri.org/", "Calculator");

static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("file:/D:/JavaProject/perlab/testng-spring-soap/calc.xml");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
CALCULATOR_WSDL_LOCATION = url;
CALCULATOR_EXCEPTION = e;
}

public Calculator() {
super(__getWsdlLocation(), CALCULATOR_QNAME);
}

public Calculator(WebServiceFeature... features) {
super(__getWsdlLocation(), CALCULATOR_QNAME, features);
}

public Calculator(URL wsdlLocation) {
super(wsdlLocation, CALCULATOR_QNAME);
}

public Calculator(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, CALCULATOR_QNAME, features);
}

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

public Calculator(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}

/**
*
* @return
* returns CalculatorSoap
*/
@WebEndpoint(name = "CalculatorSoap")
public CalculatorSoap getCalculatorSoap() {
return super.getPort(new QName("http://tempuri.org/", "CalculatorSoap"), CalculatorSoap.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 CalculatorSoap
*/
@WebEndpoint(name = "CalculatorSoap")
public CalculatorSoap getCalculatorSoap(WebServiceFeature... features) {
return super.getPort(new QName("http://tempuri.org/", "CalculatorSoap"), CalculatorSoap.class, features);
}

private static URL __getWsdlLocation() {
if (CALCULATOR_EXCEPTION!= null) {
throw CALCULATOR_EXCEPTION;
}
return CALCULATOR_WSDL_LOCATION;
}

}
95 changes: 95 additions & 0 deletions src/generated/java/generated/org/tempuri/CalculatorSoap.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@

package generated.org.tempuri;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;


/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebService(name = "CalculatorSoap", targetNamespace = "http://tempuri.org/")
@XmlSeeAlso({
ObjectFactory.class
})
public interface CalculatorSoap {


/**
* Adds two integers. This is a test WebService. �DNE Online
*
* @param intB
* @param intA
* @return
* returns int
*/
@WebMethod(operationName = "Add", action = "http://tempuri.org/Add")
@WebResult(name = "AddResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "Add", targetNamespace = "http://tempuri.org/", className = "org.tempuri.Add")
@ResponseWrapper(localName = "AddResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.AddResponse")
public int add(
@WebParam(name = "intA", targetNamespace = "http://tempuri.org/")
int intA,
@WebParam(name = "intB", targetNamespace = "http://tempuri.org/")
int intB);

/**
*
* @param intB
* @param intA
* @return
* returns int
*/
@WebMethod(operationName = "Subtract", action = "http://tempuri.org/Subtract")
@WebResult(name = "SubtractResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "Subtract", targetNamespace = "http://tempuri.org/", className = "org.tempuri.Subtract")
@ResponseWrapper(localName = "SubtractResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.SubtractResponse")
public int subtract(
@WebParam(name = "intA", targetNamespace = "http://tempuri.org/")
int intA,
@WebParam(name = "intB", targetNamespace = "http://tempuri.org/")
int intB);

/**
*
* @param intB
* @param intA
* @return
* returns int
*/
@WebMethod(operationName = "Multiply", action = "http://tempuri.org/Multiply")
@WebResult(name = "MultiplyResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "Multiply", targetNamespace = "http://tempuri.org/", className = "org.tempuri.Multiply")
@ResponseWrapper(localName = "MultiplyResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.MultiplyResponse")
public int multiply(
@WebParam(name = "intA", targetNamespace = "http://tempuri.org/")
int intA,
@WebParam(name = "intB", targetNamespace = "http://tempuri.org/")
int intB);

/**
*
* @param intB
* @param intA
* @return
* returns int
*/
@WebMethod(operationName = "Divide", action = "http://tempuri.org/Divide")
@WebResult(name = "DivideResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "Divide", targetNamespace = "http://tempuri.org/", className = "org.tempuri.Divide")
@ResponseWrapper(localName = "DivideResponse", targetNamespace = "http://tempuri.org/", className = "org.tempuri.DivideResponse")
public int divide(
@WebParam(name = "intA", targetNamespace = "http://tempuri.org/")
int intA,
@WebParam(name = "intB", targetNamespace = "http://tempuri.org/")
int intB);

}
Loading