[jboss-user] [JBoss Web Services] - custom WS namespace prefix?

Guillermo L do-not-reply at jboss.com
Tue Jul 9 17:00:52 EDT 2013


Guillermo L [https://community.jboss.org/people/gmlopezdev] created the discussion

"custom WS namespace prefix?"

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

--------------------------------------------------------------
Hi,
Is there a way to specify a custom namespace prefix for a web service?

I'm currently developing under jboss AS7.1.3

I've read that creating a package-info.java with the following content should do the trick but I had no luck so I guess that there should be some jboss/cxf magic to accomplish it.

@javax.xml.bind.annotation.XmlSchema (
  xmlns = {
    @javax.xml.bind.annotation.XmlNs(prefix = "customws", namespaceURI="http://myws.com/")
  }
)
package com.myws;

Thanks for your help!
--------------------------------------------------------------

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

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/20130709/5ed62471/attachment.html 


More information about the jboss-user mailing list