File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes client receiving Null value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "client receiving Null value" Watch "client receiving Null value" New topic
Author

client receiving Null value

Srikanth
Greenhorn

Joined: Nov 17, 2005
Posts: 4
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.


Dove
 
 
subject: client receiving Null value
 
Threads others viewed
Client receiving NULL.
SOAP with Attachments (SwA) with Axis2, problem.
NullPointerException returned from webservice
.Net Client for Axis Web services
Program wont send data through socket.
IntelliJ Java IDE