webMethods

 View Only
Expand all | Collapse all

Validate webservice specification content

  • 1.  Validate webservice specification content

    Posted Fri January 22, 2021 05:59 AM

    When I provide to the services, wm.server.swagger:generateUsingSwagger or wm.server.ws:wsdl2wsd,an invalid specification file, it creates new empty packages or failed merges with the package’s I had previously created.

    Having a string with the content of the JSON,YAML or WSDL web services, there is any way to check if they are valid?

    Like what is provided here.

    Thanks in advance.


    #webMethods
    #Web-Services


  • 2.  RE: Validate webservice specification content

    Posted Tue February 16, 2021 05:00 AM

    Hi Joao Marques,

           There are no services provided to explicitly check whether JSON or WSDL files are valid. However, most of the times, the services that use these JSON/ WSDL files (pub.json.jsonStringToDocument) or the ones you mentioned should flag an error if the inputs are syntactically incorrect. We could discuss why the specific WSDL is not flagged as error if you provide the WSDL in question. 
    

    Thank you,
    Arpitha


    #webMethods
    #Web-Services