axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiming Du (JIRA)" <>
Subject [jira] [Created] (AXIS2C-1547) Outbound MTOM doesn't work on IIS
Date Tue, 10 May 2011 21:43:47 GMT
Outbound MTOM doesn't work on IIS

                 Key: AXIS2C-1547
             Project: Axis2-C
          Issue Type: Bug
          Components: IIS module
    Affects Versions: 1.6.0
         Environment: IIS on 2008
            Reporter: Yiming Du

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.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message