Guest User

spyne validation error for date

a guest
Aug 28th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.89 KB | None | 0 0
  1.  
  2. DEBUG Running with built-in debug WSGI server
  3. INFO Listening at http://127.0.0.1:7789
  4. INFO WSDL is at: http://127.0.0.1:7789/?wsdl
  5. DEBUG ValueError(u'Unicode strings with encoding declaration are not supported.',) -- falling back to str decoding.
  6. DEBUG Method request string: {cts.namespace.type}RegisterPhysicalPerson
  7. DEBUG <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  8.   <soap:Body>
  9.     <RegisterPhysicalPerson xmlns="cts.namespace.type">
  10.       <request>
  11.         <firstName>JOHN</firstName>
  12.         <lastName>CO&#536;ERU</lastName>
  13.         <icNumber>22222</icNumber>
  14.         <idnp>11111</idnp>
  15.         <birthDate>1985-04-06</birthDate>
  16.         <icSerial>A</icSerial>
  17.       </request>
  18.     </RegisterPhysicalPerson>
  19.   </soap:Body>
  20. </soap:Envelope>
  21.  
  22. ERROR Fault(Client.ValidationError: "The value '1985-04-06' could not be validated.")
  23. DEBUG Response <?xml version='1.0' encoding='ASCII'?>
  24. <senv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:tns="cts.namespace.type" xmlns:plink="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:senc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s12env="http://www.w3.org/2003/05/soap-envelope/" xmlns:s12enc="http://www.w3.org/2003/05/soap-encoding/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:senv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
  25.   <senv:Body>
  26.     <senv:Fault>
  27.       <faultcode>senv:Client.ValidationError</faultcode>
  28.       <faultstring>The value '1985-04-06' could not be validated.</faultstring>
  29.       <faultactor></faultactor>
  30.     </senv:Fault>
  31.   </senv:Body>
  32. </senv:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment