Originally posted by: Vino685
Hi ,
I am trying a POC with JSON format using the Open API importer - I tried generate a sample map for calling webservices using the REST API.
Steps followed:
1) File --> Import --> OpenAPI
2) Provide the swagger.json file
3) select an operation to generate a type tree and adapter command line properties --> "Post" option
4) select "Use IBM transformation Extender map to call REST api" --> Next
5) select "Generate sample source" --> Next
6) Encounter below type tree importer - Error .
"
java.lang.NullPointerException
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.getQueryString(Unknown Source)
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.generateOperation(Unknown Source)
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.generateOperations(Unknown Source)
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.generatePath(Unknown Source)
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.generateContent(Unknown Source)
at com.ibm.itx.ui.importers.swagger2tt.AdapterCommandLineWriter.write(Unknown Source)
at com.ibm.itx.ui.importers.swagger.SwaggerImporter.generateTree(Unknown Source)
at com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard.buildTypeTree(Unknown Source)
at com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard$2.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)"
I am unable to generate the sample map due to type tree importer issue. But I am able to generate the type tree using the JSON importer with the same JSON file.
Can someone help me on this issue and provide any steps you used for webservice call using JSON.
Thanks !
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange