Hi all. Explain a little more my error.

In the attach you can see the relation between the WSDL and the schemas to
import. I successfully import all this files to the Greg and I can see it
from the ESB but I can´t create a proxy service with this WSDL. The idea is
to buid a proxy service that expose this wsdl as you can see below 

This is the proxy service:
<proxy xmlns="http://ws.apache.org/ns/synapse"; name="PersonaProxy"
transports="https,http" statistics="disable" trace="disable"
startOnLoad="true">
   <target>
      <endpoint>
         <address uri="http://localhost:9763/wsas/services/Persona/";>
            <suspendOnFailure>
               <progressionFactor>1.0</progressionFactor>
            </suspendOnFailure>
            <markForSuspension>
               <retriesBeforeSuspension>0</retriesBeforeSuspension>
               <retryDelay>0</retryDelay>
            </markForSuspension>
         </address>
      </endpoint>
   </target>
   <publishWSDL
key="gov:/wsdls/http/cdae/uci/cu/servicios/wsdl/persona/PersonaWSDL.wsdl">
      <resource
location="../../../../../../../../schemas/http/cdae/uci/cu/servicios/schema/
persona/PersonaMensajes.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/persona/PersonaMensajes.
xsd" />
                                
      <resource
location="../../../../../../../../schemas/http/cdae/uci/cu/servicios/schema/
persona/tipos/persona/Persona.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/persona/Persona.xs
d" />                           
      <resource location="../tipos/persona/Persona.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/persona/Persona.xs
d" />                           
                                
      <resource
location="../../../../../../../../schemas/http/cdae/uci/cu/servicios/schema/
persona/tipos/excepcion/Excepcion.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/excepcion/Excepcio
n.xsd" />
      <resource location="../tipos/excepcion/Excepcion.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/excepcion/Excepcio
n.xsd" />
                                
                                
      <resource
location="../../../../../../../../schemas/http/cdae/uci/cu/servicios/schema/
persona/tipos/extranjero/Extranjero.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/extranjero/Extranj
ero.xsd"/>                              
      <resource location="../tipos/extranjero/Extranjero.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/extranjero/Extranj
ero.xsd"/>      

        <resource
location="../../../../../../../../schemas/http/cdae/uci/cu/servicios/schema/
persona/tipos/docsidentificativos/Docsidentificativos.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/docsidentificativo
s/Docsidentificativos.xsd"/>                            
      <resource
location="../tipos/docsidentificativos/DocsIdentificativos.xsd" 
        
key="gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/docsidentificativo
s/Docsidentificativos.xsd"/>                                            

   </publishWSDL>
</proxy>

The problem is that the Docidentificativos.xsd are not an OMElement. This
.xsd have four ComplexType inside.

My question is: what are the conditions for a schema  to be a OMElement?

Part of error:
Caused by: org.apache.axis2.AxisFault: Registry item Caused by:
org.apache.axis2.AxisFault: Registry item
'gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/docsidentificativos/Do
csidentificativos.xsd' for location
'../tipos/docsidentificativos/DocsIdentificativos.xsd' is not an OMElement
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL
11ToAxisServiceBuilder.java:399)
        at
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.jav
a:407)
        ... 14 more

Jorge.

De: carbon-dev-boun...@wso2.org [mailto:carbon-dev-boun...@wso2.org] En
nombre de Jorge Infante Osorio
Enviado el: lunes, 31 de enero de 2011 10:52
Para: carbon-dev@wso2.org
Asunto: [Carbon-dev] Error with a XSD OMElement

Hi all.

I import to the Greg a WSDL with 5 relative schemas successfully.
When I create a proxy service that use this wsdl I receive this error with
the last xsd: 

2011-01-31 10:37:43,417 [-] [Timer-2] ERROR ProxyServiceDeployer
ProxyService Deployment from the file :
/opt/wso2esb-3.0.1/repository/conf/synapse-config/proxy-services/PersonaProx
y.xml : Failed.
org.apache.synapse.SynapseException: Error building service from WSDL
        at
org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java
:704)
        at
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.jav
a:420)
        at
org.apache.synapse.deployers.ProxyServiceDeployer.deploySynapseArtifact(Prox
yServiceDeployer.java:63)
        at
org.wso2.carbon.proxyadmin.ProxyServiceDeployer.deploySynapseArtifact(ProxyS
erviceDeployer.java:37)
        at
org.apache.synapse.deployers.AbstractSynapseArtifactDeployer.deploy(Abstract
SynapseArtifactDeployer.java:147)
        at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy
mentFileData.java:136)
        at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:
810)
        at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav
a:144)
        at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav
a:390)
        at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe
ner.java:254)
        at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListe
ner.java:384)
        at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Schedule
rTask.java:64)
        at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:7
1)
        at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Sched
uler.java:90)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

Caused by: org.apache.axis2.AxisFault: Registry item Caused by:
org.apache.axis2.AxisFault: Registry item
'gov:/schemas/http/cdae/uci/cu/servicios/schema/tipos/docsidentificativos/Do
csidentificativos.xsd' for location
'../tipos/docsidentificativos/DocsIdentificativos.xsd' is not an OMElement
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL
11ToAxisServiceBuilder.java:399)
        at
org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.jav
a:407)
        ... 14 more

How I can validate that this xsd is an OMElement or not?

Jorge.

<<attachment: wsdl schema import.PNG>>

_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to