axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali Konnipati" <>
Subject RE: How to develop a HTTPs-based webservice client
Date Mon, 24 Sep 2007 09:19:40 GMT
Hi Pallewela,

       Thank you very much for the reply.
       I have a small doubt, I need to modify the SOAP envelope and send some custom messages
in the SOAP request. For this, i am planning to use the OperationClient.

      I am sending the sample SOAP request message, i need to send it to my  webservice. Please
check the same and let me know, which method is suitable for the webservice invocation.

     SOAP Request message

      <wsse:UsernameToken xmlns:wsse=""
        <wsse:Password  Type="">Ernie</wsse:Password>
    <wsa:To s11:mustUnderstand=1>
  <s11:Body wsu:Id="TheBody">
                    {Any valid JSDL document}

Thanks & Regards,

Murali Krishna K



-----Original Message-----
From: Dumindu Pallewela
To: Apache AXIS C User List
Sent: 9/24/07 2:42 PM
Subject: Re: How to develop a HTTPs-based webservice client

Hi Murali,

If you want to set the properties required for HTTPS transport, in
your client code, please do the following:

axutil_property_t *prop_sc = axutil_property_create(env);
axutil_property_set_value(prop_sc, env, axutil_strdup(env,
axis2_options_set_property(options, env, "SERVER_CERT", prop_sc);

where *options* is the *axis2_options_t* structure that you set to
the service client using *axis2_svc_client_set_options* function, or
to the operation client using *axis2_op_client_set_options*
function. Refer to the echo sample client's http authentication
section for a sample on similar code fragment [echo.c lines 115-125].

Note that it does not depend on whether the service client or
operation client is used to send the request.

Other properties, if necessary, can be set in an identical manner.
Property names are KEY_FILE and SSL_PASSPHRASE as described in
axis2c manual [1].



Murali Konnipati wrote:
> Thank you Dinesh.
> I will try to submit a small job and let you know, if i face any
> Thanks & Regards,
> Murali Krishna K
> -----Original Message-----
> From: Dinesh Premalal
> To:
> Cc: Dinesh Premalal ; Dinesh Premalal
> Sent: 9/23/07 1:32 AM
> Subject: Re: How to develop a HTTPs-based webservice client
> Murali,
> "Murali Konnipati" <> writes:
>>       As i have to modify the SOAP envelope, i am planning to use the
> Operation
>> Client instead of Service Client. Can you please send me any document
> with some
>> examples on https web service client, which can provide some useful
>> information.
> It doesn't matter whether you use svc_client or op_client to send your
> request. HTTPS handled by Axis2/C transport layer which is independent
> from the client api that you use. I'm afraid that I don't have any
> examples in my hand. I think axis2c manual's description is
> descriptive enough.
> thanks,
> Dinesh
> --
> Dinesh Premalal
> GPG ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255
> 955C
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


View raw message