Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add test for accepting array as parameter based on wsdl #933

Merged
merged 1 commit into from
May 29, 2017

Conversation

pihvi
Copy link
Contributor

@pihvi pihvi commented May 29, 2017

v. 0.19.0 broke giving array as a parameter. It would now accept the "array"
with invalid syntax like this: {input: {PeriodList: {"PeriodType[]": {PeriodId: '1'}}}}
i.e. it wants the "[]" as the parameter name and it does not accept an array, but an
object. The invalid syntax then prints invalid XML like this:
"<PeriodType[]>1</PeriodType[]>"

This test shows old and correct syntax.

This test passes if you revert commit 5dbcb1d
or disable if statement mentioned in
#914 (review)

v. 0.19.0 broke giving array as a parameter. It would now accept the "array"
with invalid syntax like this: {input: {PeriodList: {"PeriodType[]": {PeriodId: '1'}}}}
i.e. it wants the "[]" as the parameter name and it does not accept an array, but an
object. The invalid syntax then prints invalid XML like this:
"<PeriodList><PeriodType[]><PeriodId>1</PeriodId></PeriodType[]></PeriodList>"

This test shows old and correct syntax.

This test passes if you revert commit 5dbcb1d
or disable if statement mentioned in
vpulim#914 (review)
@coveralls
Copy link

coveralls commented May 29, 2017

Coverage Status

Coverage increased (+0.1%) to 93.191% when pulling 0e580aa on pihvi:master into 358c611 on vpulim:master.

@herom herom merged commit 94a8b54 into vpulim:master May 29, 2017
herom added a commit to herom/node-soap that referenced this pull request May 29, 2017
herom added a commit to herom/node-soap that referenced this pull request May 29, 2017
herom added a commit to herom/node-soap that referenced this pull request May 29, 2017
@herom herom mentioned this pull request May 31, 2017
jcald1 pushed a commit to jcald1/node-soap that referenced this pull request Jun 8, 2017
v. 0.19.0 broke giving array as a parameter. It would now accept the "array"
with invalid syntax like this: {input: {PeriodList: {"PeriodType[]": {PeriodId: '1'}}}}
i.e. it wants the "[]" as the parameter name and it does not accept an array, but an
object. The invalid syntax then prints invalid XML like this:
"<PeriodList><PeriodType[]><PeriodId>1</PeriodId></PeriodType[]></PeriodList>"

This test shows old and correct syntax.

This test passes if you revert commit 5dbcb1d
or disable if statement mentioned in
vpulim#914 (review)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants