Opened 5 years ago

Closed 4 years ago

#2243 closed enhancement (fixed)

WSClient - parse the error message in XML exception from petascope

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: wcsclient Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

The error message from Petascope is wrapped inside XML according to the standard. WSClient can parse the error message inside it and shows to users. Example:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="2.0.1"
    xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"
    xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
    <ows:Exception exceptionCode="InvalidSubsetting">
        <ows:ExceptionText>slicing '2015-01-31' is not valid for irregular axis 'unix'.</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>


Then it should show only in WSClient

slicing '2015-01-31' is not valid for irregular axis 'unix'.

Change History (3)

comment:1 by Peter Baumann, 5 years ago

..or even better:

Error: slicing '2015-01-31' is not valid for irregular axis 'unix'.

comment:2 by Dimitar Misev, 5 years ago

Owner: set to Bang Pham Huu
Status: newassigned

comment:3 by Bang Pham Huu, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.