web services - Wsdl webservice with matlab -
i'm trying use function "createclassfromwsdl" matlab , gives me error :
createclassfromwsdl('http://localhost/soapserver/server.php?wsdl') retrieving document @ 'http://localhost/soapserver/server.php?wsdl' struct contents reference non-struct array object. error in createclassfromwsdl>parsewsdl (line 74) se = deftypes.getextensibilityelements().get(0); error in createclassfromwsdl (line 34) [r, schema] = parsewsdl(wsdlurl);
i have download software called soapui works can't found wrong... here simple wsdl file :
<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:tns="http://localhost/soapserver" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/xmlschema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetnamespace="http://localhost/soapserver"> <wsdl:message name="printtxtsoapin"> <wsdl:part name="txt" type="s:string"/> </wsdl:message> <wsdl:message name="printtxtsoapout"> <wsdl:part name="return" type="s:string"/> </wsdl:message> <wsdl:porttype name="soapdemosoap"> <wsdl:operation name="printtxt"> <wsdl:input message="tns:printtxtsoapin"/> <wsdl:output message="tns:printtxtsoapout"/> </wsdl:operation> </wsdl:porttype> <wsdl:binding name="soapdemosoap" type="tns:soapdemosoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/> <wsdl:operation name="printtxt"> <soap:operation soapaction="http://localhost/soapserver/printtxt"/> <wsdl:input> <soap:body use="encoded" encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/soapserver" parts="txt"/> </wsdl:input> <wsdl:output> <soap:body use="encoded" encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/soapserver" parts="return"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="soapdemo"> <wsdl:port name="soapdemosoap" binding="tns:soapdemosoap"> <soap:address location="http://localhost/soapserver/server.php"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
Comments
Post a Comment