Hi,

 

I have a webservice which returns a complexType (ObjectResult).

 

Here is the definition of the complexType (ObjectResult).

 

<complexType name="ObjectResult">

    <sequence>

        <element name="createdBy" nillable="true" type="xsd:string" /> 

        <element name="createdDate" nillable="true" type="xsd:dateTime"
/> 

        <element name="lastModifiedBy" nillable="true" type="xsd:string"
/> 

        <element name="lastModifiedDate" nillable="true"
type="xsd:dateTime" /> 

        <element name="exceptionCode" nillable="true"
type="fns:ExceptionCode" /> 

        <element name="errorMessage" nillable="true" type="xsd:string"
/> 

        <element maxOccurs="unbounded" name="fields" nillable="true"
type="tns:Field" /> 

        <element name="objectType" nillable="true" type="tns:ObjectType"
/> 

        <any minOccurs="0" namespace="##targetNamespace"
processContents="lax" /> 

    </sequence>

</complexType>

 

The any element in the WSDL is converted to OMElement when we run
WSDL2Java.

 

Now, in the code when I create an OMElement object and set it to the
ObjectResult and return in the response, I'm getting the below exception

 

"java.lang.RuntimeException: Error obtaining parser from data source:the
prefix ==>  Already exists for namespace ==>"

 

It used to work before, but suddenly started getting this exception,
nothing has changed regarding the Axis2 libraries in my repository.

 

Please help me regarding this issue.

 

Thanks

Raghu

Reply via email to