Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Problem while returning the response back (axis2C): msg#00149

apache.webservices.axis-c.user

Subject: Problem while returning the response back (axis2C)

Hi
 
I sent a message to the service, but i have a problem while getting the output message.
 
Please have a look at the service implementation:
 
 adb_pInterchange_t* axis2_skel_ParseMessage_parseMessage (const axutil_env_t *env  ,
                                              adb_inputMessage_t* inputMessage )
        {
          /* TODO fill this with the necessary business logic */
        adb_pInterchange_t* myInt = adb_pInterchange_create(env);
        printf ("I am inside the service method %u\n",myInt );
        myInt->attrib_pInterchange = adb_INTERCHANGE_create(env);
        adb_INTERCHANGE_set_internal_intref_no(myInt->attrib_pInterchange,env,"222222");
        printf("The address of intref no = %u\n",adb_INTERCHANGE_get_internal_intref_no(myInt->attrib_pInterchange,env));
        adb_INTERCHANGE_set_interchange_ref_no(myInt->attrib_pInterchange,env,"333333");
        adb_INTERCHANGE_set_sender_id(myInt->attrib_pInterchange,env,"44444");
        myInt->attrib_pInterchange->attrib_message= adb_MESSAGE_create(env);
        printf ("THe sender id = %s\n", adb_INTERCHANGE_get_sender_id(myInt->attrib_pInterchange,env));

 return myInt;
        }

Here, i created a pointer of  myInt and populated with some value. And returned myInt. When i print it in the client side, I am getting junk.

 When i debugged it, I found that in adb_pInterchange_t* axis2_stub_ParseMessage_parseMessage() function (axis2_stub_ParseMessage.c) , after the call to axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload), the code has generated another object of adb_pInterchange_t and returns that to the client. If that is returned, the object that I return from the service is lost. I am attaching the file axis2_stub_ParseMessage.c for reference. Reference: LIne number : 140 and 149. Why there is a call to create interchange object once again at line 48? I was thinking that, the object returned by the service should be returned to the client.

Please let me know if the way, i created the object inside the service is correct or not.

Thanks

Sathya

Attachment: axis2_stub_ParseMessage.c
Description: Text document

---------------------------------------------------------------------
To unsubscribe, e-mail:
axis-c-user-unsubscribe-28n8OjmUYWfNLxjTenLetw@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
axis-c-user-help-28n8OjmUYWfNLxjTenLetw@xxxxxxxxxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation