【发布时间】:2014-06-06 09:10:51
【问题描述】:
我已经使用link 创建了带有 Axis2 引擎(服务器和客户端)的 SOAP Web 服务 它工作正常。客户端的 Eclipse 插件(使用 WSDL 的代码生成)创建了存根、回调处理程序、公开的方法类等。到目前为止一切正常。
我的一个朋友给出了一些项目,其中还包含使用axis2的客户端。这个项目我可以看到一些文件,如下所示:
`
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;
}
}
`
我可以在下面看到多个文件以及注释的使用。
` /**
* <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>
*
*
*/
`
我使用这个link 创建的项目没有生成任何此类文件和任何使用注释的文件。
你能解释一下区别吗?
【问题讨论】:
标签: java web-services soap axis2