I have fixed the problem and posted the latest source package at http://people.apache.org/~samisa/
Please have a look.

Samisa...

Pete Robbins wrote:



On 13/04/06, *Samisa Abeysinghe* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi Pete,
       You are correct, there seems to be a bug here; the API is supposed
    to be such that you can call AXIS2_MEP_CLIENT_PREPARE_SOAP_ENVELOPE,
    then get the soap envelope though the message context returned by that
    call and set the SOAP version on that soap envelope. However, the
    logic
    in set SOAP version method of SOAP envelope seem to be commented
    out, I
    am not sure why, have to dig into the cuase to find out why.
       Please raise a Jira on this.

I think the problem is in mep_client. The axis2_mep_client_prepare_soap_envelope creates a msg_ctx which will always have the default isSoap11 set to false. This flag is then used to call axis2_soap_envelope_create_default_soap_envelope. Rather than checking AXIS2_MSG_CTX_GET_IS_SOAP_11, which will always be false, the code could use the value set by AXIS2_MEP_CLIENT_SET_SOAP_VERSION_URI to determine the call to axis2_soap_envelope_create_default_soap_envelope??
Cheers,

--
Pete


Reply via email to