Reputation: 2004
I have implemented a web service in my project. I also have deployed a project on JBoss server successfully. I can see web service in jboss admin console in Web Service section. wWhen I open wsdl URL in browser it shows:
HTTP Status 404 - There is no Action mapped for namespace [/] and action name [AddNumbers] associated with context path [/TEST].
The URL that I am opening in browser is
http://localhost:8085/TEST/AddNumbers?wsdl
How map wsdl in struts.xml
file?
Upvotes: 0
Views: 957
Reputation: 1
This is because the struts 2 filter is configured to map those requests. You should add excludePattern
constant to struts.xml
to exclude some URLs from Struts processing. More about this you can find in Preventing Struts from Handling a Request.
Since Struts 2.1.7, you are able to provide a comma separated list of patterns for which when matching against the request URL the Filter will just pass by. This is done via the configuration option
struts.action.excludePattern
, for example in yourstruts.xml
<struts>
<constant name="struts.action.excludePattern" value=".*\?wsdl,/some/conent/?.*"/>
...
</struts>
Upvotes: 0