After conversion getting error at execution step
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
}
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:
Hi @ardatan @gilgardosh - any update on this?
It is now part of our roadmap. We'll tackle the issue soon. But in the meanwhile, PRs and any more contributions are welcome!
Hi @ardatan, May I know this issue resolve now from your side or still inprogress?
It seems it has been merged and released. Closing the issue. Let us know if it still persists. Thanks for the collaboration 🙏