Quantcast
Channel: Metro and JAXB Related Items on Java.net
Browsing all 171 articles
Browse latest View live
↧

Using JAXB to unmarshal xml to an existing prepopulated object

Is there a way to use JAXB to unmarshal source XML to an existing JAXB annotated object containing data (an object that i have previously instantiated and populated with data)? So when I call the...

View Article


JAXB dispatch client parses wsit-client.xml, but policies are not applied?

I'm using a fairly simple PAYLOAD level Dispatch client with some JAXB-generated objects:Service service = Service.create(SERVICE_QNAME);service.addPort(PORT_QNAME, SOAPBinding.SOAP11HTTP_BINDING,...

View Article


GlassFish fails to deploy a JAX-WS service thinking it is a JAXRPC service

I am trying to deploy a Servlet based endpoint using a webservices.xml in GlassFish 3.1.2.2. webservices.xml file could be used to augment or override existing JAX-WS annotations. However, GlassFish...

View Article

Couldn't validate reference with URI #str_

Hello! I'm in troubles with web service client. I get error while receiving response in checking signature. I'm using Netbeans 7.2, Metro 2.2.1-1 and WLS 10.3. The following errorSEVERE: WSS1721:...

View Article

JAXB XmlElement - Problem with Arrayfields

Hi,I have used below getter method level XmlElement annotation for generating xsd from Java class. @XmlElement(type=Integer.class, required=true) public int [] getTestArrayInt () { .... }Generated XML...

View Article


Error generating artifacts for the following WSDL

I converted a stand-alone java application into a web service. The deploy on glassfish server is successful. When I test the webservice, I get the following error.Error generating artifacts for the...

View Article

How can I set a Web Service Timeout

Hello, I am using Metro for Web Services in an applet that needs to gracefully handle network failures. Occasionally the network fails in the middle of a WebService call, which hangs forever waiting...

View Article

Unknown JAXBContext implementation

Hi,I get the following exception using jax-ws 2.2.7 combined with jdk 1.7.0_09 when programmatically throwing a SOAPFaultException:Unknown JAXBContext implementation: class...

View Article


xjc generates empty classes but no errors

Hi, I am trying to generate Jaxb classes for the following xsds. schema.xsd -------------------------------------------------------------<?xml version='1.0' encoding='UTF-8'?><xsd:schema...

View Article


[wsimport-xjc] Handling Duplicate ObjectFactories

We have a number of common schemas that we've created separate jars for to avoid duplication and inconsistencies during code generation of our WSDLs.However, wsimport still generates the ObjectFactory...

View Article

help, No security header found in the message

I am write a WCF service to use wsHttpBinding and have a username / password authentication, and another to write a Java client to try to call WCF.I use JDK 1.6.0_37 NetBeans 7.2 Metro 2.2.1 but I get...

View Article

Catalog is ignored when validating xsd files

Hi,I've been trying to run a simple WS app that uses attachments, and thus requires http://ws-i.org/profiles/basic/1.1/swaref.xsd. This schema file is indeed referenced from every xsd file created by...

View Article

Jaxws and generated artifacts constants

Hi, I have a class used in a web service, which has constants in it. I would like the genereted client class for this class will also have those constants inside.example:public class...

View Article


jaxws AnyTypeArray

I have a complex class that has a two dimensional array memeber.public class bla { private Object[][] array; .... }jaxws created artifacts creates on the other side this memeber - List. I would like it...

View Article

Unsupported binding namespace "http://annox.dev.java.net"

I am tring to generate java source code from xsd file with annotations. For this I have written XSD having following declarations in XSD file. xmlns:xsd="http://www.w3.org/2001/XMLSchema"...

View Article


Weak HashMaps in the Memory leak + HPJDK 1.4.2_10 + WL 8.1 + JAXB ver-

Hi,We have an application which is going in the OutofMemory situation in our prodcution, and we have observed from the heapdump that, in the memory leak section - "Weak HashMaps" is occupying more...

View Article

error in web service client

using Netbeans 7.2.1, attempting to access to remote web service that requite STS (its implemented in WCF). I have followed the instructions here http://metro.java.net/guide/ch12.html#gghntRunning the...

View Article


steps to create a java client to access a remote WebService using STS...

I need to write a client (in java) to access a remote web service, the remote service is implemented in WCF and is using STS authentication. I have the web service wsdl URL and also the URL for its...

View Article

(wsimport) Problem with authFile URL formatting....

I am trying to generate the Java client for a service written in .NET that uses NTLM to authenticate.It seems when wsimport runs on Windows, it knows how to use NTML and works fine (using Maven w/...

View Article

Customized JAXBValidation Fault

Hello All,I would like to create a detailed collection of JAXBValidationException(s) to send it to the clientI've annotated the @SchemaValidation(handler=MyValidationErrorHandler.class) and my extended...

View Article
Browsing all 171 articles
Browse latest View live