I think I figured it out as well.
I looked at the generated code (from wsdl2java) and my TestServiceService
had a public static Qname called TestService which has the correct
targetNamespace. I am just using that QName to create the Header reference
and add to the list of headers in the SoapMessag
Is there a way to retrieve the targetNamespace from the message, its QNames
(from Version of the message)?
For example if I have something like this on the service classt:
@WebService(portName = "TestService",
serviceName = "TestServiceService",
*targetNamespace = **"http://example.test.com/se
I figured out how to change the element name, it is just the 'localPart'
attribute of the QName. Still struggling on how to get the correct
targetNamespace (for the service endpoint) instead of the default one
xmlns="http://schemas.xmlsoap.org/soap/envelope/
On Fri, Oct 30, 2009 at 10:31 AM, Arik
That's awesome! I am able to get the value back in the header response. Just
need to figure out how to set the name of the element (default is 'Header').
Still, the header part seems kind of tricky to me. Perhaps the
@WebParam(header=true) way is much simpler, but unfortunately I cannot use
that.
If it's something as simple as just a String, it's probably easier to just use
a DOM and don't bother with the Databinding stuff. Using some CXF utils:
Document doc = XMLUtils.newDocument();
Element el = XMLUtils.createElementNS(doc, qname);
el.appendChild(XMLUtils.createTextNode(doc, "12345-
Great. Thank you for the pointers. I am able to get the 'SoapMessage'
reference and call getHeaders, get the List, etc, etc. My interceptor is in
the PRE_STREAM phase and I am also experimenting in the MARSHAL phase as
well.
However, I cannot seem to figure out how to bind my string literal "id" t
On Thu October 29 2009 9:07:16 pm Arik Gorelik wrote:
> Basically, I am wondering if it is possible to set something in the soap
> response header in the interceptor (not in the service method
> implementation) during PRE_STREAM phase.
Well, yea, but in an interceptor you have two options:
1) Exa
Basically, I am wondering if it is possible to set something in the soap
response header in the interceptor (not in the service method
implementation) during PRE_STREAM phase.
On Thu, Oct 29, 2009 at 2:09 PM, Arik Gorelik wrote:
> Seems like if there is a heavy dependency on CXF in the project (
Seems like if there is a heavy dependency on CXF in the project (as in my
case), the best option is this one:
4. CXF proprietary way: In the context (BindingProvider.getRequestContext()
on client, WebServiceContext on server), you can add a
List with the key Header.HEADER_LIST. The
headers in the
On Thu October 29 2009 1:01:20 pm Arik Gorelik wrote:
> Hello,
>
> I cannot seem to find any example of how to include/set headers/values in
> the SOAP response. Is there a CXF example on that? I can think of few ways
> to do this, but was wondering if anyone has a best practice sample.
See the f
m MessageContext..
You have access to all httpheaders.. Response headers and stuff like
that.
Thanks
Rama
-Original Message-
From: Arik Gorelik [mailto:arikg...@gmail.com]
Sent: Thursday, October 29, 2009 10:01 AM
To: users@cxf.apache.org
Subject: set headers in soap response
Hello,
I
Hello,
I cannot seem to find any example of how to include/set headers/values in
the SOAP response. Is there a CXF example on that? I can think of few ways
to do this, but was wondering if anyone has a best practice sample.
Thank you.
Arik.
12 matches
Mail list logo