@XmlSchema for a metro webservice [message #675968] |
Thu, 02 June 2011 08:15 |
Cristian Prevedello Messages: 33 Registered: June 2011 |
Member |
|
|
Not sure if this is the right place but after an extensive search on the net the problem i have might be scattered all along the pipeline eclipse-glassfish metro.
What i'm trying to achieve is very simple: set elementFormDefault to qualified for a web service.
what i did has been adding a package-info.java to the package where my webservice is in, and add the following piece of code
--
@XmlSchema ( elementFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED,
attributeFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED,
namespace="myHTTPurl",
xmlns = {
@javax.xml.bind.annotation.XmlNs(prefix = "services", namespaceURI="myHTTPurl"),
}
)
package com.viewshape.webservices;
import javax.xml.bind.annotation.XmlSchema;
--
my webservice class starts as:
--
@WebService(name = "XXXXDAOWebService" , targetNamespace = "myHTTPurl")
@SOAPBinding
(
style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
)
public class ViewShapeDAOWS
{
--
unfortunately my wsdl has not qualified attributes nor elements..it's like package-info is completly ignored.
if i look into glassfish deployment directory i can see my webservice class along with my package-info.java so everything should be in place.
in the past i saw ant had a problem that would prevent to correctly deploy package-info...but now it should be fixed, then why is it not working?
thank you in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03884 seconds