tag:blogger.com,1999:blog-7836204352369514180.post7958152484832834483..comments2022-03-25T05:11:20.110+01:00Comments on Around the World in Java: JAXB Marshalling with Custom Namespace PrefixesHarald Wellmannhttp://www.blogger.com/profile/08039976160321882828noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-7836204352369514180.post-7811008871279533312016-02-19T06:29:20.383+01:002016-02-19T06:29:20.383+01:00Thanks, nice tipsThanks, nice tipsBinh Nguyenhttps://www.blogger.com/profile/02069417158952884749noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-41033626907531682952014-05-13T14:05:11.834+02:002014-05-13T14:05:11.834+02:00Hello, I am trying to build a bottom up WS using J...Hello, I am trying to build a bottom up WS using JAX-WS. wsgen generates the wsdl from the annotated classes.<br />I would like to remove any prefix, even if possible also the namespace in the request and response.<br />I tried several things, but just can't get it to work..<br />ThanksVinicius Monteirohttps://www.blogger.com/profile/17491028316818446397noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-35348210251320530232013-09-10T12:50:17.598+02:002013-09-10T12:50:17.598+02:00Thank a lot it works!!!!!!!Thank a lot it works!!!!!!!Anonymoushttps://www.blogger.com/profile/04172409001175690001noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-63929893368810651342013-07-15T02:46:29.089+02:002013-07-15T02:46:29.089+02:00Thanks a lot, worked like a charm.Thanks a lot, worked like a charm.David Lucekhttps://www.blogger.com/profile/08820183470279052312noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-55858505152992176932013-07-03T00:54:41.936+02:002013-07-03T00:54:41.936+02:00This is amazing, finally saved me after hours and ...This is amazing, finally saved me after hours and hours of exploration. Great work. Thanks a lotAshish Desaihttps://www.blogger.com/profile/02174671386315502231noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-51562028353460186482012-11-22T07:22:39.292+01:002012-11-22T07:22:39.292+01:00Perfect ! it works ....Perfect ! it works ....Sunnyhttps://www.blogger.com/profile/18305202176443773773noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-33052135331312931942012-09-04T09:41:47.591+02:002012-09-04T09:41:47.591+02:00Great, especially the Ant solutionGreat, especially the Ant solutionAnonymoushttps://www.blogger.com/profile/15353909882746644007noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-29670544898534243232012-05-30T11:36:59.187+02:002012-05-30T11:36:59.187+02:00Have a look at the namespace-prefix plugin (http:/...Have a look at the namespace-prefix plugin (http://java.net/projects/jaxb2-commons/pages/Namespace-prefix) which implements solution #2 in an automated way.Anonymoushttps://www.blogger.com/profile/17325384392193488500noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-48865378352569651512012-01-30T12:33:31.260+01:002012-01-30T12:33:31.260+01:00Thanks! Helped me a lot.Thanks! Helped me a lot.Mr Kodinghttps://www.blogger.com/profile/04341610186132401651noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-16602199042267277162011-12-12T09:34:18.937+01:002011-12-12T09:34:18.937+01:00I was already using package-info.java but it was n...I was already using package-info.java but it was not adding prefix.<br />I did not have JDK 7 too, but adding jaxb-impl in pom.xml file solved my issue. Thanks a lot.Anilhttps://www.blogger.com/profile/01084784584832958095noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-51501306150515662082011-12-12T09:32:32.325+01:002011-12-12T09:32:32.325+01:00I did not have JDK 7 but when i added JAXB 2.2 as ...I did not have JDK 7 but when i added JAXB 2.2 as mentioned in the post, It worked. Thanks a lotAnilhttps://www.blogger.com/profile/01084784584832958095noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-70473373838063954552011-10-05T15:04:20.054+02:002011-10-05T15:04:20.054+02:00Solution 2 work in JDK 7Solution 2 work in JDK 7danLeonhttps://www.blogger.com/profile/11264489378840550999noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-86193796382183404442011-03-30T23:25:30.098+02:002011-03-30T23:25:30.098+02:00I haven't tried this with web services, but I ...I haven't tried this with web services, but I don't see why it shouldn't work as long as you use the proper version of JAXB. It doesn't work with the 2.1 version incorporated in JDK 1.6.0.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-62659710851690786512011-03-30T22:11:21.122+02:002011-03-30T22:11:21.122+02:00Will this work on WebServices as well? I tried ma...Will this work on WebServices as well? I tried manually modifying my package-info.java file and it doesn't effect the SOAP response.Unknownhttps://www.blogger.com/profile/15784566282818508386noreply@blogger.com