I saw the sample but I'm using the client class, have an easily way to add the
actions?
My code:
URL urlEndPoint = new URL(url);
Client client = new Client(urlEndPoint);
client.addOutHandler(new DOMOutHandler());
client.addOutHandler(new AddressingOutHandler());
client.addOutHandler(createWSSecurityHandler());
Object[] operationArguments =
populateOperationArguments(operationArguments);
OperationInfo operation =
client.getService().getServiceInfo().getOperation(this.operation);
Object[] result = client.invoke(operation, operationArguments);
-----Mensagem original-----
De: Tomek Sztelak [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 16 de julho de 2007 09:30
Para: [email protected]
Assunto: Re: [xfire-user] Action Header
You can take a look at
xfire-core\src\test\org\codehaus\xfire\addressing\WSAddresingEcho1_1Test.java
(and others) to check how WS-Addressing can be used.
On 7/16/07, Fabio Retzlaff <[EMAIL PROTECTED]> wrote:
> 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
>
>
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
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