axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From valerie.bau...@bull.net
Subject Réf. : Cannot intercept soap headers in Axis2
Date Mon, 28 Jun 2010 14:56:04 GMT
Your header is nor correct : start tag is "geolocalisation" and end tag is "pass"...
Or is it incomplete ?

Valérie 




karoudja <karoudja@hotmail.com>
28/06/2010 15:29
Veuillez répondre à java-user

 
        Pour :  axis-user@ws.apache.org
        cc : 
        Objet : Cannot intercept soap headers in Axis2


Hi all,
I would like to intercept soap header of my request before executing my WS
on Axis2.
So I succeed to sent to Axis2 a request with header but the problem is 
that
Axis2 cannot get the headers from my request.
To get the header I have build a handler. This handler is activated each
time I receive a request but never I can reach the headers I sent...
This is my invoke method of my handler:

public InvocationResponse invoke(MessageContext msgContext) throws 
AxisFault
{

        Iterator itHeader =
msgContext.getAxisMessage().getSoapHeaders().iterator();
        while(itHeader.hasNext()){
            System.out.println(itHeader.next().toString());
        }
        System.out.println("Service Invoked : " +
msgContext.getAxisService().getName());
        System.out.println("Operation Invoked : " +
msgContext.getAxisOperation().getName().getLocalPart());
        return InvocationResponse.CONTINUE;
    }

I can see without proble the "Service Invoked" and the "Operation Invoked"
but I never pass in my loop "While"

here is the request I make:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <geolocalisation xmlns="http://services.wsaxis.wwwsa.be">europa</pass>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      <tns:hello xmlns:tns="http://services.wsaxis.wwwsa.be">
         <name>dummy</name>
      </tns:hello>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Any idea?? Maybe the fault of my WSDL? Must I change the WSDL to allow
header?
Thanks a lot,
Fabian.
-- 
View this message in context: http://old.nabble.com/Cannot-intercept-soap-headers-in-Axis2-tp29008562p29008562.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org




Mime
View raw message