I have been tearing my hair out now for 2 hours trying to work out what was wrong with the document path I was passing into this web service method
because it kept throwing a PathNotFoundException (the avoidance of which I understood to be its reason for being) only to discover that there is nothing at all wrong with the path but with the method its self.
If you pass in a path that does exist it works perfectly (as in a 'true' value is returned as expected). But if you pass in a path that doesnt exist (which I would have thought would result in a 'false' result as per the documentation) it throws an exception instead. Not the most useful it must be said.
The same method on OKMDocument behaves in exactly the same fashion..
Hopefully this will save somebody else from wasting any of there time.
because it kept throwing a PathNotFoundException (the avoidance of which I understood to be its reason for being) only to discover that there is nothing at all wrong with the path but with the method its self.
If you pass in a path that does exist it works perfectly (as in a 'true' value is returned as expected). But if you pass in a path that doesnt exist (which I would have thought would result in a 'false' result as per the documentation) it throws an exception instead. Not the most useful it must be said.
The same method on OKMDocument behaves in exactly the same fashion..
Hopefully this will save somebody else from wasting any of there time.