Parse soap xml using axis 1.2?

I finally found a way to do it. You can do it by create a mock soap engine that return the xml that you wants. Then axis will do all the parsing and going through all the logic as if it got it from an http source.

Here is an example.

I finally found a way to do it. You can do it by create a mock soap engine that return the xml that you wants. Then axis will do all the parsing and going through all the logic as if it got it from an http source.

Here is an example: public class SimulatorHandler extends BasicHandler { /** * System property to that hold soap response message in xml. */ private static final String responseMsg = "soapResponse"; /** * @return the responseMsg */ public static String getResponseMsgSystemProperty() { return responseMsg; } public void invoke(MessageContext context) throws AxisFault { // I haven't figure out a way to do a setter on this msg // so I have to get it from system properties String msg = System. GetProperty(responseMsg); ByteArrayInputStream is = new ByteArrayInputStream(msg.getBytes()); Message response = new Message(is); response.

SetMessageType(Message. RESPONSE); context. SetResponseMessage(response); } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions