Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different Behavior between SAAJ Implementations (Axis2 and glassfish)

 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm trying to add the SOAP header in the SOAP message using SAAJ. I use Axis2 SAAJ implementation for this. But the SOAP message produced by Axis2 isn't really what I want. It seems that in every child element, there is always additional namespace declaration, i.e. xmlns:axis2ns1, xmlns:axis2ns2. With GlassFish SAAJ implementation, it's able to produce the correct SOAP message.

Java


Axis2


GlassFish


By the way, do both SOAP messages actually have the same meaning?

Thanks in advance
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Freddy Wong:
By the way, do both SOAP messages actually have the same meaning?


As far as I can tell the envelopes are equivalent.

  • They use different prefixes for the SOAP 1.1 namespace but they both refer to the same namespace {http://schemas.xmlsoap.org/soap/envelope/}.
  • Axis2 adds the peculiar namespace declarations but they actually don't have any effect in this particular case. In any case they just create additional prefixes for the same namespace.

  •  
    Freddy Wong
    Ranch Hand
    Posts: 959
    Eclipse IDE Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks a lot, Peer
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic