graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

After conversion getting error at execution step

Open PractiseGraphql opened this issue 1 year ago • 3 comments

Hello!

I am using mesh for the conversion of soap WSDL to graphql. Able to convert in graphql by using the alpha version mentioned here - https://github.com/ardatan/graphql-mesh/pull/6992.

But , while executing its giving XML parser issue

{
  "errors": [
    {
      "message": "char '{' is not expected.:1:1",
      "path": [
        "impl_TestService_TestService_createTest"
      ],
      "extensions": {
        "originalError": {
          "name": "Error",
          "message": "char '{' is not expected.:1:1",
          "stack": "Error: char '{' is not expected.:1:1\n    at XMLParser.parse (C:\\WORKSPACES\\fnosoap2graphql\\node_modules\\fast-xml-parser\\src\\xmlparser\\XMLParser.js:30:21)\n    at rootValueMethod (C:\\WORKSPACES\\fnosoap2graphql\\node_modules\\@graphql-mesh\\transport-soap\\cjs\\executor.js:93:49)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async C:\\WORKSPACES\\fnosoap2graphql\\node_modules\\@envelop\\core\\cjs\\orchestrator.js:386:27\n    at async YogaServer.getResultForParams (C:\\WORKSPACES\\fnosoap2graphql\\node_modules\\graphql-yoga\\cjs\\server.js:282:26)\n    at async handle (C:\\WORKSPACES\\fnosoap2graphql\\node_modules\\graphql-yoga\\cjs\\server.js:352:25)"
        }
      }
    }
  ],
  "data": {
    "impl_TestService_TestService_createTest": null
  }
image_1v443kw image_mjtael

This is the Mutation:

mutation MyMutation {
impl_TestService_TestService_createTest(
createTestRequest:
{name: "abc", intCount: 10}
) {
name
intCount
}
}

I'm using this versions of packages:

{
  "name": "graphql.wtf-graphql-mesh",
  "private": true,
  "scripts": {
    "dev": "mesh dev"
  },
  "dependencies": {
    "@graphql-mesh/cli": "0.90.6-alpha-20240520163906-22084319331489650ea4a0ec777232715504727e",
    "@graphql-mesh/graphql": "0.98.2",
    "@graphql-mesh/runtime": "0.99.2",
    "@graphql-mesh/soap": "0.99.0-alpha-20240520163906-22084319331489650ea4a0ec777232715504727e",
    "@graphql-mesh/transform-extend": "0.98.5-alpha-20240520163906-22084319331489650ea4a0ec777232715504727e",
    "@omnigraph/soap": "0.99.0-alpha-20240520163906-22084319331489650ea4a0ec777232715504727e",
	"@graphql-mesh/plugin-response-cache": "0.98.5-alpha-20240520163906-22084319331489650ea4a0ec777232715504727e",
    "graphql": "16.8.1"
  }
}

and this is a part of my meshrc.yaml file:

sources:
  - name: TestService
    handler:
      soap:
        source: https://flexera1000-ci.flexnetoperations.com/flexnet/services/TestService?wsdl

Execution of same wsdl request through soap UI giving proper response: image_ic04rv

PractiseGraphql avatar May 23 '24 06:05 PractiseGraphql

Hi @ardatan @gilgardosh - any update on this?

PractiseGraphql avatar May 27 '24 04:05 PractiseGraphql

It is now part of our roadmap. We'll tackle the issue soon. But in the meanwhile, PRs and any more contributions are welcome!

ardatan avatar May 27 '24 08:05 ardatan

Hi @ardatan, May I know this issue resolve now from your side or still inprogress?

PractiseGraphql avatar Jun 03 '24 08:06 PractiseGraphql

It seems it has been merged and released. Closing the issue. Let us know if it still persists. Thanks for the collaboration 🙏

ardatan avatar Nov 06 '24 13:11 ardatan