On Mon, Jan 24, 2011 at 6:15 PM, Hasini Gunasinghe <[email protected]> wrote:
> Hi, > > On Mon, Jan 24, 2011 at 10:30 AM, Sameera Jayasoma <[email protected]>wrote: > >> 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. >> > > Thanks a lot for the reply. Yes, that was the issue. But when I did debug > and see, the returning ClaimMapping object contains only one claim object > inside, where as in the soap response representation, there are two claim > elements inside a ClaimMapping element with two namespaces as: > xmlns:ax21=" > http://claim.core.user.carbon.wso2.org/xsd" > xmlns:ax22="http://api.user.carbon.wso2.org/xsd" > I think that is because ClaimMapping and Claim classes now extends the > classes in user-api also. > > I will discuss more about this with Amila S and will update the thread when > a solution is found. > This problem seems to be in the POJO side. But on the other hand I am not sure whether it is correct to have a ClamMapping[] inside the ClaimMappingDTO. Lets see this issue tomorrow morning. thanks, Amila. > > Thanks, > Hasini. > > Thanks, > Hasini. > > >> 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 >> >> > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
