|
|
Choosing A Webhost: |
Problem while returning the response back (axis2C): msg#00149apache.webservices.axis-c.user
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
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> |
|---|---|---|
| Previous by Date: | how to set the username & password dynamically using Rampart, Murali Konnipati |
|---|---|
| Next by Date: | Re: how to set the username & password dynamically using Rampart, Kaushalye Kapuruge |
| Previous by Thread: | how to set the username & password dynamically using Rampart, Murali Konnipati |
| Next by Thread: | Re: Problem while returning the response back (axis2C), Dimuthu Gamage |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |