Topic
  • No replies
joseluis_rg
joseluis_rg
2 Posts

Pinned topic Error while WS querying: The element type "ENTITY" must be terminated...

‏2009-10-12T23:04:24Z |
I was trying to do a query using the umfRequest service for EAS and got an issue. This is my request based on the documentation:


- <soapenv:Envelope xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0=
"urn:webservice.app.srdnet.com" xmlns:xsd=
"http://www.w3.org/2001/XMLSchema" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"> - <soapenv:Body> <q0:umfRequest><UMF_QUERY><DSRC_CODE>NOMINADS</DSRC_CODE><DSRC_REF>NOMINADS</DSRC_REF><FORMAT_CODE>WS_DETAIL</FORMAT_CODE><ENTITY_ID>1001</ENTITY_ID></UMF_QUERY></q0:umfRequest> </soapenv:Body> </soapenv:Envelope>


And this is the response of EAS.


- <soapenv:Envelope xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=
"http://www.w3.org/2001/XMLSchema" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"> - <soapenv:Body> - <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.rmi.RemoteException: Failed to process request; nested exception is: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The element type 
"ENTITY" must be terminated by the matching end-tag 
"</ENTITY>".</faultstring> <detail /> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>


Then if I try changing <ENTITY_ID> to <ENTITY> the response is:


<soapenv:Envelope xmlns:soapenv=
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=
"http://www.w3.org/2001/XMLSchema" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"> - <soapenv:Body> - <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.rmi.RemoteException: Failed to process request; nested exception is: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Premature end of file.</faultstring> <detail /> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>


Any thoughts?