简体   繁体   English

CXF Web服务正常工作,但是我无法从cxf网站获取其wsdl

[英]CXF web service works correctly, but I can't get its wsdl from the cxf web site

I have a Java project in which I a writing the pom.xml, beans.xml and wsdl file and generating the code using Maven. 我有一个Java项目,其中编写pom.xml,beans.xml和wsdl文件并使用Maven生成代码。 Then, after completing the code, I am able to compile and deploy my web service in my server that uses Apache Fuse/CXF. 然后,在完成代码之后,我可以在使用Apache Fuse / CXF的服务器中编译和部署Web服务。

If I call this web service using soapUI, it works correctly, giving me the expected answer. 如果我使用soapUI调用此Web服务,它将正常工作,并为我提供了预期的答案。

If I try to access the wsdl file in this url http://:8181/cxf/ I can see all the deployed services, but if I try to click in the link to get the WSDL, I am redirected to a URL with this format: http://:8181/Services/myService?wsdl when the correct should be http://:8181/ cxf/ Services/myService?wsdl 如果我尝试访问此URL http://:8181 / cxf /中的wsdl文件,则可以看到所有已部署的服务,但是,如果我尝试单击链接以获取WSDL,则会使用此重定向到URL。格式:http://:8181 / Services / myService?wsdl,正确时应为http://:8181 / cxf / Services / myService?wsdl

I have 3 projects in which this issue happens. 我有3个项目发生此问题。 I have also 1 project in which this issue doesn't happen. 我还有1个项目不会发生此问题。 I've been comparing the solutions using winmerge but I could not find any difference that would explain this issue. 我一直在使用winmerge比较解决方案,但找不到任何可以解释此问题的区别。

Do you know what property of what file define this link? 您知道哪个文件的属性定义了此链接吗?

thank you, Oscar 谢谢你,奥斯卡

Well, it looks like CXF needed some hours to do it right. 好吧,看来CXF需要几个小时才能正确完成。 When I got back to work this morning, it was working :) 当我今天早上回到工作场所时,它正在工作:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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