用wsgen生成是报错
kao 不支持就不要定义这个类型嘛
wsdl生成java时 rpc encoded 也出错
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>
本文记录了使用wsgen工具生成Java代码时遇到的SOAP Binding错误,并详细展示了错误信息,包括不支持document/encoded类型的SOAP Binding及rpc/encoded风格的wsdl文件配置问题。
4992

被折叠的 条评论
为什么被折叠?



