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 #675979] Thu, 02 June 2011 09:07 Go to next message
Cristian Prevedello is currently offline 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.
Re: @XmlSchema for a metro webservice [message #676026 is a reply to message #675979] Thu, 02 June 2011 14:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
So how does the problem manifest itself?

The value "myURL" isn't a very good URL and
"http:__java.sun.com/xml/ns/jaxws/2003/05/soap/bindings/HTTP/" doesn't
look like a very good namespace either.

forums-noreply@eclipse.org wrote:
> 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
> {
Re: @XmlSchema for a metro webservice [message #676332 is a reply to message #676026] Fri, 03 June 2011 18:41 Go to previous message
Cristian Prevedello is currently offline Cristian Prevedello
Messages: 33
Registered: June 2011
Member
since i just joined the forum, i can't post a message with url inside the message itself, so i had to replace the actual urls with other values.

in the source code the urls are valid http urls
Previous Topic:how to override addBreakpoint and deleteBreakpoint listener of javascript
Next Topic:New Editor?
Goto Forum:
  


Current Time: Thu Oct 23 16:04:53 GMT 2014

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

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