mlabs-haskell / opc-xml-da-client

OPC XML-DA Client for Haskell
MIT License
2 stars 1 forks source link

Implement parsing of custom fault codes #8

Closed nikita-volkov closed 3 years ago

nikita-volkov commented 3 years ago

This is to fix the issue of the following error:

Just ("<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org
/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:ns1=\"http://opcfou
ndation.org/webservices/XMLDA/1.0/\" xmlns:ns2=\"Service\"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body id=\"_0\"><SOAP-ENV:Fault><faultcode>
E_NOSUBSCRIPTION</faultcode><faultstring>E_NOSUBSCRIPTION</faultstring><detail>E_NOSUBSCRIPTION</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-EN
V:Envelope>",[Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothin
g,Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing er
ror: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing error: /Body/F
ault/faultcode/0: Not a SOAP ENV ns: Nothing,Parsing error: /Body/Fault/faultcode/0: Not a SOAP ENV ns: Nothing])