users@jax-rpc.java.net

Re: Explicit Context

From: Simon Horrell <simonh_at_develop.com>
Date: Thu, 21 Feb 2002 19:49:52 +0000

Also with the reference implementation, SOAP header faults don't seem to be
mapped terribly well.

Si.

----- Original Message -----
From: "Lars Oppermann" <lars.oppermann_at_SUN.COM>
To: <JAXRPC-INTEREST_at_JAVA.SUN.COM>
Sent: Thursday, February 21, 2002 5:10 PM
Subject: Explicit Context


> Hi everyone,
>
> I am currently getting into JAX-RPC for moving our WebService from
> Apache SOAP to JWSDP. Foe our services, we need to handle some
> state/context information, which we are currently doing by transmitting
> soap-headers that include a token to identify the session which the
> service endpoints can use from some infrastructure layer in the
> underlying application.
>
> The specification has an example about explicit context usage that uses
> an additional argument of type javax.xml.rpc.holders.StringHolder and
> states that this would be passed as a soap-header by the generated stub
> code - at least, that is what I understand by reading section 11.2.2 of
> the 0.6 specification.
>
> I tried to build an example that is modelled after that example by
> exposing a method that takes one String and one StringHolder parameter.
> I defined the interface, build a dummy-implementation and then used
> xrpcc to generate wsdl, stubs and ties. Unfortunatly xrpcc cannot handle
> StringHolder - what am I missing?
>
> Thanks in advance,
> Lars
>
> --
> Lars Oppermann <lars.oppermann_at_sun.com> Sun Microsystems
> Software Engineer - Sun ONE Webtop Sachsenfeld 4
> Phone: +49 40 23646 959 D-20097 Hamburg
> Fax: +49 40 23646 550 http://www.sun.com/webtop