Xsd wsdl中复杂类型的响应消息中元素的顺序错误

Xsd wsdl中复杂类型的响应消息中元素的顺序错误,xsd,wsdl,axis,Xsd,Wsdl,Axis,我使用axis+ant+jboss生成了一个wsdl文件 超类ActionInfo wsdl定义: 代码: 但我的期望是: 代码: 此链接描述了Axis的问题 因此,我尝试使用JbossWS+JAXB生成不同的wsdl文件。两人都在按字母顺序回答。是否有任何方法可以更改响应元素的顺序 提前感谢。您可以在@XmlType注释上指定比例器来指定元素的顺序 @XmlType(propOrder={"ID", "firstName", "lastName"}) public class Customer

我使用axis+ant+jboss生成了一个wsdl文件

超类ActionInfo wsdl定义:

代码:

但我的期望是:

代码:

此链接描述了Axis的问题

因此,我尝试使用JbossWS+JAXB生成不同的wsdl文件。两人都在按字母顺序回答。是否有任何方法可以更改响应元素的顺序


提前感谢。

您可以在
@XmlType
注释上指定
比例器来指定元素的顺序

@XmlType(propOrder={"ID", "firstName", "lastName"})
public class Customer {
   ..
}
了解更多信息


我知道我正在响应旧线程。。但比例器不适合我。为了利用jaxb功能,我需要使用任何特殊的工具吗?@priceline-您能为您看到的问题发布一个新问题吗?
<complexType name="PushActionInfo">
<complexContent>
 <extension base="tns19:ActionInfo">
  <sequence>
   <element name="activationMethod" nillable="true" type="xsd:string"/>
   <element name="activationRequired" type="xsd:boolean"/>
   <element name="binaryContent" type="xsd:boolean"/>
   <element name="category" nillable="true" type="xsd:string"/>
   <element name="contentType" nillable="true" type="xsd:string"/>
   <element name="destinationName" nillable="true" type="xsd:string"/>
   <element name="dynamic" type="xsd:boolean"/>
   <element name="maskableContent" nillable="true" type="tns2:MaskableContentInfo"/>
   <element name="payloadName" nillable="true" type="xsd:string"/>
   <element name="postOps" nillable="true" type="impl:ArrayOf_xsd_string"/>
   <element name="pushMechanism" type="xsd:int"/>
   <element name="rollback" type="xsd:boolean"/>
   <element name="snmpEnabled" type="xsd:boolean"/>
  </sequence>
 </extension>
 </complexContent>
 </complexType>
PushActionInfo (current)
activationMethod
activationRequired
binaryContent
category
configUnitId – extension of ActionInfo
configUnitType - extension of ActionInfo
contentType
desc - extension of ActionInfo
destinationName
dynamic
errorCode - extension of ActionInfo
id - extension
maskableContent
payloadName
postOps
pushMechanism
result - extension of ActionInfo
rollback
snmpEnabled
status - extension of ActionInfo
configUnitId – extension of ActionInfo
configUnitType - extension of ActionInfo
desc - extension of ActionInfo
errorCode - extension of ActionInfo
result - extension of ActionInfo
status - extension of ActionInfo
activationMethod
activationRequired
binaryContent
category
contentType
destinationName
dynamic
id - extension
maskableContent
payloadName
postOps
pushMechanism
rollback
snmpEnabled
@XmlType(propOrder={"ID", "firstName", "lastName"})
public class Customer {
   ..
}