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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…