<div dir="ltr">Hello David,<div><br></div><div>Yes, it should be possible to use yaws_soap_lib with a WSDL and an XSD, either by importing the XSD or by embedding it in the WSDL.</div><div><br></div><div>At first sight I would say that the definition of ClassA is valid and should be accepted by erlsom. </div><div><br></div><div>Can you give a bit more information about what you are doing? Perhaps send me the WSDL and XSD and the commands that you have been trying.</div><div><br></div><div>Regards,</div><div>Willem</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 7:56 PM, David García <span dir="ltr"><<a href="mailto:garcia.narbona@gmail.com" target="_blank">garcia.narbona@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>Would it be possible to combine WSDL along with XSD file when using yaws_soap_lib?</div><div>I have already tried importing XSD from WSDL, as well as copying the content of the XSD into the WSDL.</div><div>Apparently there's a problem with erlsom dealing with sequence definitions in the XSD file:</div><div><br></div><div><font face="monospace, monospace">   <element name="ClassA"></font></div><div><font face="monospace, monospace">        <complexType></font></div><div><font face="monospace, monospace">            <choice></font></div><div><font face="monospace, monospace">                  <element ref="MoMa" /></font></div><div><font face="monospace, monospace">                <sequence minOccurs="0" maxOccurs="unbounded"></font></div><div><font face="monospace, monospace">                    <element ref="Resp" /></font></div><div><font face="monospace, monospace">                </sequence></font></div><div><font face="monospace, monospace">                <element ref="ErrMsg" /></font></div><div><font face="monospace, monospace">            </choice></font></div><div><font face="monospace, monospace">        </complexType></font></div><div><font face="monospace, monospace">    </element></font></div><div><br></div><div><br></div><div>I get "<b>Group definition not found</b>" for the sequence elements, because it looks like erlsom uses a default prefix ("P:") for creating internal structure, but it does not use the prefix in the sequence erlsom internal structure, then it can not link it.</div><div><br></div><div>I have already tried compiling and adding the XSD model to the WSDL model using erlsom API methods, but I didn't succeed to get it working.</div><div><br></div><div>Any clue?</div><div><br></div><div>Thanks in advance.</div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>David</div>
</font></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>