开发者

Can I have my webservice client in same project as my webservice (NetBeans)

开发者 https://www.devze.com 2023-03-07 02:23 出处:网络
Is it possible to have my webservice client in the same project a开发者_StackOverflow中文版s my webservice?

Is it possible to have my webservice client in the same project a开发者_StackOverflow中文版s my webservice?

When I try and build the project, NetBeans cant find a reference to the WSDL as it is not deployed.

What is the approved way of doing this?

WulfgarPro


I figured this out.

Just needed to add the eventual url of the web-service in web/WEB-INF/wsdl/mywsdlfile.wsdl where it stipulates:

<soap:address location="REPLACE_WITH_ACTUAL_URL"/>

Doing this, then clean-build and deploy, fixed all my problems. Now I have both my service and client running in the same project.

I'm not liking that NetBeans has so many property/configuration files. Seems to me that NetBeans is trying to do too much.

WulfgarPro


It is not currently possible to have a service and its client in the same ant based NetBeans project as created by NetBeans. You could probably hack the build.xml to make it possible... but I do not know the details of the hacking necessary to make it possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消