简体   繁体   中英

Apache CXF client generated from wsdl to java- HTTP conduit could not initiate

I Have wsdl similler to bellow wsdl

< some content >
<wsdl:service name="SomeService">
    <wsdl:port binding="tns:SomeServiceBinding"
               name="SomeServicePort">
      <wsaw:UsingAddressing wsdl:required="true" />
      <wsp:Policy>
        <wsam:Addressing>
          <wsp:Policy />
        </wsam:Addressing>
      </wsp:Policy>
      <soap:address location="ws://companyname.com/data/Afte/SomeService/V1"/>
     </wsdl:port>
  </wsdl:service>
<some content >

From wsdl soap address is ws addressing , I have converted wsdl to java using wsdl2java tool and using apache cxf to create client.

Getting following error when try to call client: java.lang.RuntimeException: Could not find conduit initiator for address: ws://companyname.com/data/Afte/SomeService/V1 and transport...

The soap:address URL starts with "ws://". Change that to "http://". Not sure why it would be "ws". Not really a known protocol.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM