Hello, I solved this problem using this code:
OperationInfo oi =
wsClient.getService().getServiceInfo().getOperation("operation");
oi.setProperty(AddressingInHandler.ADRESSING_FACTORY.toString(), new
AddressingHeadersFactory200408());
I seems that if you connect a .Net server (WSE 3.0) you have to use the 200408
factory and xfire use by default the 200508.
-----Mensagem original-----
De: Fabio Retzlaff [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 16 de julho de 2007 08:48
Para: [email protected]
Assunto: RES: [xfire-user] Action Header
Yes, I need to connect with a web service and I received this fault:
Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate
recipient is required but not present in the message.
I tried to do this on my WSS4JOutHandler but doesn't work:
public void invoke(MessageContext mc) throws Exception {
OutMessage message = (OutMessage) mc.getCurrentMessage();
org.jdom.Element elm = new Element("Action");
elm.addContent("value");
message.setHeader(elm);
}
-----Mensagem original-----
De: Bernd Schuller [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 16 de julho de 2007 03:09
Para: [email protected]
Assunto: Re: [xfire-user] Action Header
Hi,
do you mean a ws-addressing Action header?
Fabio Retzlaff wrote:
> Hi, how can I add an Action Header to the SOAP message ?
>
--
Dr. Bernd Schuller
mail [EMAIL PROTECTED]
phone +49 2461 61 8736
fax +49 2461 61 6656
blog http://www.jroller.com/page/gridhaus
Central Institute for Applied Mathematics
Forschungszentrum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv.
Vorsitzender)
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email