Questions tagged [java-metro-framework]

Metro is a mature web services framework for Java.

Metro is a mature web services framework for Java. Questions about Microsoft Metro (now Modern UI) should use the tag.

253 questions
34
votes
4 answers

Is this JAX-WS client call thread safe?

Since initialization of the WS client service and port takes ages I like to initialize them once at startup and reuse the same instance of the port. Initalization would look something like this: private static RequestContext requestContext =…
user871611
  • 3,307
  • 7
  • 51
  • 73
31
votes
3 answers

Glassfish JAX-WS side by side SSL / insecure EJB webservice

Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference? I am able to run the service either secure or insecure…
Justin
  • 4,097
  • 1
  • 22
  • 31
30
votes
3 answers

How can I make a WebMethod parameter required

We use the "start from Java" approach to creating JAX-WS 2.0 web services using the Metro 1.5 stack. When we point a standard tool like SoapUI at one of our web services it indicates that parameters to WebMethods are optional. The generated xsd…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
30
votes
4 answers

Is it possible to customize the namespace prefix that JAXB uses when marshalling to a String?

For example, I've got a simple schema which imports another schema. The second schema (urn:just:attributes, just-attributes.xsd) just defines an attribute group.
user197614
30
votes
2 answers

Metro vs Java's JAX-WS?

What is/are the difference/s of Java's JAX-WS and Metro? Are they the same of are they two different JAX-WS implementations? According to my research, JAX-WS is already a part of JDK 6. However, JAX-WS does not come with the standard bundle of JDK…
Arci
  • 6,647
  • 20
  • 70
  • 98
29
votes
3 answers

Old JaxB and JDK8 Metaspace OutOfMemory Issue

We are working on a business application (1 million+ LOC) developed since 10+ years. While switching to JDK8 we get an issue with the metaspace of JDK8. This seems to be related to the JaxB-Version referenced in com.sun.xml.ws:webservices-rt:1.4…
The_Gentleman
  • 1,045
  • 2
  • 10
  • 18
26
votes
1 answer

What are the impacts of setting establishSecurityContext="False" if i use https?

My WFC service uses wsHttpBinding configured with:
Sylvain
  • 19,099
  • 23
  • 96
  • 145
25
votes
1 answer

Metro-like theme for WPF

I would like to know where i can get the theme that looks like Zune application for Windows (or MetroTwit) for WPF. I google it but i only get the theme for Silverlight 4, not WPF.
Guilherme Defreitas
  • 1,044
  • 1
  • 10
  • 16
21
votes
1 answer

Are JAX-WS clients thread safe?

Because the initialization of the WS client side port is so costly we would like to reuse the same instance. We would also like to set different values in the BindingProvider/RequestContext before each call. Initially we would like to do…
PålOliver
  • 2,502
  • 1
  • 23
  • 27
18
votes
2 answers

Policy for signing and encrypting

I need to implement a jax-ws client. Here is what the provider docs say about security Currently, we use the SOAP Message Security version 1.0 specification at …
ymajoros
  • 2,454
  • 3
  • 34
  • 60
16
votes
3 answers

JAX-WS Implementation included with Java?

I have a JAX-WS web service application which deploys as a WAR file for Tomcat 7. It uses a recent version of the Metro libraries, which I include inside the WAR file, and it works fine. I'm trying to simplify the deployment package. I understand…
Kenster
  • 23,465
  • 21
  • 80
  • 106
14
votes
2 answers

Webservice - client service instantiation

Do you know how costly is to create a webservice client service instance ? JavaWebService service = new JavaWebService(); SomePort port = service.getJavaWebServicePort(); Creating the service once and after that reusing same port in a multi…
Cris
  • 4,947
  • 6
  • 44
  • 73
13
votes
2 answers

JAXBContext.newInstance memory leak

After a recent deployment in system test, one of our servlets was getting hit much harder than usual and we noticed memory started climbing and weblogic would eventually die. My intern, I was very proud, discovered the source of the memory…
Lissy
  • 221
  • 2
  • 3
  • 6
12
votes
2 answers

How to change JAVAX-WS Endpoint binding to SOAP 1.2?

I'm publishing a test WS implementation using Endpoint.publish() for consumption in Visual Studio. According to the documentation the default SOAP binding is 1.1 and it is possible to change the bindings, but I can't figure out specifically how to…
jluce50
  • 1,173
  • 3
  • 11
  • 14
12
votes
1 answer

Why does JAXB 2 RI's XJC simple mode change collection names?

JAXB simple binding mode modifies collection names to their plural 'version', e.g. "additionalData" becomes "additionalDatas". Is there any solution to change this behavior? I need to have a Java field name and methods name equal to XSD field name.…
User123456789
  • 121
  • 1
  • 1
  • 3
1
2 3
16 17