jaxws不支持SOAPBinding.Use.ENCODED

用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>

你可能感兴趣的:(java,sun)