wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
845 stars 785 forks source link

[3.1.0][SOAP] NullPointerException When invoking an API that generated using a WSDL #7411

Open lathlk opened 4 years ago

lathlk commented 4 years ago

Description:

When invoking an API(without scopes) that generated using a WSDL, it ends up with a NullPointerException.

Steps to reproduce:

Affected Product Version:

3.1.0-m5 and above

Krishanx92 commented 4 years ago

Description:

When invoking an API(without scopes) that generated using a WSDL, it ends up with a NullPointerException. @lathlk Could you please explain "without scope" here? does that mean not binding any scope to resource?

Steps to reproduce:

  • Generate a REST API from a WSDL (Ex: http://ws.cdyne.com/phoneverify/phoneverify.asmx?WSDL ) from the API Publisher.
  • Create an application from the devportal and invoke the API. Ex: body: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <CheckPhoneNumber xmlns="http://ws.cdyne.com/PhoneVerify/query"> <PhoneNumber>string</PhoneNumber> <LicenseKey>string</LicenseKey> </CheckPhoneNumber> </soap:Body> </soap:Envelope> SOAPAction: "http://ws.cdyne.com/PhoneVerify/query/CheckPhoneNumber"

Affected Product Version:

3.1.0-m5 and above

lathlk commented 4 years ago

Hi @Krishanx92,

'Without scope' refers to a situation where we invoke an API resource which is not protected using a scope(with the default scope). Hope it's much clear now.