是否可以在轴 NSToPkg.properties 文件中的映射中指定 TCP 端口?
我正在使用 Axis 1.4 axis-wsdl2java ant 任务为 Web 服务器的端口 8080 上托管的 Web 服务创建存根代码。 我过去曾成功使用 NStoPkg.properties 文件将 Web 服务器命名空间映射到一个方便的 java 包名称,其配置行如下:
http\://webserver/somedir/service=com.blah.blah
但是当我尝试对端口 8080 上托管的服务执行相同的操作时,如下所示
http\://webserver\:8080/somedir/service=com.blah.blah
: wsdl2java 工具似乎无法识别该映射。 我已经尝试了所有我能想到的变体,但都无济于事。 这是不可能的,还是我做错了什么?
[编辑:我忘了提及,当使用命令行 WSDL2Java 实用程序的 -N 选项时,没有问题,并且包已成功重新映射。 这只是基于选项文件的版本,我无法开始工作。]
I'm using the Axis 1.4 axis-wsdl2java ant task to create stub code for a web service hosted on port 8080 of a webserver. I've used the NStoPkg.properties file successfully in the past to map the webserver namespace to a convenient java package name with config lines like this:
http\://webserver/somedir/service=com.blah.blah
But when I try to do the same thing for the service hosted on port 8080 like this:
http\://webserver\:8080/somedir/service=com.blah.blah
the wsdl2java tool doesn't seem to recognize the mapping. I've tried as many variations as I can think of, all to no avail. Is this not possible, or am I doing something wrong?
[Edit: I forgot to mention that when using the command-line WSDL2Java utility's -N option, there is no problem and the packages are remapped successfully. It's just the options file-based version of this that I can't get to work.]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它的工作原理与我尝试 http \://host\:port/url,但 http://host:port/url 不起作用。
It works as i tried http\://host\:port/url, but http://host:port/url does not work.
奇怪,这不起作用。 不记得为什么您可能需要转义字符。 您尝试过用引号引起来吗?
strange that doesn't work. Can't recall why you might need the escape character. Did you try enclosing in quotes?