DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21510>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21510 call timeout when using SAAJ Summary: call timeout when using SAAJ Product: Axis Version: 1.1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Deployment / Registries AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Davanum Srinivas (dims) asked to open a bug report for the following scenario: Using SAAJ inteface the timeout for call cannot easily be modified. - snippet 1 shows how a SAAJ call with default timeout is done - snippet 2 shows a possiblilty how to send a SOAPmessage with a specific timeout value using axis classes. It would help a lot if we could find an easier way to do this I'd like to express my appreciation to all people who support this project. Axis is really cool! --snippet 1------------------------------------------------------------------ SOAPMessage message = // .... create your request message here SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance(); con = scFactory.createConnection(); URLEndpoint endpoint = new URLEndpoint(getURLEndpoint()); SOAPMessage responseMessage = con.call(message, endpoint); // consume the response message here... ---------------------------------------------------------------------------- --snippet 2------------------------------------------------------------------ SOAPMessage message = // .... create your request message here Call call = new Call(getURLEndpoint()); ((org.apache.axis.Message) message).setMessageContext (call.getMessageContext()); SOAPEnvelope env = ((org.apache.axis.Message)message).getSOAPEnvelope(); Attachments attachments = ((org.apache.axis.Message) message).getAttachmentsImpl(); if (attachments != null) { Iterator iterator = attachments.getAttachments().iterator(); while (iterator.hasNext()) { Object attachment = iterator.next(); call.addAttachmentPart(attachment); } } call.setReturnClass(SOAPMessage.class); // set the timeout here call.setTimeout(new Integer(getTimeout())); call.invoke(env); SOAPMessage responseMessage = call.getResponseMessage(); // consume the response message here... ----------------------------------------------------------------------------
