Hi all,

Found out the root-cause for the above-mentioned issue.
In AXIS2 web-services, service methods cannot send generic types.
Thus the service methods' return type needs to be the concrete class itself.

Here <https://github.com/wso2-extensions/identity-user-ws/pull/24/files> is
the PR which solves the

> org.apache.axis2.AxisFault: Mapping qname not fond for the package:
> org.wso2.carbon.user.core.claim


Regards,
Thilina.


On Mon, Sep 4, 2017 at 11:12 AM, Thilina Madumal <[email protected]>
wrote:

> Hi Devs,
>
> I'm trying to figure out a solution for IDENTITY-2861
> <https://wso2.org/jira/browse/IDENTITY-2861> which has been around from
> IAM-5.0.0 release.
>
> Here for the 'getClaim' in 'RemoteClaimManagerService' it gives an error
> saying,
>
>> org.apache.axis2.AxisFault: Mapping qname not fond for the package:
>> org.wso2.carbon.user.core.claim
>>
>
> One explanation I got for the above error is,
>
>> getClaim operation's signature declares the return type as
>> org.wso2.carbon.user.api.Claim. However this method returns a subclass
>> (org.wso2.carbon.user.core.claim.Claim) of this, which causes an error.
>
>
> Could someone tell me why does it give an Axis2Fault?
> AFAIU it shouldn't give an error as the returned one is a subclass. That
> is the Java way. We can assign a child class to its parent reference.
>
> Thanks & Regards,
> Thilina.
>
> --
> *Thilina Madumal*
> *Software Engineer | **WSO2*
> Email: [email protected]
> Mobile: *+ <+94%2077%20767%201807>94 774553167*
> Web:  <http://goog_716986954>http://wso2.com
>
> <http://wso2.com/signature>
>
>


-- 
*Thilina Madumal*
*Software Engineer | **WSO2*
Email: [email protected]
Mobile: *+ <+94%2077%20767%201807>94 774553167*
Web:  <http://goog_716986954>http://wso2.com

<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to