Open vithu30 opened 3 years ago
This issue is in progress
Debug notes: class name: SOAPOperationBindingUtils.java This issue can reproduce in API-M pack 3.2.0 also. Issue is raising at the point we generate swagger using getSoapOperationMappingForUrl method passing SOAP back-end url or passing wsdl archive extracted path or wsdl content directly to the getSoapOperationMapping method.
CheckPhoneNumbers:
type: object
properties:
PhoneNumbers:
$ref: '#/definitions/ArrayOfString'
LicenseKey:
type: string
ArrayOfString:
type: object
properties:
string:
type: array
items:
type: string
suggested solution: If the API definition is changed as below, then the issue will solve.
CheckPhoneNumbers:
type: object
properties:
PhoneNumbers:
type: array
items:
type: string
LicenseKey:
type: string
Since this is working correctly with other SOAP end-points we can reduce the priority.
Description:
When creating a REST API using SOAP back-end - [1], for
checkPhoneNumbers
resource, the payload is generated as follows (in tryout console in Devportal):When invoking the resource using above payload, the error response received as:
The correct response received if the payload is modified as shown below:
The correct response received:
Seems, there is an issue in the generated swagger.
[1] http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl