简体   繁体   English

如何改变 <soap:address location=“..”/> ?

[英]How to change <soap:address location=“..”/>?

Basically, I have followed the netbeans guide on creating a web service called HelloWorld. 基本上,我遵循了netbeans指南来创建名为HelloWorld的Web服务。

When I opened the HelloWorld.wsdl file to change the to and restarting the web service and from the web browser, navigating to .../SOAPHelloWorld/HelloWorld?wsdl, the changes does not seem to reflect there. 当我打开HelloWorld.wsdl文件以将其更改为并从Web浏览器重新启动Web服务并导航到... / SOAPHelloWorld / HelloWorld?wsdl时,所做的更改似乎未在其中反映出来。

Does anyone have a clear solution for this? 有人对此有明确的解决方案吗? Could it be that I'm making changes to the wrong file? 可能是我对错误的文件进行了更改吗?

And also, when I run the web service, it automatically access it via http, how can I change it to default to https only? 而且,当我运行Web服务时,它会通过http自动访问它,如何将其更改为默认的https。

actually,the file "HelloWorld.wsdl" which you edit is just use to show the information.it can not effect anyother things of you project,you should edit by you code.like endpoint.publish("...192.168.0.84:8888/Service/WebService.asmx?wsdl"); 实际上,您编辑的文件“ HelloWorld.wsdl”仅用于显示信息。它不会影响您的项目的任何其他内容,您应该通过代码进行编辑。例如endpoint.publish(“ ... 192.168.0.84: 8888 / Service / WebService.asmx?wsdl“); see if this help 看看是否有帮助

Can you describe how deploy or publish this WSDL? 您能否描述一下如何部署或发布此WSDL? What is server name? 什么是服务器名称?

When I opened the HelloWorld.wsdl file to change the to and restarting the web service and from the web browser, navigating to .../SOAPHelloWorld/HelloWorld?wsdl, the changes does not seem to reflect there. 当我打开HelloWorld.wsdl文件以将其更改为并从Web浏览器重新启动Web服务并导航到... / SOAPHelloWorld / HelloWorld?wsdl时,所做的更改似乎未在其中反映出来。

Maybe you are not published this WSDL. 也许您尚未发布此WSDL。 If you have project need to build and deployed to server (Tomcat, Glassfish etc.). 如果您有项目需要构建并部署到服务器(Tomcat,Glassfish等)。 Please check this link: 请检查此链接:

https://weblogs.java.net/blog/bhaktimehta/archive/2008/03/developing_webs.html https://weblogs.java.net/blog/bhaktimehta/archive/2008/03/developing_webs.html

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

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