You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Olivier Mengué <om...@oxymel.com> on 2010/02/23 17:57:37 UTC

Minimal axis2.xml for an Axis2/C htps client ?

Hi,

What is the minimal axis2.xml for an authenticated HTTPS SOAP client? ("none at all", with a code sample that shows how to set options with code, would be the best answer)
Also, what is the minimal directory structure for the client? I would like to avoid delivering modules, services, include in production.


Olivier.

RE : Minimal axis2.xml for an Axis2/C htps client ?

Posted by Olivier Mengué <om...@oxymel.com>.
>You have to enable HTTPS transport and have to give  SERVER_CERT
>parameter. This parameter uses given CA cert to validate server's
>certificate.

I already have a working https client.

Can I remove <phaseOrder>? What does this section do? Where is it documented?

>> Also, what is the minimal directory structure for the client? I would like
>> to avoid delivering modules, services, include in production.

>axis2.xml and lib are necessary. If you want WS-addressing support,
>then you have to include modules as well. Services, include, bin,
>docs, etc. are not needed.



When I run the following program I get the error:
  svc_client_create failure 135: XML builder done with pulling. Pull parser cannot pull any more
Is it a bug I should report on JIRA?

#include <axis2_util.h>
#include <axis2_client.h>

int main(int argc, char *argv[])
{
        axutil_env_t *env = NULL;
        const axis2_char_t *axis2_home = NULL;
        axis2_svc_client_t* client;

        axis2_home = AXIS2_GETENV("AXIS2C_HOME");
        printf("AXIS2C_HOME=%s\n", axis2_home ? axis2_home : "");
        env = axutil_env_create_all("./chk_axis2_xml.log", AXIS2_LOG_LEVEL_TRACE);
        if (env->error->error_number)
                printf("env_create_all failure %d: %s\n", env->error->error_number, AXIS2_ERROR_GET_MESSAGE(env->error));

        client = axis2_svc_client_create(env, axis2_home);
        if (env->error->error_number)
                printf("svc_client_create failure %d: %s\n", env->error->error_number, AXIS2_ERROR_GET_MESSAGE(env->error));
        axis2_svc_client_free(client, env);

        axutil_env_free(env);
        return 0;
}

Olivier Mengué
Oxymel, France.

Re: Minimal axis2.xml for an Axis2/C htps client ?

Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
2010/2/23 Olivier Mengué <om...@oxymel.com>:
> Hi,
>
> What is the minimal axis2.xml for an authenticated HTTPS SOAP client? ("none
> at all", with a code sample that shows how to set options with code, would
> be the best answer)


You have to enable HTTPS transport and have to give  SERVER_CERT
parameter. This parameter uses given CA cert to validate server's
certificate.

<parameter name="SERVER_CERT">/home/dumindu/dummyCA/demoCA/cacert.pem</parameter>



> Also, what is the minimal directory structure for the client? I would like
> to avoid delivering modules, services, include in production.


axis2.xml and lib are necessary. If you want WS-addressing support,
then you have to include modules as well. Services, include, bin,
docs, etc. are not needed.

Regards,
Shankar



>
>
> Olivier.
>



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org