R
Richard Maher
Hi,
Sorry if this question is a dog's-breakfast with incorrect terminology (all
the test stuff is back in another office and I'm too lazy to re-look it all
up
but the fundemental question is a very basic one. We're using JAX-WS
to generate client code from a Application Service provider's WSDL that is
intended to provide stateful sessions between client and server. We have
turned on http message dumping to the console and can see that incoming
replies contain a SOAP header (with a Session Id) but the outgoing calls
only have a SOAP body. So, how do we (or the WSDL authors) tell Java to turn
on SOAP headers so that we can reply with the SessionId we got back from the
Authenticate?
1) I've turned on the
(portormaybeservice)somethingBinding.SESSIONSOMETHINGPERSISTENT=true (but
without a header we can't really tell the server what session id they gave
us last time?)
2) I've seen the code examples about injecting seemingly arbitrary header
tags, but I'm guessing if we can just make the header appear at all then the
Session Id <tag> will automagically appear?
3) I've seen at the GlassFish site that @webParams has a (mode=out,
head=true) option, but it didn't like "out" and the head(er)=true didn't
seem to do anything (and this should be controlled by the WSDL right? Or the
Import?)
The SessionId and Stateful Sessions stuff is supposed to be transparent is
it not?
Anyway, just thought I'd run it up the flag-pole in case it's obvious to
everyone except me.
Cheers Richard Maher
Sorry if this question is a dog's-breakfast with incorrect terminology (all
the test stuff is back in another office and I'm too lazy to re-look it all
up
to generate client code from a Application Service provider's WSDL that is
intended to provide stateful sessions between client and server. We have
turned on http message dumping to the console and can see that incoming
replies contain a SOAP header (with a Session Id) but the outgoing calls
only have a SOAP body. So, how do we (or the WSDL authors) tell Java to turn
on SOAP headers so that we can reply with the SessionId we got back from the
Authenticate?
1) I've turned on the
(portormaybeservice)somethingBinding.SESSIONSOMETHINGPERSISTENT=true (but
without a header we can't really tell the server what session id they gave
us last time?)
2) I've seen the code examples about injecting seemingly arbitrary header
tags, but I'm guessing if we can just make the header appear at all then the
Session Id <tag> will automagically appear?
3) I've seen at the GlassFish site that @webParams has a (mode=out,
head=true) option, but it didn't like "out" and the head(er)=true didn't
seem to do anything (and this should be controlled by the WSDL right? Or the
Import?)
The SessionId and Stateful Sessions stuff is supposed to be transparent is
it not?
Anyway, just thought I'd run it up the flag-pole in case it's obvious to
everyone except me.
Cheers Richard Maher