I create a JAX-WS webservice and deployed it on weblogic 10.3.3. It is deployed succesfully and everything is working fine.
Now, we want to access webservice by hiding the WSDL. I try to hide the WSDL from weblogic admin console. Goto this location
Deployed application -> Webservice -> Configuration tab
In this tab, by putting “false” in the parameter “WSDL Publish File”.
Saving this created a Plan.xml. The issue arises when I try to activate the changes in Weblogic. Following is the exception that I got:
An error occurred during activation of changes, please see the log for
details.Error encountered during prepare phase of deploying WebService module
‘TB_DBLEGI_SIMULATOR-trunk.war’. Error encountered while deploying
WebService module ‘TB_DBLEGI_SIMULATOR-trunk.war’. Failed to publish
wsdl java.io.IOException: Wsdl file should be placed at META-INF/wsdl,
or WEB-INF/wsdlWsdl file should be placed at META-INF/wsdl, or WEB-INF/wsdl
In my war, the WSDL is placed inside the WEB-INF/wsdl folder.
Also, I tried to place it at different places but I had no luck.
You can always write and register a
Filterto block access to a given resource.For example:
And register the filter in the
web.xml: