<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello web services,<br>
    <br>
    The <a
href="https://www.iris.edu/hq/programs/education_and_outreach/software/jamaseis">jAmaseis</a>
    program has been using web services to fetch networks but we
    recently discovered it is no longer working. I updated to the latest
    version of the IRIS-WS library to make sure a new version was not
    required for access now but I still see the same error.<br>
    <br>
    Here is a simple test program based on the code that is used:<br>
    <br>
    <tt>package edu.iris.epo.jamaseis.dmc;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>import java.util.Date;</tt><tt><br>
    </tt><tt>import java.util.List;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>import edu.iris.dmc.criteria.OutputLevel;</tt><tt><br>
    </tt><tt>import edu.iris.dmc.criteria.StationCriteria;</tt><tt><br>
    </tt><tt>import edu.iris.dmc.fdsn.station.model.Network;</tt><tt><br>
    </tt><tt>import edu.iris.dmc.service.ServiceUtil;</tt><tt><br>
    </tt><tt>import edu.iris.dmc.service.StationService;</tt><tt><br>
    </tt><tt><br>
    </tt><tt>public class DmcSourceTest {</tt><tt><br>
    </tt><tt>    public static void main(String[] args) {</tt><tt><br>
    </tt><tt>        ServiceUtil serviceManager =
      ServiceUtil.getInstance();</tt><tt><br>
    </tt><tt>        StationService stationService =
      serviceManager.getStationService();</tt><tt><br>
    </tt><tt>        Date now = new Date();</tt><tt><br>
    </tt><tt>        StationCriteria stationCriteria = new
      StationCriteria()</tt><tt><br>
    </tt><tt>                .setEndAfter(now).setStartBefore(now);</tt><tt><br>
    </tt><tt>        try {</tt><tt><br>
    </tt><tt>            List&lt;Network&gt; networks =
      stationService.fetch(stationCriteria,</tt><tt><br>
    </tt><tt>                    OutputLevel.NETWORK);</tt><tt><br>
    </tt><tt>            System.out.println("networks: " + networks);</tt><tt><br>
    </tt><tt>        } catch (Exception ex) {</tt><tt><br>
    </tt><tt>            ex.printStackTrace();</tt><tt><br>
    </tt><tt>        }</tt><tt><br>
    </tt><tt>    }</tt><tt><br>
    </tt><tt>}</tt><br>
    <br>
    Here is the stack trace for the exception thrown on the fetch:<br>
    <br>
    <tt>java.lang.IllegalArgumentException: unknown</tt><tt><br>
    </tt><tt>    at
edu.iris.dmc.fdsn.station.model.RestrictedStatusType.fromValue(RestrictedStatusType.java:58)</tt><tt><br>
    </tt><tt>    at
edu.iris.dmc.service.station.parser.StationXMLParser.parse(StationXMLParser.java:227)</tt><tt><br>
    </tt><tt>    at
      edu.iris.dmc.service.StationService.fetch(StationService.java:432)</tt><tt><br>
    </tt><tt>    at
      edu.iris.dmc.service.StationService.fetch(StationService.java:353)</tt><tt><br>
    </tt><tt>    at
      edu.iris.dmc.service.StationService.fetch(StationService.java:312)</tt><tt><br>
    </tt><tt>    at
      edu.iris.dmc.service.StationService.fetch(StationService.java:337)</tt><tt><br>
    </tt><tt>    at
      edu.iris.epo.jamaseis.dmc.DmcSourceTest.main(DmcSourceTest.java:20)</tt><br>
    <br>
    Are there additional criteria settings that are required now or
    should this still work?<br>
    <br>
    Thanks,<br>
    Kevin<br>
  </body>
</html>