You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by WR Berkley <wr...@gmail.com> on 2010/10/01 14:55:11 UTC

elementFormDefault="qualified".

I am trying to set elementFormDefault="qualified".  I have read that to do
this I need to place a package-info.java in the package of the web service.

My package-info looks like this:

@javax.xml.bind.annotation.XmlSchema(namespace = "http://service.aps.bts.com",
elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package com.bts.aps.service;

And the top of the interface looks like:

package com.bts.aps.service;
@WebService
public interface APSService {


And the top of the impl class looks like

package com.bts.aps.service;
@WebService(endpointInterface = "com.bts.aps.service.APSService",
serviceName = "APSService")
public class APSServiceImpl implements APSService {


But still my wsdl comes out like this:
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="unqualified" targetNamespace="
http://service.aps.bts.com/">


What am I missing?  Is package-info the right way to do this?

Re: elementFormDefault="qualified".

Posted by Daniel Kulp <dk...@apache.org>.
Can you package up a small testcase for this?   I just checked and we have 
system test for this so at least some parts of this work.

Thanks!
Dna


On Friday 01 October 2010 8:55:11 am WR Berkley wrote:
> I am trying to set elementFormDefault="qualified".  I have read that to do
> this I need to place a package-info.java in the package of the web service.
> 
> My package-info looks like this:
> 
> @javax.xml.bind.annotation.XmlSchema(namespace =
> "http://service.aps.bts.com", elementFormDefault =
> javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package
> com.bts.aps.service;
> 
> And the top of the interface looks like:
> 
> package com.bts.aps.service;
> @WebService
> public interface APSService {
> 
> 
> And the top of the impl class looks like
> 
> package com.bts.aps.service;
> @WebService(endpointInterface = "com.bts.aps.service.APSService",
> serviceName = "APSService")
> public class APSServiceImpl implements APSService {
> 
> 
> But still my wsdl comes out like this:
> <xs:schema attributeFormDefault="unqualified"
> elementFormDefault="unqualified" targetNamespace="
> http://service.aps.bts.com/">
> 
> 
> What am I missing?  Is package-info the right way to do this?

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog