IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Can we crease IS Document using JSON Schema?

  • 1.  Can we crease IS Document using JSON Schema?

    Posted 09/25/14 09:11 AM

    We can create an IS document using JSON message.
    Can we create IS Document using JSON Schema? (like we can create IS document using XML schema).
    Is this supported in wM 9.6 ?


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 09:21 AM

    Yes, Create an IS document type from a source file, such as an XML Schema, DTD, XML
    document, JSON object, or e-form template. wM 9.6 support this.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 09:30 AM

    Thats what the documentation states. JSON object - does this imply JSON message or JSON Schema ?


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 09:37 AM

    Do you have a sample JSON?

    Share it…


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 10:31 AM

    Please find attached sample.
    JSON.zip (609 Bytes)


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 11:22 AM

    You should be using JSON Shcema for converting to DocType and message is for sampling data.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 04:27 PM

    I think designer takes json document, not schema in order to create a Document definition.
    Did you try to load your file? the samplemessage.json file works fine for me.


    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 05:27 PM

    @ Tong,

    I guess you have tried it on wM 8.2 designer

    @ Kalyan,

    You can create document type using both the samples that you have attached in this thread on wM96.


    #Integration-Server-and-ESB
    #webMethods


  • 9.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/25/14 05:39 PM

    Explore pub.json folder under WmPublic


    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/26/14 08:41 AM

    We can create with both but they are not the same. The one created with JSON message is the correct structure.
    The one created using the schema does not look to be a valid structure ??


    #webMethods
    #Integration-Server-and-ESB


  • 11.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/26/14 12:20 PM

    If the message struncture works and did you try to contact/confirm with the source owner of the files and question the differrence?

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/26/14 12:29 PM

    JSON schema itself is also a JSON object.
    WM won’t treat it as schema, I will treat it as a JSON document. If you do load it, the result is a structure of schema file, obviously not useful for processing the real JSON object.


    #webMethods
    #Integration-Server-and-ESB


  • 13.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/26/14 01:11 PM

    I don’t agree with your statement. :slight_smile:

    It is just importing your xml file or the XSD. In your attached sample I see both sample JSON file with data and JSON schema.


    #webMethods
    #Integration-Server-and-ESB


  • 14.  RE: Can we crease IS Document using JSON Schema?

    Posted 09/27/14 06:05 AM

    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: Can we crease IS Document using JSON Schema?

    Posted 07/27/16 11:19 AM

    Guys,

    Any update on this thread. I’m creating IS doc from JSON schema by naming it as .json file, however the structure created is not inline with what is intended.

    webMethods is able to create the IS Doc from JSON schema file, however that’s not able to capture field level definitions like, Arrays and date Fields etc are coming up as just strings.

    Please post if you have any updates.

    Thanks
    SS


    #Integration-Server-and-ESB
    #webMethods


  • 16.  RE: Can we crease IS Document using JSON Schema?

    Posted 07/27/16 02:38 PM

    Kindly share your IS details with fix details. Also attach the .json file.


    #Integration-Server-and-ESB
    #webMethods


  • 17.  RE: Can we crease IS Document using JSON Schema?

    Posted 11/15/16 07:44 AM

    Hi Siva,

    Did you find any resolution for this? I am also facing similar kind of issue. Please, help me out if you find any solution.

    Thanks in advance.
    Deepika


    #Integration-Server-and-ESB
    #webMethods


  • 18.  RE: Can we crease IS Document using JSON Schema?

    Posted 11/15/16 11:45 AM

    Attach your sample json file or schema with a more information on the issue you are facing.


    #webMethods
    #Integration-Server-and-ESB


  • 19.  RE: Can we crease IS Document using JSON Schema?

    Posted 11/15/16 01:07 PM

    Hi Deepika,

    I went with an alternative approach. Got the JSON Schema converted into an XSD and used it.

    I still, doubt the fixes or any extended settings at server level for it, not to work with JSON Schema.

    Thanks
    SS


    #Integration-Server-and-ESB
    #webMethods


  • 20.  RE: Can we crease IS Document using JSON Schema?

    Posted 05/02/18 07:43 AM

    Any update on this?
    Seems like File>New>Document Type creates document from JSON Objects not JSON schemas


    #Integration-Server-and-ESB
    #webMethods


  • 21.  RE: Can we crease IS Document using JSON Schema?

    Posted 05/27/19 08:08 AM

    Creating a JSON doc type using JSON schema is now supported from 10.4 and the same can be validated by pub.json.schema:validate


    #Integration-Server-and-ESB
    #webMethods