[jboss-user] [JBoss Web Services] - Re: MessageContext.WSDL_DESCRIPTION needs authentication?

spyhunter99 do-not-reply at jboss.com
Sun Nov 4 19:42:11 EST 2012


spyhunter99 [https://community.jboss.org/people/spyhunter99] created the discussion

"Re: MessageContext.WSDL_DESCRIPTION needs authentication?"

To view the discussion, visit: https://community.jboss.org/message/774706#774706

--------------------------------------------------------------
Alrighty, for service implementations:
If you're deploying an EJB (standalone jar file in the deploy folder) - include your wsdl and all supporting metadata files in the JAR file's WEB-INF/wsdl folder of the jar. 
if you're deploying a service within a WAR file - include your wsdl and all supporting metadata files in the WAR file's WEB-INF/wsdl folder of the jar. 

Modify the implementation class's @WebService annotation

@WebService(serviceName = "MyService", name = "MyService", targetNamespace = "MyNamespace", wsdlLocation = "WEB-INF/wsdl/MyWsdl.wsdl")


Note: If you're using servlet container style authentication (http basic, digest, etc), such as with a WAR, clients will have to authenticate if they do not already possess the wsdl/xsds locally. 
To work around this, add a directory to your WAR that does not require authentication and copy your wsdl's there. Then tell your clients to use that wsdl. Revise the endpoints in the unprotected dir to have the correct endpoints listed.

Bonus point: include this with your automated build process (a la jenkins)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/774706#774706]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121104/e5f40f72/attachment.html 


More information about the jboss-user mailing list