jaxws不支持SOAPBinding.Use.ENCODED

本文记录了使用wsgen工具生成Java代码时遇到的SOAP Binding错误,并详细展示了错误信息,包括不支持document/encoded类型的SOAP Binding及rpc/encoded风格的wsdl文件配置问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

用wsgen生成是报错

com.sun.tools.internal.ws.processor.modeler.ModelerException: modeler error: The
com.justel.voice.wappush.WSProvider class has invalid SOAPBinding annotation. d
ocument/encoded SOAPBinding is not supported
at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.o
nError(WebServiceAP.java:221)
at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceVisi
tor.pushSOAPBinding(WebServiceVisitor.java:259)
at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceVisi
tor.preProcessWebService(WebServiceVisitor.java:217)


kao 不支持就不要定义这个类型嘛

wsdl生成java时 rpc encoded 也出错
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="pushMSGPTP">
<wsdlsoap:operation soapAction=""/>
<wsdl:input>
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://211.94.69.12/pushhq/services/PushSVRService"/>
</wsdl:input>
<wsdl:output>
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://211.94.69.12/pushhq/services/PushSVRService"/>
</wsdl:output>
</wsdl:operation>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值