欢迎光临
我们一直在努力

webservice服务报错:javax.xml.bind.MarshalException

webservice服务报错,信息如下:

javax.xml.bind.MarshalException
 - with linked exception:
[com.sun.istack.SAXException2: unable to marshal type "wsstub.sscm.importShipAdviceInfoRouteSrv.InputParameters" as an element because it is missing an @XmlRootElement annotation]

错误原因,实体类缺少注解@XmlRootElement,加上即可,如下:

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InputParameters", propOrder = {
    "inputcollection",
    "msgheader"
})
@XmlRootElement(name="InputParameters")
public class InputParameters {

}
赞(0) 打赏
未经允许不得转载:Ddmit » webservice服务报错:javax.xml.bind.MarshalException

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册