Announcement Announcement Module
No announcement yet.
getting error while typecasting SimpleType to SympleanyType Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting error while typecasting SimpleType to SympleanyType

    I am using a wsa.xsd file in which I have given definition like ..bellow

    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd=(blocked

    targetNamespace" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="To" />
    <xsd:element name="From" type="wsa:From"/>
    <xsd:element name="ReplyTo" type="wsa:ReplyTo"/>
    <xsd:element name="FaultTo" type="wsa:FaultTo"/>
    <xsd:element name="MessageID" type="xsd:simpleType"/>
    <xsd:element name="Action" type="xsd:simpleType"/>

    <xsd:simpleType name='To'>
    <xsd:restriction base="xsd:string" />

    <xsd:simpleType name="Action">
    <xsd:restriction base="xsd:string" />
    <xsd:simpleType name="MessageID">
    <xsd:restriction base="xsd:string"/>

    <xsd:complexType name="From">
    <xsd:element minOccurs="0" name="Address" type="xsd:string" />

    <xsd:complexType name="ReplyTo">
    <xsd:element minOccurs="0" name="Address" type="xsd:string" />

    <xsd:complexType name="FaultTo">
    <xsd:element minOccurs="0" name="Address" type="xsd:string" />


    this xsd file are being used in a wsdl and implemented on on ESB the simple type elemens are being typecasted to SimplAnyType in java I am getting error like anyType can not be typecasted to simple any type...Now my question is how I define the wsa simpleType fields so that it can be typecasted..

    error is as....

    java.lang.ClassCastException: pl incompatible with org.eclipse.emf.ecore.sdo.EDataObjectSimpleAnyType
    at com.nasco.header.HandleHeader.processSOAPHeaders(H
    at com.nasco.header.ProcessHeader.processHeader(Proce
    at diate(
    at ate(
    at nPrimitive.performInvocation(JavaMediationPrimitiv
    at nPrimitive.invoke(
    at mitive.invokeConnections( 03)
    at (
    at invokeFlow(
    at w.invokeRequestFlow(
    at wBean.invokeRequestFlow( )
    at elessBXBenifitsMediationFlowExt_1dd9da15.invokeReq uestFlow(Unknown Source)
    at diationFlowComponentImpl.invokeRequestFlow(EJBMedi
    at tionHandler.processMessage(MFCImplementationHandle
    at cherImpl.processMessageWithPCI(MessageDispatcherIm

    Please anybody suggest......]