Created
May 15, 2014 16:45
-
-
Save emiliom/ddf27c237e4012edbf78 to your computer and use it in GitHub Desktop.
#python #CUAHSI Problem with Water Data Center GetValuesObject request (sort of). Well, the GetValuesObject request is actually to a specific provider, not the WDC. The WDC is only returning the provider series from a GetSeriesCatalogForBox2 request. http://hiscentral.cuahsi.org/webservices/hiscentral.asmx 5/15/2014. Emilio Mayorga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:61f6e82b2ce17a82303949154121bdc20b6c1426c66cdfa900650996a9e018a6" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": [ | |
| "## Problem with Water Data Center GetValuesObject request (sort of)\n", | |
| "Well, the GetValuesObject request is actually to a specific provider, not the WDC. The WDC is only returning the provider series from a GetSeriesCatalogForBox2 request.\n", | |
| "http://hiscentral.cuahsi.org/webservices/hiscentral.asmx \n", | |
| "5/15/2014. Emilio Mayorga" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "from suds.client import Client\n", | |
| "\n", | |
| "#Search parameters\n", | |
| "ymin,xmin,ymax,xmax = (33.84, -81.25, 34.24, -80.84) # South Carolina\n", | |
| "keyword = 'Streamflow' # A higher-level, common vocabulary mapping from individual variable names\n", | |
| "start_date = '2000-01-01'\n", | |
| "end_date = '2000-12-31'" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 1 | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": [ | |
| "### Old SDSC HIS Central: GetSeriesCatalogForBox2 request followed by GetValuesObject requests to each series (service) that's returned" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "# The WSDL below is obsolescent and out of date, \n", | |
| "# but my old code worked fine with this one and not with the WDC WSDL\n", | |
| "HIS_Central_URL = \"http://water.sdsc.edu/hiscentral/webservices/hiscentral.asmx?WSDL\"\n", | |
| " \n", | |
| "#query HIS Central for time series\n", | |
| "client = Client(HIS_Central_URL)\n", | |
| "response = client.service.GetSeriesCatalogForBox2(xmin, xmax, ymin, ymax, \n", | |
| " keyword, '', start_date, end_date)\n", | |
| "# Returns list of dicts holding metadata for each matching series\n", | |
| "series_array = response[0]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 2 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "for series in series_array:\n", | |
| " print series.ServURL\n", | |
| " client = Client(series.ServURL)\n", | |
| " values_obj = client.service.GetValuesObject(series.location,\n", | |
| " series.VarCode, start_date, end_date)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 3 | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": [ | |
| "### Water Data Center HIS Central: GetSeriesCatalogForBox2 request followed by GetValuesObject requests to each series (service) that's returned" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "# 5/14/2014. The current, updated WSDL from the Water Data Center (WDC) is:\n", | |
| "HIS_Central_URL = \"http://hiscentral.cuahsi.org/webservices/hiscentral.asmx?WSDL\"\n", | |
| "\n", | |
| "#query HIS Central for time series\n", | |
| "client = Client(HIS_Central_URL)\n", | |
| "response = client.service.GetSeriesCatalogForBox2(xmin, xmax, ymin, ymax, \n", | |
| " keyword, '', start_date, end_date)\n", | |
| "# Returns list of dicts holding metadata for each matching series\n", | |
| "series_array = response[0]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 4 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "for series in series_array:\n", | |
| " print series.ServURL\n", | |
| " #client = Client(series.ServURL)\n", | |
| " #values_obj = client.service.GetValuesObject(series.location,\n", | |
| " # series.VarCode, start_date, end_date)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/GLDAS_NOAH_001.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/GLDAS_NOAH_001.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/GLDAS_NOAH_001.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/GLDAS_NOAH_001.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/NLDAS_NOAH_002.cgi?WSDL\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL\n", | |
| "http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 5 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "# Attempt GetValuesObject request on first service/series\n", | |
| "series = series_array[0]\n", | |
| "print series.ServURL\n", | |
| "client = Client(series.ServURL)\n", | |
| "values_obj = client.service.GetValuesObject(series.location,\n", | |
| " series.VarCode, start_date, end_date)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stderr", | |
| "text": [ | |
| "ERROR:suds.umx.typed:Schema:0x51e7e18\n", | |
| "(raw)\n", | |
| " <s:schema elementFormDefault=\"qualified\" targetNamespace=\"http://www.cuahsi.org/his/1.0/ws/\">\n", | |
| " <s:import namespace=\"http://www.cuahsi.org/waterML/1.0/\"/>\n", | |
| " <s:element name=\"GetSitesXml\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"tns:ArrayOfString\" name=\"site\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:complexType name=\"ArrayOfString\">\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"unbounded\" nillable=\"true\" type=\"s:string\" name=\"string\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " <s:element name=\"GetSitesXmlResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"GetSitesXmlResult\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSiteInfo\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"site\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSiteInfoResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"GetSiteInfoResult\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetVariableInfo\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"variable\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetVariableInfoResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"GetVariableInfoResult\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetValues\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"location\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"variable\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"startDate\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"endDate\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetValuesResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"GetValuesResult\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSites\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"tns:ArrayOfString\" name=\"site\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSitesResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" ref=\"s1:sitesResponse\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSiteInfoObject\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"site\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetSiteInfoObjectResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" ref=\"s1:sitesResponse\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetVariableInfoObject\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"variable\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetVariableInfoObjectResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" ref=\"s1:variablesResponse\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetValuesObject\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"location\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"variable\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"startDate\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"endDate\" minOccurs=\"0\"/>\n", | |
| " <s:element maxOccurs=\"1\" type=\"s:string\" name=\"authToken\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " <s:element name=\"GetValuesObjectResponse\">\n", | |
| " <s:complexType>\n", | |
| " <s:sequence>\n", | |
| " <s:element maxOccurs=\"1\" ref=\"s1:timeSeriesResponse\" minOccurs=\"0\"/>\n", | |
| " </s:sequence>\n", | |
| " </s:complexType>\n", | |
| " </s:element>\n", | |
| " </s:schema>\n", | |
| "(model)\n", | |
| " <Element:0x4025c50 name=\"GetSitesXml\">\n", | |
| " <Complex:0x4025910>\n", | |
| " <Sequence:0x40257d0>\n", | |
| " <Element:0x4025690 name=\"site\" type=\"(u'ArrayOfString', u'http://www.cuahsi.org/his/1.0/ws/')\" />\n", | |
| " <Element:0x4025610 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Complex:0x4025a90 name=\"ArrayOfString\">\n", | |
| " <Sequence:0x4025750>\n", | |
| " <Element:0x4025510 name=\"string\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " <Element:0x4025850 name=\"GetSitesXmlResponse\">\n", | |
| " <Complex:0x4025490>\n", | |
| " <Sequence:0x4025310>\n", | |
| " <Element:0x4025150 name=\"GetSitesXmlResult\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4025590 name=\"GetSiteInfo\">\n", | |
| " <Complex:0x4025210>\n", | |
| " <Sequence:0x4025050>\n", | |
| " <Element:0x39b4ed0 name=\"site\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x39b4d90 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4025410 name=\"GetSiteInfoResponse\">\n", | |
| " <Complex:0x39b4f50>\n", | |
| " <Sequence:0x39b4c50>\n", | |
| " <Element:0x39b4ad0 name=\"GetSiteInfoResult\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x40250d0 name=\"GetVariableInfo\">\n", | |
| " <Complex:0x39b4b90>\n", | |
| " <Sequence:0x39b4850>\n", | |
| " <Element:0x39b46d0 name=\"variable\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x39b4650 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x39b4d10 name=\"GetVariableInfoResponse\">\n", | |
| " <Complex:0x39b47d0>\n", | |
| " <Sequence:0x39b44d0>\n", | |
| " <Element:0x4e79610 name=\"GetVariableInfoResult\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x39b48d0 name=\"GetValues\">\n", | |
| " <Complex:0x39b4450>\n", | |
| " <Sequence:0x4e79510>\n", | |
| " <Element:0x4e79410 name=\"location\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79390 name=\"variable\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79310 name=\"startDate\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79290 name=\"endDate\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79210 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x39b4550 name=\"GetValuesResponse\">\n", | |
| " <Complex:0x4e79490>\n", | |
| " <Sequence:0x4e79110>\n", | |
| " <Element:0x4e79690 name=\"GetValuesResult\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79590 name=\"GetSites\">\n", | |
| " <Complex:0x4e79090>\n", | |
| " <Sequence:0x4e79710>\n", | |
| " <Element:0x4e79790 name=\"site\" type=\"(u'ArrayOfString', u'http://www.cuahsi.org/his/1.0/ws/')\" />\n", | |
| " <Element:0x4e797d0 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79190 name=\"GetSitesResponse\">\n", | |
| " <Complex:0x4e79750>\n", | |
| " <Sequence:0x4e79850>\n", | |
| " <Element:0x4e798d0 name=\"sitesResponse\" ref=\"(u'sitesResponse', u'http://www.cuahsi.org/waterML/1.0/')\" type=\"(u'SiteInfoResponseType', u'http://www.cuahsi.org/waterML/1.0/')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e796d0 name=\"GetSiteInfoObject\">\n", | |
| " <Complex:0x4e79890>\n", | |
| " <Sequence:0x4e79950>\n", | |
| " <Element:0x4e799d0 name=\"site\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79a10 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79810 name=\"GetSiteInfoObjectResponse\">\n", | |
| " <Complex:0x4e79990>\n", | |
| " <Sequence:0x4e79a90>\n", | |
| " <Element:0x4e79b10 name=\"sitesResponse\" ref=\"(u'sitesResponse', u'http://www.cuahsi.org/waterML/1.0/')\" type=\"(u'SiteInfoResponseType', u'http://www.cuahsi.org/waterML/1.0/')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79910 name=\"GetVariableInfoObject\">\n", | |
| " <Complex:0x4e79ad0>\n", | |
| " <Sequence:0x4e79b90>\n", | |
| " <Element:0x4e79c10 name=\"variable\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79c50 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79a50 name=\"GetVariableInfoObjectResponse\">\n", | |
| " <Complex:0x4e79bd0>\n", | |
| " <Sequence:0x4e79cd0>\n", | |
| " <Element:0x4e79d50 name=\"variablesResponse\" ref=\"(u'variablesResponse', u'http://www.cuahsi.org/waterML/1.0/')\" type=\"(u'VariablesResponseType', u'http://www.cuahsi.org/waterML/1.0/')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79b50 name=\"GetValuesObject\">\n", | |
| " <Complex:0x4e79d10>\n", | |
| " <Sequence:0x4e79dd0>\n", | |
| " <Element:0x4e79e50 name=\"location\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79e90 name=\"variable\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79ed0 name=\"startDate\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79f10 name=\"endDate\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " <Element:0x4e79f50 name=\"authToken\" type=\"(u'string', u'http://www.w3.org/2001/XMLSchema')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| " <Element:0x4e79c90 name=\"GetValuesObjectResponse\">\n", | |
| " <Complex:0x4e79e10>\n", | |
| " <Sequence:0x4e79fd0>\n", | |
| " <Element:0x51d3090 name=\"timeSeriesResponse\" ref=\"(u'timeSeriesResponse', u'http://www.cuahsi.org/waterML/1.0/')\" type=\"(u'TimeSeriesResponseType', u'http://www.cuahsi.org/waterML/1.0/')\" />\n", | |
| " </Sequence>\n", | |
| " </Complex>\n", | |
| " </Element>\n", | |
| "\n" | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "http://hydro1.sci.gsfc.nasa.gov/daac-bin/his/1.0/GLDAS_NOAH_001.cgi?WSDL\n" | |
| ] | |
| }, | |
| { | |
| "ename": "TypeNotFound", | |
| "evalue": "Type not found: 'method'", | |
| "output_type": "pyerr", | |
| "traceback": [ | |
| "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mTypeNotFound\u001b[0m Traceback (most recent call last)", | |
| "\u001b[1;32m<ipython-input-6-233512a2a28e>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[0mclient\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mClient\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mseries\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mServURL\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m values_obj = client.service.GetValuesObject(series.location,\n\u001b[1;32m----> 6\u001b[1;33m series.VarCode, start_date, end_date)\n\u001b[0m", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/client.pyc\u001b[0m in \u001b[0;36m__call__\u001b[1;34m(self, *args, **kwargs)\u001b[0m\n\u001b[0;32m 540\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[1;33m(\u001b[0m\u001b[1;36m500\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 541\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 542\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[0mclient\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0minvoke\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 543\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 544\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mfaults\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/client.pyc\u001b[0m in \u001b[0;36minvoke\u001b[1;34m(self, args, kwargs)\u001b[0m\n\u001b[0;32m 600\u001b[0m timer)\n\u001b[0;32m 601\u001b[0m \u001b[0mtimer\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 602\u001b[1;33m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msoapenv\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 603\u001b[0m \u001b[0mtimer\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstop\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 604\u001b[0m metrics.log.debug(\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/client.pyc\u001b[0m in \u001b[0;36msend\u001b[1;34m(self, soapenv)\u001b[0m\n\u001b[0;32m 641\u001b[0m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mreply\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 642\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 643\u001b[1;33m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msucceeded\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mbinding\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mreply\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 644\u001b[0m \u001b[1;32mexcept\u001b[0m \u001b[0mTransportError\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 645\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mhttpcode\u001b[0m \u001b[1;32min\u001b[0m \u001b[1;33m(\u001b[0m\u001b[1;36m202\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m204\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/client.pyc\u001b[0m in \u001b[0;36msucceeded\u001b[1;34m(self, binding, reply)\u001b[0m\n\u001b[0;32m 676\u001b[0m \u001b[0mplugins\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mPluginContainer\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0moptions\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mplugins\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 677\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mreply\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>\u001b[0m \u001b[1;36m0\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 678\u001b[1;33m \u001b[0mreply\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mbinding\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget_reply\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmethod\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mreply\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 679\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlast_received\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mreply\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 680\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/bindings/binding.pyc\u001b[0m in \u001b[0;36mget_reply\u001b[1;34m(self, method, reply)\u001b[0m\n\u001b[0;32m 163\u001b[0m \u001b[0munmarshaller\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0munmarshaller\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 164\u001b[0m \u001b[0mresolved\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mrtypes\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mresolve\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnobuiltin\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mTrue\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 165\u001b[1;33m \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0munmarshaller\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mprocess\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnodes\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mresolved\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 166\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mreplyroot\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mresult\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 167\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mreplyroot\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mNone\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/typed.pyc\u001b[0m in \u001b[0;36mprocess\u001b[1;34m(self, node, type)\u001b[0m\n\u001b[0;32m 64\u001b[0m \u001b[0mcontent\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mContent\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnode\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 65\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtype\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtype\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 66\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[0mCore\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mprocess\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 67\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 68\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mreset\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mprocess\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 46\u001b[0m \"\"\"\n\u001b[0;32m 47\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mreset\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 48\u001b[1;33m \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 49\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 50\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mappend\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 61\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 62\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_attributes\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 63\u001b[1;33m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_children\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 64\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_text\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 65\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mappend_children\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 138\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mchild\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mnode\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 139\u001b[0m \u001b[0mcont\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mContent\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mchild\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 140\u001b[1;33m \u001b[0mcval\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcont\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 141\u001b[0m \u001b[0mkey\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mreserved\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mchild\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mchild\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 142\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mkey\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdata\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mappend\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 61\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 62\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_attributes\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 63\u001b[1;33m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_children\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 64\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_text\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 65\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mappend_children\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 138\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mchild\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mnode\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 139\u001b[0m \u001b[0mcont\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mContent\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mchild\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 140\u001b[1;33m \u001b[0mcval\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcont\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 141\u001b[0m \u001b[0mkey\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mreserved\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mchild\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mchild\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 142\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mkey\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdata\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/core.pyc\u001b[0m in \u001b[0;36mappend\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 59\u001b[0m \u001b[1;33m@\u001b[0m\u001b[0msee\u001b[0m\u001b[1;33m:\u001b[0m \u001b[0mL\u001b[0m\u001b[1;33m{\u001b[0m\u001b[0mprocess\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m}\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 60\u001b[0m \"\"\"\n\u001b[1;32m---> 61\u001b[1;33m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 62\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_attributes\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 63\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend_children\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;32m/usr/anaconda/anaconda/envs/ioos_em_13/lib/python2.7/site-packages/suds/umx/typed.pyc\u001b[0m in \u001b[0;36mstart\u001b[1;34m(self, content)\u001b[0m\n\u001b[0;32m 78\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mfound\u001b[0m \u001b[1;32mis\u001b[0m \u001b[0mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 79\u001b[0m \u001b[0mlog\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0merror\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mresolver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mschema\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 80\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0mTypeNotFound\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mnode\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mqname\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 81\u001b[0m \u001b[0mcontent\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtype\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mfound\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 82\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[1;31mTypeNotFound\u001b[0m: Type not found: 'method'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 6 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| } | |
| ], | |
| "metadata": {} | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment