issues accessing web services in matlab using createClassFromWsdl
이전 댓글 표시
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개)
Walter Roberson
2011년 11월 2일
1 개 추천
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
James Chan
2011년 11월 3일
Walter Roberson
2011년 11월 3일
In the first situation, you have shown the value of the extension variable, but could you show us class(extension) ?
Armand Chrystel Moutchiho
2013년 2월 18일
편집: Armand Chrystel Moutchiho
2013년 2월 18일
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
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!