<div dir="ltr">Hi Wille,<div><br></div><div><div style="font-size:12.8000001907349px">I attach you the WSDL (test.wsdl) I am using. I have tried three ways of using this WSDL:</div><div style="font-size:12.8000001907349px"><ul><li style="margin-left:15px">first one this same one I am sending you </li><li style="margin-left:15px">second one adding the import of the XSD file:</li><ul><li style="margin-left:15px"><font face="monospace, monospace" size="1"><wsdl:types></font></li><li style="margin-left:15px"><font face="monospace, monospace" size="1"> <xsd:schema targetNamespace="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>"></font></li><li style="margin-left:15px"><font face="monospace, monospace" size="1"> <xsd:import namespace="<a href="http://www.w3.org/namespace/" target="_blank">http://www.w3.org/namespace/</a>" schemaLocation="../wsdl/redsys/consultas/redsys_types.xsd"/></font></li><li style="margin-left:15px"><font face="monospace, monospace" size="1"> </xsd:schema></font></li><li style="margin-left:15px"><font face="monospace, monospace" size="1"> </wsdl:types></font></li></ul><li style="margin-left:15px">third one, copying all the XSD content into the WSDL file</li></ul><div><div><br></div><div>I am using yaws_soap_lib.erl for doing so, along with erlsom library.I call the method:</div><div><br></div><div><font face="monospace, monospace" size="1">yaws_soap_lib:initModel("WHOLE_PATH_TO_test.wsdl").</font></div></div><div><br></div><div>I get the message:</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div><font face="monospace, monospace" size="1"> exited: {{shutdown,</font></div><div><font face="monospace, monospace" size="1"> {failed_to_start_child,redsys_wsdl_connector,</font></div><div><font face="monospace, monospace" size="1"> {{badmatch,</font></div><div><font face="monospace, monospace" size="1"> {error,"Group definition not found Response/SEQ1"}},</font></div><div><font face="monospace, monospace" size="1"> [{yaws_soap_lib,addSchemas,4,</font></div><div><font face="monospace, monospace" size="1"> [{file,"src/lib/yaws_soap_lib.erl"},{line,394}]},</font></div><div><font face="monospace, monospace" size="1"> {yaws_soap_lib,parseWsdls,4,</font></div><div><font face="monospace, monospace" size="1"> [{file,"src/lib/yaws_soap_lib.erl"},{line,359}]},</font></div><div><font face="monospace, monospace" size="1"> {yaws_soap_lib,initModel2,5,</font></div><div><font face="monospace, monospace" size="1"> [{file,"src/lib/yaws_soap_lib.erl"},{line,331}]},</font></div><div><font face="monospace, monospace" size="1"> {redsys_wsdl_connector,init,1,</font></div><div><font face="monospace, monospace" size="1"> [{file,"src/redsys/redsys_wsdl_connector.erl"},</font></div><div><font face="monospace, monospace" size="1"> {line,29}]},</font></div><div><font face="monospace, monospace" size="1"> {gen_server,init_it,6,</font></div><div><font face="monospace, monospace" size="1"> [{file,"gen_server.erl"},{line,304}]},</font></div><div><font face="monospace, monospace" size="1"> {proc_lib,init_p_do_apply,3,</font></div><div><font face="monospace, monospace" size="1"> [{file,"proc_lib.erl"},{line,239}]}]}}},</font></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I also have been trying creating a config file to get headers for compiling WSDL. I also attach the config file I have prepared, but still can't getting working.</div><div style="font-size:12.8000001907349px"><font face="monospace, monospace" size="1"><br></font></div><div style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">I also attach a WSDL that is working for me with the same source code (the only difference is that XSD definition is embeded in the WSDL -- as in the third option I have tried with the non working example -- ). This XSD definition does not have sequences defined, then I don't have the problem I have with the non working WSDL.</font></div></div><div style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Regards,</font></div><div style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-10 8:04 GMT+02:00 Willem de Jong <span dir="ltr"><<a href="mailto:w.a.de.jong@gmail.com" target="_blank">w.a.de.jong@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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><font color="#888888"><div><br></div>-- <br><div>David</div>
</font></span></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">David</div>
</div>