• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

client receiving Null value

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

have Any body faced this kind of error.
 
reply
    Bookmark Topic Watch Topic
  • New Topic