@XmlSchema for a metro webservice [message #675979] |
Thu, 02 June 2011 09:07 |
Cristian Prevedello Messages: 33 Registered: June 2011 |
Member |
|
|
i'm having problems to set qualified as elementFormDefault.
i'm using glassfish metro web service stack, with eclipse helios.
i've my own webservice class
--
WebService(name = "MyWebService" , targetNamespace = "myURL")
@BindingType(value="http:__java.sun.com/xml/ns/jaxws/2003/05/soap/bindings/HTTP/")
@SOAPBinding
(
style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
)
public class MyWebService
{
.
.
.
.
--
To setup proper schema i added package-info.java to my package where my webservice is
---
@XmlSchema ( elementFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED,
attributeFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED,
namespace="myURL",
xmlns = {
@javax.xml.bind.annotation.XmlNs(prefix = "services", namespaceURI="myURL"),
}
)
package com.viewshape.webservices;
import javax.xml.bind.annotation.XmlSchema;
---
the package-info.class is deployed to glassfish but when i request the wsdl qualified is not set there.
thank you in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03924 seconds