AuthenticatePatron service fails with XServiceException
- Product: Voyager
- Product Version: 8.1.1
Problem Symptoms
Using script and CURL command to POST valid patron data using AuthenticatePatron XML over HTTP web service:
http://<IP>:<port>/vxws/AuthenticatePatronService
Input XML:
<?xml version="1.0" encoding="UTF-8"?> <ser:serviceParameters xmlns:ser="http://www.endinfosys.com/Voyager/serviceParameters"> <ser:parameters> <ser:parameter key="pin"><ser:value>1</ser:value></ser:parameter> </ser:parameters> <ser:patronIdentifier lastName="AValidLastName"/> <ser:authFactor type="B">xxxx</ser:authFactor> </ser:patronIdentifier> </ser:serviceParameters>
Output XML:
<?xml version="1.0" encoding="UTF-8"?> <ser:voyagerServiceData xmlns:ser="http://www.endinfosys.com/Voyager/serviceParameters"> <ser:messages> <ser:message type="error" errorCode="com.endinfosys.voyager.websvc.AbstractXService.XServiceException">failed to get ServiceParametersDocument from request parameters</ser:message> </ser:messages> </ser:voyagerServiceData>
Cause
Input XML is not being sent.
Resolution
Ensure input XML is created and sent to vxws with the URL, and that it's submitted via POST method.
Additional Information
RESTclient (https://addons.mozilla.org/en-us/firefox/addon/restclient/) is a third-party tool that may be useful for verifying that XML is correct and that vxws is sending an appropriate response when it receives the XML.
- Article last edited: 08-Oct-2013