Hi Rey
 
Thanks for the quick reply. Is this the code I can implement in the Client? My question was how I can get the SOAPMessage reference in the client so that I can add required headres. Sorry for the misunderstanding
 
Thanks
 
 
----- Original Message -----
From: Reynardine
Sent: Thursday, June 26, 2003 4:13 AM
Subject: Re: How to get get the SOAPMessage reference from the Axis client while using WSDL2JAVA utiliity

Chandra,

See http://www-106.ibm.com/developerworks/webservices/library/ws-jaxrpc2/?dwzone=webservices
and http://www.cs.unc.edu/Courses/comp190/docs/documentation/axis/apiDocs/org/apache/axis/message/package-tree.html

e.g.

Public class AcmeSOAPHeaderHandler extends GenericHandler{
     Public Boolean handleRequest(MessageContext ctx){
          try{
          SOAPMessageContext mc = (SOAPMessageContext)ctx;
          SOAPMessage msg = mc.getMessage();
          SOAPPart sp = msg.getSOAPPart();
          SOAPEnvelop se = sp.getEnvelop();
          SOAPHeader header= se.getHeader();
          // Now we can process the header
          if (everything fine )
               return true; // chain handlers
    ;                         //continue processing
          else{
                    //Return false results in chaining to stop
               return false;
              }
          }catch(Exception ex){
          }
     }
}

Rey.


----- Original Message -----
From: "Chandra Talluri" <[EMAIL PROTECTED]>
Date: Thu, 26 Jun 2003 00:47:40 -0400
To: <[EMAIL PROTECTED]>
Subject: How to get get the SOAPMessage reference from the Axis client while using WSDL2JAVA utiliity

We are  trying to use AXIS with Tomcat. We want client to open a connection to the server which has webservice and send many soap messages without closing the connection. Is there a way of doing it. I thought about setting http header
 
Connetcion: keep-alive
 
But I don't see how I can get the SOAPMessage reference from the client. I am using the client code generated by the WSDL2JAVA utility
 
Any help is appreciated
 
-Thanks
Chandra
--

_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com

Reply via email to