07.18.07
Java Web Service Error
My freind Ali İhsan ( the dude ) asks me why it has been giving such an error in a java web service project using Netbeans 5.5 as ide:
Error deploying web services. The file could not be found.
He said this was only a test-drive for a project start. He tried to return a custom object called Product which is not a ‘java bean’. The code below is the object to be returned:
class Product{String name;
int id;
public Product(String name,int id){this.name=name;
this.id=id;}
}
And here is the web service method:
@WebMethod
public Product getProduct(int id,String name){return new Product(name,id);
}
I have googled the net but could not find an exact solution. At that time, I realize that the custom object that would be returned should be a java bean and said Ali İhsan to give it a try and it was sheer magic that the error returned by the application server disappeared.
As a result of that, everything in Java should be bean!
Hi, This is Ömer speaking
Hi,
This my first blog on the net and the first message on the blog.