Skip to main content

JAXB and JAXWS

2 replies [Last post]
lulseged
Offline
Joined: 2008-03-19
Points: 0

Hi

I am using JAXB and JAXWS for XML. I receive only payload through JAXWS and get object tree fine.

I need to have the soap header and therefore I need to change to receive the whole soap message and marshall parts of it to get object tree. Which is not working as expected.

What binding framework is JAXWS using? Is it using JAXB or something else? If it uses JAXB, are there any configuration applied?

My schemas are using substitutionGroups and that is where the problem seems to lay.

BR
Lulseged

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
najmi
Offline
Joined: 2003-06-17
Points: 0

On 11/20/2013 06:10 AM, Lulseged Zerfu wrote:
>
> Hi
>
> I am using JAXB and JAXWS for XML. I receive only payload through
> JAXWS and get object tree fine.
>
> I need to have the soap header and therefore I need to change to
> receive the whole soap message and marshall parts of it to get object
> tree. Which is not working as expected.
>
> What binding framework is JAXWS using? Is it using JAXB or something
> else?
>

It is using JAXB

> If it uses JAXB, are there any configuration applied?
>

The configuration consists of theJAXWS WSDL to Java binding
customization

(usually via a bindings-jaxws.xml file) and JAXB Customization

(usually via a xxx.xjb customization file)

> My schemas are using substitutionGroups and that is where the problem
> seems to lay.
>
> BR
>
> Lulseged
>

mcs130
Offline
Joined: 2006-01-26
Points: 0

If you need SOAP Header elements, you can use SOAP Header handlers (either
standard JAX-WS handlers or CXF interceptors) - see links to Glen Mazza's
web services blog with articles discussing this:

http://www.jroller.com/gmazza/entry/blog_article_index

http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial

http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors

HTH

Mark

On Wed, Nov 20, 2013 at 9:05 AM, Farrukh Najmi <
> wrote:

> On 11/20/2013 06:10 AM, Lulseged Zerfu wrote:
>
> Hi
>
>
>
> I am using JAXB and JAXWS for XML. I receive only payload through JAXWS
> and get object tree fine.
>
>
>
> I need to have the soap header and therefore I need to change to receive
> the whole soap message and marshall parts of it to get object tree. Which
> is not working as expected.
>
>
>
> What binding framework is JAXWS using? Is it using JAXB or something else?
>
>
> It is using JAXB
>
>
> If it uses JAXB, are there any configuration applied?
>
>
> The configuration consists of the JAXWS WSDL to Java binding customization(usually via a bindings-jaxws.xml file) and JAXB
> Customization(usually via a xxx.xjb customization file)
>
>
>
>
> My schemas are using substitutionGroups and that is where the problem
> seems to lay.
>
>
>
> BR
>
> Lulseged
>
>
>