简体   繁体   中英

wsdlLocation not picking up wsdl

I have a VERY simple Spring WS with CFX. The familiar HelloWorld example. Everything works fine, except the wsdlLocation of the jaxws:endpoint. my bean definition looks like this:

<jaxws:endpoint id="helloTest"
  implementor="com.michael.ws.HelloImpl"
  address="Hello"
  wsdlLocation="WEB-INF/wsdl/Hello.wsdl" >
  <jaxws:properties>
    <entry key="schema-validation-enabled" value="true" />
  </jaxws:properties>
</jaxws:endpoint> 

Now as you might expect, Hello?wsdl produces the wsdl, but NOT the one that is in WEB-INF/wsdl

It's like the CFXServlet is taking over and no matter what I put in wsdlLocation means nothing... in fact, I did put junk in there, and I got no errors at all.

Any ideas?

Try using below, This tells the plugin that the wsdl will be on the classpath instead of an absolute path.

wsdlLocation="classpath:wsdl/Hello.wsdl"

Also try checking the cxf maven plugin declaration that has the wsdloptions

<wsdlOption> <wsdl>${project.basedir}/src/main/resources/wsdl/FooService.wsdl</wsdl> <wsdlLocation>classpath:wsdl/FooService.wsdl</wsdlLocation> </wsdlOption>

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