[erlang-questions] How combine WSDL along with XSD using erlsom + yaws_soap_lib

Willem de Jong w.a.de.jong@REDACTED
Thu Sep 10 08:04:38 CEST 2015

Hello David,

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.

At first sight I would say that the definition of ClassA is valid and
should be accepted by erlsom.

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.


On Wed, Sep 9, 2015 at 7:56 PM, David García <garcia.narbona@REDACTED>

> Would it be possible to combine WSDL along with XSD file when using
> yaws_soap_lib?
> I have already tried importing XSD from WSDL, as well as copying the
> content of the XSD into the WSDL.
> Apparently there's a problem with erlsom dealing with sequence definitions
> in the XSD file:
>    <element name="ClassA">
>         <complexType>
>             <choice>
>                   <element ref="MoMa" />
>                 <sequence minOccurs="0" maxOccurs="unbounded">
>                     <element ref="Resp" />
>                 </sequence>
>                 <element ref="ErrMsg" />
>             </choice>
>         </complexType>
>     </element>
> I get "*Group definition not found*" 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.
> 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.
> Any clue?
> Thanks in advance.
> --
> David
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150910/9861e824/attachment.htm>

More information about the erlang-questions mailing list