posted November 17, 2005 05:50 AM -------------------------------------------------------------------------------- hi guys,
I have developed a webservice using Axis1.1 and a java Client. Webservice is a simple file mangement system where it receives file from client and sends requested files as Attachment. ///// String str = VET_GetFile(ID, Filename);
//service function public java.lang.String VET_GetFile(ID, Filename); { String str = "S_FAILED"; if (VET_Authnticate(ID) { str = SendFile(Filename); } LogMsg(str); return str; } the above function returns a string with value either " S_OK" or "S_FAILED".
If the function is succesfull a file wiil be sent to the client as attachment and the function return S_OK else it will S_FAILED.
I get a S_FAILED message in the client when the service is not able to retreive/send a file. but when service sends a file as a Attachment client receives a null value. i f i see the logs of the service LogMsg before return statement in above function logs S_OK, so str is having a relavent value. I have no clue where str s getting null value.