tomi-vanek / wsdl-viewer

Tool to visualize web-service in an intuitive way.
Apache License 2.0
49 stars 19 forks source link

the xsl not follow the second imported xsd to analyse input message... #1

Open mcarbonneaux opened 1 year ago

mcarbonneaux commented 1 year ago

in this type of webservice soap, your xsl not follow (but detect the fact we have imported xsd) the imported xsd to print input/ouput message.

myxsd2.xsd:

...
<xsd:element name="oprequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="fieldname" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
...

mywsdl.wsdl:

...
<wsdl:types>
<xsd:schema>
<xsd:import namespace="myns" schemaLocation="myxsd1.xsd" />
<xsd:import namespace="myns" schemaLocation="myxsd2.xsd" />
</xsd:schema>
</wsdl:types>

<wsdl:message name="oprequest">
<wsdl:part element="tns:oprequest" name="oprequest" />
</wsdl:message>

<wsdl:operation name="myoperation">
<wsdl:input message="tns:oprequest" name="oprequest" />
</wsdl:operation>
...

they generate operation like that :

myoperation type oprequest

and at the end print the imported xsd:

Imported Schema myxsd2.xsd
tomi-vanek commented 1 year ago

Thanks for the report. Yes, the WSDL accepts only one import, all the others are ignored.

mcarbonneaux commented 1 year ago

how to add the hability to have more level of import ? beceause the majority of my wsdl have 2 level at minimum...