[ https://issues.apache.org/jira/browse/AXIS2C-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nandika Jayawardana reassigned AXIS2C-1547: ------------------------------------------- Assignee: Nandika Jayawardana > Outbound MTOM doesn't work on IIS > --------------------------------- > > Key: AXIS2C-1547 > URL: https://issues.apache.org/jira/browse/AXIS2C-1547 > Project: Axis2-C > Issue Type: Bug > Components: IIS module > Affects Versions: 1.6.0 > Environment: IIS on 2008 > Reporter: Yiming Du > Assignee: Nandika Jayawardana > > I have a service which in some invocations sends binary data to client. > Depending on an application setting, binary can be sent using MTOM. > The setting working fine on Apache. > While on IIS (IIS 7), once MTOM is turned on I'll get a zero length response, > even though there's no binary data in the response. Here's what I got from > tcpmon: > HTTP/1.1 200 OK > Server: Microsoft-IIS/7.0 > Date: Tue, 10 May 2011 20:56:10 GMT > Content-Length: 0 > In my debug, in the following code block starting from line 3116 of > http_trasport_utils.c, axutil_stream_get_len(out_stream, env) always return 0 > if (status == AXIS2_FAILURE) > { > status = AXIS2_SUCCESS; > if (out_stream) > { > response->response_data = > axutil_stream_get_buffer(out_stream, env); > response->response_data_length = > axutil_stream_get_len(out_stream, env); // this line is 0 if MTOM is turned on > response->http_status_code = > AXIS2_HTTP_RESPONSE_OK_CODE_VAL; > response->http_status_code_name = > AXIS2_HTTP_RESPONSE_OK_CODE_NAME; > } > } > Actually, no binary data in this case is expected in the response. > The only difference with "without MTOM" in my code is just one line: > axis2_msg_ctx_set_doing_mtom (msg_ctx, env, AXIS2_TRUE); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@axis.apache.org For additional commands, e-mail: c-dev-h...@axis.apache.org