On Mon, Jan 24, 2011 at 9:03 PM, Prabath Siriwardana <[email protected]>wrote:

> >
> > 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.
>
> ClaimMappingDTO is a container [or DTO] for a set of claim mappings +
> dialect url. So the structure is correct..
>
> I would rather rename ClaimMappingDTO to ClaimDialectDTO...
>
+1.

This problem has caused by having some extensions to keep the backward
compatibility. POJO generates a wrong wsdl because of that.

Here is the solution. we write a new object structure that only Admin
service users. It has following DTOs

ClaimDilectDTO
     ClaimMappingDTO[]
              ClaimDTO
              mappingAttribute

this should generate the proper wsdl.

thanks,
Amila.




>
> Thanks & regards,
> -Prabath
>
>
> >
> > 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
> >
> >
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
> _______________________________________________
> 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

Reply via email to