我做了一个java调用。net服务的时候在生成客户端时出现 WS-I: (BP2402) The wsdl:binding element does not use a soapbind:binding element as defined in section "3 SOAP Binding." of the WSDL 1.1 specification这个问题,.net 那边是用08做的,我在网上找了很多资料有的说是什么格式问题说axis是用rpc .net那用doc格式说是。net那边要改格式,之前也有人遇到这个问题,不过不知道是怎么解决的用,我用的是myecplise6.5 它默认的是jax-ws 是不是版本问题的啊,希望高手指点下,弄了一上午了  郁闷 。

解决方案 »

  1.   

    <binding name="bindingSendSMSService" type="tns:typeSendSMSService">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="SendSMS">
                <soap:operation soapAction="SendSMS"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
     </binding>
      

  2.   

    他那边生成的 wsdl 是什么??  你用xfire 啊