Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 17th, 2007, 09:32 AM
Authorized User
Join Date: Apr 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Holder<T> in JAX-WS is rocket science?!?

When I have a @WebParam with mode = Mode.OUT as a Holder<T> like:

   @WebParam(name = "Status", mode = Mode.OUT, partName = "Status")
   Holder<BigInteger> status

How can I access it from my client???

I have a small JAX-WS (2.1) client generated from NB 5.5 using an online WSDL.

My request is sent ok:

  <ns2:ExistsUser xmlns:ns2="http://myserver/my.wsdl">

and the response I get look fine:

  <ExistsUserResponse xmlns="http://myserver/my">

But when I try to access the returned values through the Holders:

try {
 jaxwstest.XPortal_0020Interface service = new jaxwstest.XPortal_0020Interface();
 jaxwstest.XPortal_0020InterfacePortType port = service.getXPortal_0020InterfacePort();
 BigInteger bi = new BigInteger("0", 10);
 java.math.BigInteger subsystemID = bi;
 java.lang.String userNumber = "1234567";
 javax.xml.ws.Holder<java.math.BigInteger> status = null;
 javax.xml.ws.Holder<java.lang.String> errorMessage = null;
 javax.xml.ws.Holder<java.lang.String> userName = null;
 port.existsUser(subsystemID, userNumber, status, errorMessage, userName);
} catch (Exception ex) {

status is still null :-(

(btw I use JAX-WS 2.1)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
create <ul> with alternating class on <li> element Brian Campbell XSLT 2 November 3rd, 2006 06:07 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.