Methods Summary |
---|
public void | destroy()
|
public javax.xml.namespace.QName[] | getHeaders()
return null;
|
public boolean | handleFault(javax.xml.rpc.handler.MessageContext context)
try {
SOAPMessageContext smc = (SOAPMessageContext) context;
SOAPMessage msg = smc.getMessage();
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPHeader sh = se.getHeader();
Name name = se.createName("HeaderTest", "AXIS",
"http://xml.apache.org/axis");
SOAPHeaderElement she = sh.addHeaderElement(name);
she.addAttribute(se.createName("faultCounter","",""), new Integer(_faultCounter +1).toString());
she.setActor(_actorURI);
} catch (Exception e) {
e.printStackTrace();
}
return true;
|
public boolean | handleRequest(javax.xml.rpc.handler.MessageContext context)
System.out.println("Hey - in Handle request");
try {
SOAPMessageContext smc = (SOAPMessageContext) context;
SOAPMessage msg = smc.getMessage();
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPHeader sh = se.getHeader();
Name name = se.createName("HeaderTest", "AXIS",
"http://xml.apache.org/axis");
Iterator iter = sh.extractHeaderElements(_actorURI);
while (iter.hasNext()) {
SOAPHeaderElement she = (SOAPHeaderElement) iter.next();
String counter = she.getAttributeValue(se.createName("counter","",""));
_counter = Integer.parseInt(counter) + 1;
String faultCounter = she.getAttributeValue(se.createName("faultCounter","",""));
_faultCounter = Integer.parseInt(faultCounter) + 1; // Increment it to 2
}
} catch (Exception e) {
e.printStackTrace();
}
return true;
|
public boolean | handleResponse(javax.xml.rpc.handler.MessageContext context)
System.out.println("Hey - in Handle response");
try {
SOAPMessageContext smc = (SOAPMessageContext) context;
SOAPMessage msg = smc.getMessage();
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPHeader sh = se.getHeader();
Name name = se.createName("HeaderTest", "AXIS",
"http://xml.apache.org/axis");
SOAPHeaderElement she = sh.addHeaderElement(name);
she.addAttribute(se.createName("counter","",""), new Integer(_counter +1).toString());
she.setActor(_actorURI);
} catch (Exception e) {
e.printStackTrace();
}
return true;
|
public void | init(javax.xml.rpc.handler.HandlerInfo config)
|