CUAHSI / CUAHSI/HydroServer

Web Services do not work from MATLAB

Open
#43 3 comments 0 reactions 0 assignees View on GitHub
CodePlex
Dominant language
Visual Basic .NET
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

dtarb[CodePlex]
In 2008 functionality for accessing HydroServer Web services directly from MATLAB using the MATLAB createClassFromWsdl function was demonstrated. Between then and now this functionality has ceased working due to quotupgradesquot in either MATLAB or
the web services or both.
nbsp
Following are the errors that occur with MATLAB version 7.12.0 (R2011a)
nbsp
This is on a standard HydroServer web service:
nbsp
createClassFromWsdl('http://icewater.usu.edu/littlebearriver/cuahsi_1_0.asmx?WSDL')
Retrieving document at 'http://icewater.usu.edu/littlebearriver/cuahsi_1_0.asmx?WSDL'
??? Attempt to reference field of non-structure array.
nbsp
Error in ==gt createClassFromWsdlgtextractTypeFromSchemaElement at 342
nextType = char(tElement.getSchemaType().getQName());
nbsp
Error in ==gt createClassFromWsdlgtextractParams at 249
nextRetList = extractTypeFromSchemaElement(xElement);
nbsp
Error in ==gt createClassFromWsdlgtmakeOperation at 223
op.output = extractParams(operation.getOutput(), schema);
nbsp
Error in ==gt createClassFromWsdlgtparseWsdl at 169
op = makeOperation(operation,schema);
nbsp
Error in ==gt createClassFromWsdl at 32
[R, schema] = parseWsdl(wsdlUrl);
nbsp
The following is on a Hybrid Web Service at SDSC
createClassFromWsdl('http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL')
Retrieving document at 'http://river.sdsc.edu/wateroneflow/NWIS/DailyValues.asmx?WSDL'
[Fatal Error] wsdl.wsdl:270:71: Invalid byte 1 of 1-byte UTF-8 sequence.
nbsp
??? Error using ==gt createClassFromWsdlgtparseWsdl at 97
javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem
parsing 'file:/C:/Users/dtarb/Dave/MATLAB/wsdl.wsdl'.:
org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
nbsp
Error in ==gt createClassFromWsdl at 32
[R, schema] = parseWsdl(wsdlUrl);

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two createClassFromWsdl cases against the listed HydroServer and SDSC WSDL URLs, then compare the MATLAB stack traces at extractTypeFromSchemaElement and parseWsdl. Determine whether the failure is in MATLAB, the WSDL responses, or both; done means the compatibility problem and required project change are identified, with successful web-service access demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.