node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Add support for the group element

Open rjordakiev opened this issue 3 months ago • 5 comments

Working on a change that allows respecting the order imposed by xs:sequence in schema, which is an existing issue (#1267).

Respecting the xs:group element is also of importance since there are specific cases when the sequence appears as a child of the group.

rjordakiev avatar Sep 10 '25 07:09 rjordakiev

Is there any intrinsic reason that the group element is commented out and parsed as UnexpectedElement that I may be messing or it simply is obsolete for the current implementation?

rjordakiev avatar Sep 10 '25 07:09 rjordakiev

Could you please add some tests for this? it would help to understand the changes and lock down the implementation. Thanks.

w666 avatar Sep 10 '25 10:09 w666

Is there any intrinsic reason that the group element is commented out and parsed as UnexpectedElement that I may be messing or it simply is obsolete for the current implementation?

IMO, it's history the OG devs would know. Whatever was the reason, we don't need to dwell on it, and push the project forward, so thank you for your contribution.

I see in your fork you also did commit an implementation of the sequence ordering; that other branch has tests. Do they cover this group element as well? if so, then why not include it into the PR as well? It seems from your implementation group element is required to enable proper sequence ordering anyway.

smokhov avatar Sep 11 '25 00:09 smokhov

@rjordakiev

If you can't add a test for this change, I can do this, but I need example WSDL and ideally expected request response. Thanks.

w666 avatar Oct 24 '25 20:10 w666

@rjordakiev

If you can't add a test for this change, I can do this, but I need example WSDL and ideally expected request response. Thanks.

They have a some test WSDL and a test for the squence ordering in their other branch, maybe can use that?

  • https://github.com/rjordakiev/node-soap/commit/c346fa20f3fd3684dc74632427ceddf30cfe6960

smokhov avatar Oct 26 '25 03:10 smokhov