Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » @XmlSchema for a metro webservice
@XmlSchema for a metro webservice [message #675968] Thu, 02 June 2011 08:15
Cristian Prevedello is currently offline 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.
Previous Topic:xml autocomplete from schema
Next Topic:Code Hinting on JSP with Custom Tags (taglib)
Goto Forum:
  


Current Time: Fri Oct 24 16:56:01 GMT 2014

Powered by FUDForum. Page generated in 0.01617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software