klacke/yaws — Issue #65: Can not parse WSDL file with yaws_soap_lib
Author: gregorej
Created: 2011-10-20 15:35:46+00:00
State: open

I've been trying to use YAWS' SOAP lib (old version, can't remember which one) to parse a WSDL file and invoke service operation. However, I could not parse the WSDL property. The WSDL itself is valid (tested on multiple on-line validators). Probably the problem was an empty tag in the WSDL file. Details are here: http://stackoverflow.com/questions/5404926/wsdl-empty-types-tag-and-yaws-soap-support

Right now I am trying to do the same with 1.9.1 version and erlsom 1.2.1. Unfortunately I had no luck. It appears to me that yaws is trying to include files that are not existent (such as soap.xsd, wsdl.xsl) and erlsom can't handle that. The commands I am invoking:

```
inets:start(),
yaws_soap_lib:initModel(WSDL_FILE_URL)
```

the error:

```
** exception error: no match of right hand side value {error,"Include file not found XSD_INDLUDED_IN_WSDL_URL"}
in function yaws_soap_lib:addSchemas/5
in call from yaws_soap_lib:parseWsdls/5
in call from yaws_soap_lib:initModel2/5
```

Both urls are available through HTTP