Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 41307 invoked from network); 11 Jun 2007 03:14:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 03:14:21 -0000 Received: (qmail 87067 invoked by uid 500); 11 Jun 2007 03:14:24 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 87045 invoked by uid 500); 11 Jun 2007 03:14:24 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 87030 invoked by uid 99); 11 Jun 2007 03:14:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 20:14:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [203.209.230.55] (HELO web92008.mail.cnb.yahoo.com) (203.209.230.55) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 10 Jun 2007 20:14:19 -0700 Received: (qmail 45244 invoked by uid 60001); 11 Jun 2007 03:13:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=uhDEq/bFmj4DPo2SpQrkxSMXINH/uzT5dxbpLjW7iGqA8j6y09iHLZfmLcjD8I+pdN87QQWCvOFRXWM6v/XXMeA/8kd9dk5W4QOvDPxWaXe7KDFYgp41+s9A3irm1HhNpIECnddolGRYINk/ZeTEWGEcSNsOAPi39LLFSMioB8Y=; X-YMail-OSG: Ws47dz0VM1mIWS8Hirq7b8HrdSoRn46HW7DEWNKAMGoYlKXsHaZ4YQshh57uPi7skZhKjgartV7jlSKeHsCkNM2WORCXotnrJktigdF1IqqU9c1uhAihIomrxwUIWw-- Received: from [211.155.235.112] by web92008.mail.cnb.yahoo.com via HTTP; Mon, 11 Jun 2007 11:13:54 CST X-Mailer: YahooMailRC/651.29 YahooMailWebService/0.7.41.16 Date: Mon, 11 Jun 2007 11:13:54 +0800 (CST) From: Lin Lin Subject: [AXIS2C]: Query failed wtih client stub generated by WSDL2C To: axis-c-user@ws.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1613294938-1181531634=:43819" Message-ID: <214026.43819.qm@web92008.mail.cnb.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1613294938-1181531634=:43819 Content-Type: text/plain; charset=ascii Hi I had used axis_c 1.6b for sometime, and move to axis2c 1.0 recently. My developing rutine is to write wsdl file first, and generate stub and server skeleton code with WSDL2C and put my own code in the right place. There is a change from axisc 1.6b t axis2c 1.0, and I met a problem while developing the client code. The interface is quite simple, both the input and the output are strings, the client stub is genereated succefully, and I write the the client code as following: ... axutil_env_t* env = NULL; axis2_char_t* client_home = NULL; axis2_char_t* endpoint_uri = NULL; axis2_stub_t* stub = NULL; axis2_GetUrlServerInput_t* url_svr_in = NULL; axis2_GetUrlServerOutput_t* url_svr_out = NULL; endpoint_uri = "http://localhost:9090/axis2/services/ServerRequest"; env = axutil_env_create_all("server_request.log", AXIS2_LOG_LEVEL_TRACE); client_home = AXIS2_GETENV("AXIS2C_HOME"); if (!client_home) client_home = "../../../deploy"; stub = axis2_stub_ServerRequest_create(env, client_home, endpoint_uri); url_svr_in = axis2_GetUrlServerInput_create(env); axis2_char_t * p_group_name = "group1"; axis2_GetUrlServerInput_set_group_name(url_svr_in, env, p_group_name); url_svr_out = axis2_stub_ServerRequest_doGetUrlServer(stub, env, url_svr_in); axis2_char_t * p_svr_addr; if (url_svr_out != NULL) { p_svr_addr = axis2_GetUrlServerOutput_get_server_address(url_svr_out, env); strcpy(svr_addr, p_svr_addr); printf("Output %s \n", p_svr_addr); } else { printf("No url_svr_out output \n"); } ... The code is compiled successfully and everything looks good, but it doesn't work, NO SOAP MESSAGE IS BEING SENT TO THE SERVER. Does anyone can tell me where is the problem in my implementation of the client ? -Thanks Everex ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting --0-1613294938-1181531634=:43819 Content-Type: text/html; charset=ascii
Hi

I had used axis_c 1.6b for sometime, and move to axis2c 1.0 recently. My developing rutine is to write wsdl file first, and generate stub and server skeleton code with WSDL2C and put my own code in the right place. There is a change from axisc 1.6b t axis2c 1.0, and I met a problem while developing the client code.
The interface is quite simple, both the input and the output are strings, the client stub is genereated succefully, and I write the the client code as following:

...
    axutil_env_t*          env          = NULL;
    axis2_char_t*          client_home  = NULL;
    axis2_char_t*          endpoint_uri = NULL;
    axis2_stub_t*          stub         = NULL;

    axis2_GetUrlServerInput_t*  url_svr_in  = NULL;
    axis2_GetUrlServerOutput_t* url_svr_out = NULL;

    endpoint_uri = "http://localhost:9090/axis2/services/ServerRequest";
    env = axutil_env_create_all("server_request.log",
                                AXIS2_LOG_LEVEL_TRACE);


    client_home = AXIS2_GETENV("AXIS2C_HOME");

    if (!client_home)
        client_home = "../../../deploy";

    stub = axis2_stub_ServerRequest_create(env,
                                           client_home,
                                           endpoint_uri);

    url_svr_in = axis2_GetUrlServerInput_create(env);
    axis2_char_t * p_group_name = "group1";
    axis2_GetUrlServerInput_set_group_name(url_svr_in,
                                           env,
                                           p_group_name);

    url_svr_out =
        axis2_stub_ServerRequest_doGetUrlServer(stub,
                                                env,
                                                url_svr_in);


    axis2_char_t * p_svr_addr;
    if (url_svr_out != NULL) {
        p_svr_addr = axis2_GetUrlServerOutput_get_server_address(url_svr_out,
                                                                 env);
        strcpy(svr_addr, p_svr_addr);
        printf("Output %s \n", p_svr_addr);
    }
    else
    {
        printf("No url_svr_out output \n");
    }
...
The code is compiled successfully and everything looks good, but it doesn't work, NO SOAP MESSAGE IS BEING SENT TO THE SERVER. Does anyone can tell me where is the problem in my implementation of the client ?

-Thanks
 
Everex


Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. --0-1613294938-1181531634=:43819--