Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 PrevedelloFriend
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 MerksFriend
Messages: 33146
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
> {


Ed Merks
Professional Support: https://www.macromodeling.com/
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 PrevedelloFriend
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 May 09 14:11:15 GMT 2024

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

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

Back to the top