Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
222 views
in Technique[技术] by (71.8m points)

web services - How to bind a WSDL to an HTTP location instead of local file system location

I am a java developer but I am new to SOAP web-services. I am working on a legacy java code which reference WSDL file and do SOAP calls to an appliance.

Currently, the code referencing the wsdl file in a specific location (e.g. "file:/c:/{Node_Name or Domain_Name}/wsdl/task.wsdl").. I need to change this behavior as this path changes from a web application server to another (e.g. WebSphere, Glassfish, ... etc).

I am trying to bind the wsdl to "http://localhost:8080/{context}/task.wsdl" but until now all my attempts failed.

What I tried till now: the project is a NetBeans project using Ant.. I modified the "jax-wsd.xml" file:

  • Changed property to be "http://localhost:8080/{context}/task.wsdl" instead of "file:/c:/{Node_Name or Domain_Name}/wsdl/task.wsdl". Then cleaned the project and built it again.
question from:https://stackoverflow.com/questions/65894221/how-to-bind-a-wsdl-to-an-http-location-instead-of-local-file-system-location

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...