I have created SOAP web service with Axis2 engine ( server and client ) both using this link It is working fine. Eclipse plugin for client ( code gen using WSDL) created stub, callback handler, exposed method classes etc. All fine till now.
One of my friend given some project which also contains client with using axis2. This that project I can see some files like below :
`
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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="count" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"count"
})
@XmlRootElement(name = "deleteMultipleResponse")
public class DeleteMultipleResponse {
protected String count;
/**
* Gets the value of the count property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCount(String value) {
this.count = value;
}
}
`
There are multiple files in which I can see below and use of annotations.
` /**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="count" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
`
The project which I have created using this link does not generated any such file and any file which uses annotations.
Can you please explain the difference.