issues accessing web services in matlab using createClassFromWsdl
Show older comments
when we try to access a wcf/.net service we get this error:
Retrieving document at 'http://129.1.21.208:8050/GiBridge?wsdl'.
??? Error using ==> createClassFromWsdl>parseWsdl at 83
javax.wsdl.WSDLException (at /wsdl:definitions/wsdl:import): faultCode=Other_ERROR: Unable to resolve imported document at 'http://localhost:8050/GiBridge?wsdl=wsdl0', relabive to 'http://129.1.21.208:8050/GiBridge?wsdl': java.net.ConnectException: Connection refused: connect
Error in ==> createClassFromWsdl at 32
[R, schema] = parseWsdl(wsdlUrl);
Error in ==> WebServices at 3
createClassFromWsdl('http://129.1.21.208:8050/GiBridge?wsdl')
Retrieving document at 'http://129.1.21.208:8050/GiBridge?wsdl'.
now i get a different issue when i try to do this against a JAX-WS service in glassfish:
Retrieving document at 'http://129.1.21.208:8080/LogImplService/LogImpl?wsdl'.
Retrieving schema at 'http://129.1.21.208:8080/LogImplService/LogImpl?xsd=1', relabive to 'http://129.1.21.208:8080/LogImpleService/LogImpl?wsdl'.
??? Attempt to reference field of non-structure array.
Error in ==> createClassFromWsdl at 45
name = {R.name};
Error in ==> WebServices at 1
createClassFromWsdl('http://129.1.21.208:8080/LogImplService/LogImpl?wsdl')
any ideas?
1 Comment
James Chan
on 3 Nov 2011
Answers (1)
Walter Roberson
on 2 Nov 2011
1 vote
I speculate that in the second case, if you were to put a breakpoint at createClassFromWsdl line 45, that you would find that R is not a structure at that point and is instead (most likely) an error message, or perhaps an empty array, reflective of a failure earlier.
The first case appears to be using the local host as a proxy... I wonder if the second case does the same?
Time for some "dbstop if error" and kin...
3 Comments
James Chan
on 3 Nov 2011
Walter Roberson
on 3 Nov 2011
In the first situation, you have shown the value of the extension variable, but could you show us class(extension) ?
Armand Chrystel Moutchiho
on 18 Feb 2013
Edited: Armand Chrystel Moutchiho
on 18 Feb 2013
Hello, Please Walter, I am having exactly the errror you described as second case behaviour! (R is not a structure but is empty). I am trying to use the following wsdl http://almdemo.polarion.com/polarion/ws/services/TrackerWebService?wsdl could you tell me what is wrong at that point, or how you knew that migt happen??
It would be a big help!
Thanks!
Chrys
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!