Hi everybody, I'm a student and I need to work on web services for one of my courses.
I've tried some examples from my teacher and some code of mine, but everytime i run the client code i receive in output exceptions like these:
I really don't undestand what's the matter.
In the specific case the WS implements an inventory service. the client asks for availability of one product by passing its code and number of items requested. The server check if the product is available (controlling a products.xml file that contains all the information) and returns the result. This in theory, while in practice I receive this messages of error.
This is the client code:
And this is the server:
This is an example of how the products.xml file is:
The project provides also two auxiliary class for creating and accessing the product elements, a service.xml file and a build file for creating the .aar file for deployment.
I really hope that someone can help me to understand where's the fault.
And off course, if you need any other information just ask me
Thank you all!!!
I've tried some examples from my teacher and some code of mine, but everytime i run the client code i receive in output exceptions like these:
I really don't undestand what's the matter.
In the specific case the WS implements an inventory service. the client asks for availability of one product by passing its code and number of items requested. The server check if the product is available (controlling a products.xml file that contains all the information) and returns the result. This in theory, while in practice I receive this messages of error.
This is the client code:
And this is the server:
This is an example of how the products.xml file is:
The project provides also two auxiliary class for creating and accessing the product elements, a service.xml file and a build file for creating the .aar file for deployment.
I really hope that someone can help me to understand where's the fault.
And off course, if you need any other information just ask me
Thank you all!!!