Skip to content

Unable to generate gSOAP proxies while building fesapi #29

@mpoudret

Description

@mpoudret

Hi,

Here is an issue regarding generation of gSOAP proxies while building fesapi.

Regards,
Mathieu

What are the steps to reproduce this issue?

  1. remove content of src/proxies (for setting CMake variable PROXIES_GENERATION to true)
  2. configure and generate with CMake
  3. build fesapi

What does happen?

Following error is raised during proxies generation : " Cannot open 'C:/Dev/fesapiEnv/buildHyperslabbingUncommitted/win64shared/src/C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' to retrieve schema"
Path looks crazy since current build directory is append to Common.xsd absolute path.

What were you expecting to happen?

Common.xsd is supposed to be opened properly thanks to line 7 of PropertyTypeMapping.xsd

Any other comments?

I tried to update line 63 of src/CMakeLists.txt (adding file:/// as prefix for output Common.xsd location) from
COMMAND cscript ${FESAPI_ROOT_DIR}/gsoap/sed.vbs "sRESQML_SCHEMA_LOCATION${RESQML_SCHEMA_LOCATION}g" < ${FESAPI_ROOT_DIR}/gsoap/PropertyTypeMapping.xsd > ${CMAKE_CURRENT_BINARY_DIR}/PropertyTypeMapping.xsd
to
COMMAND cscript ${FESAPI_ROOT_DIR}/gsoap/sed.vbs "s
RESQML_SCHEMA_LOCATION*file:///${RESQML_SCHEMA_LOCATION}*g" < ${FESAPI_ROOT_DIR}/gsoap/PropertyTypeMapping.xsd > ${CMAKE_CURRENT_BINARY_DIR}/PropertyTypeMapping.xsd

Then, I got the following error (by playing again steps to reproduce the issue):
Cannot open 'file:///C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' to retrieve schema
This issue seems weird since 'file:///C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' opens properly in an internet browser. This path is definitly correct.

Dev environment:

  • Windows 10 64bits
  • Visual Studio Community 2015
  • gSOAP 2.8.59

What versions of fesapi are you using?

Up to date on 01/03/2018.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions