Hi Hasini,
According to the wsdl "ClaimMapping" complexType can have a single Claim
type.
<xs:complexType name="ClaimMapping">
<xs:complexContent>
<xs:extension base="ax23:ClaimMapping">
<xs:sequence>
<xs:element minOccurs="0" name="claim"
nillable="true"
type="ax23:Claim"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
When analyzing your response message, there are two Claim instance inside
the ClaimMapping element. Please check on that aspect and try limiting to a
single Claim instance and see whether it is working.
Sameera
On Mon, Jan 24, 2011 at 9:59 AM, Hasini Gunasinghe <[email protected]> wrote:
> Hi all,
>
> I have encountered the following error while accessing the getClaimMappings
> of ClaimManagementService, in trunk. (issue: CARBON-8446)
>
> ERROR {org.wso2.carbon.claim.mgt.ui.client.ClaimAdminClient} - Error while
> reading claim mappings
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement
> {http://api.user.carbon.wso2.org/xsd}claim<http://api.user.carbon.wso2.org/xsd%7Dclaim>
> .......
> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
> Unexpected subelement
> {http://api.user.carbon.wso2.org/xsd}claim<http://api.user.carbon.wso2.org/xsd%7Dclaim>
> at
> org.wso2.carbon.claim.mgt.ui.types.ClaimMapping$Factory.parse(ClaimMapping.java:437)
> at
> org.wso2.carbon.claim.mgt.ui.dto.ClaimMappingDTO$Factory.parse(ClaimMappingDTO.java:620)
> at
> org.wso2.carbon.claim.mgt.ui.types.axis2.GetClaimMappingsResponse$Factory.parse(GetClaimMappingsResponse.java:489)
> at
> org.wso2.carbon.claim.mgt.ui.ClaimManagementServiceStub.fromOM(ClaimManagementServiceStub.java:1847)
> ... 96 more
> Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
> {http://api.user.carbon.wso2.org/xsd}claim<http://api.user.carbon.wso2.org/xsd%7Dclaim>
> at
> org.wso2.carbon.claim.mgt.ui.types.ClaimMapping$Factory.parse(ClaimMapping.java:431)
>
> I have attached a complete error log here with.
>
> As I got to know, above type of axis2 data binding exceptions occur due to
> the mismatching between definitions in wsdl and the request/response.
>
> I tried updating the wsdl of the service in the ui component, but that did
> not make any difference.
> I have attached the wsdl also herewith.
>
> Before trying out a solution, I tried to capture the soap message received
> as the response with the purpose of identifying the exact cause of the above
> error, (this error was not present in the branch code.)
> I have attached the soap response herewith.
>
> I would highly appreciate any help in identifying the cause of the above
> error and any guidance on how to fix it.
>
> Thanks,
> Hasini.
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon
WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org
Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev