You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2006/01/31 17:26:41 UTC

Help with TypeMapping

Hello there! I'm using spring + axis in my application. I've extended the
org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean class in
order to register my Beans.
Well It was working for a simpler kind of bean, but for the WSDL bellow
I'm confused on how register it.

1st - I've noticed that both Assinante and AssinantePK have the same
namespace, is this ok? I mean, don't I need a unique namespace for each
object?
2nd - Where can I find an deep material about Serializers?
3rd - I've read the article  recommend at the Axis site about the WSDL
types  which one use, but that explains for the SOAP envelop only, where can
I find reference about differences for the type mappings?

If someone cares to give me a hand here I'd be grategfull.

Regards

 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="
http://impl.alterarplano.services.cplus.way.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <import namespace="http://assinante.persistence.model.cplus.way.com"/>
   <import namespace="http://pacote.persistence.model.cplus.way.com"/>
   <import namespace="http://cidade.persistence.model.cplus.way.com"/>
   <element name="alterarPlano">
    <complexType>
     <sequence>
      <element name="assinante" type="tns1:Assinante"/>
      <element name="novoPacote" type="tns3:Pacote"/>
     </sequence>
    </complexType>
   </element>
   <complexType name="ArrayOf_xsd_anyType">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item"
type="xsd:anyType"/>
    </sequence>
   </complexType>
   <element name="alterarPlanoResponse">
    <complexType/>
   </element>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="
http://cidade.persistence.model.cplus.way.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <import namespace="http://assinante.persistence.model.cplus.way.com"/>
   <import namespace="http://pacote.persistence.model.cplus.way.com"/>
   <import namespace="http://impl.alterarplano.services.cplus.way.com"/>
   <complexType name="Cidade">
    <sequence>
     <element name="id" nillable="true" type="xsd:int"/>
     <element name="nome" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="
http://assinante.persistence.model.cplus.way.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <import namespace="http://pacote.persistence.model.cplus.way.com"/>
   <import namespace="http://impl.alterarplano.services.cplus.way.com"/>
   <import namespace="http://cidade.persistence.model.cplus.way.com"/>
   <complexType name="AssinantePK">
    <sequence>
     <element name="codigoCidade" nillable="true" type="xsd:int"/>
     <element name="contrato" nillable="true" type="xsd:int"/>
    </sequence>
   </complexType>
   <complexType name="Assinante">
    <sequence>
     <element name="cidade" nillable="true" type="tns2:Cidade"/>
     <element name="id" nillable="true" type="tns1:AssinantePK"/>
     <element name="nome" nillable="true" type="xsd:string"/>
     <element name="produtos" nillable="true"
type="impl:ArrayOf_xsd_anyType"/>
    </sequence>
   </complexType>
  </schema>
  <schema elementFormDefault="qualified" targetNamespace="
http://pacote.persistence.model.cplus.way.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <import namespace="http://assinante.persistence.model.cplus.way.com"/>
   <import namespace="http://impl.alterarplano.services.cplus.way.com"/>
   <import namespace="http://cidade.persistence.model.cplus.way.com"/>
   <complexType name="PacotePK">
    <sequence>
     <element name="codigoCidade" nillable="true" type="xsd:int"/>
     <element name="codigoProgramacao" nillable="true" type="xsd:int"/>
    </sequence>
   </complexType>
   <complexType name="Pacote">
    <sequence>
     <element name="cidade" nillable="true" type="tns2:Cidade"/>
     <element name="codigoReceita" nillable="true" type="xsd:int"/>
     <element name="id" nillable="true" type="tns3:PacotePK"/>
     <element name="pacote" nillable="true" type="xsd:string"/>
     <element name="tipoPonto" nillable="true" type="xsd:string"/>
     <element name="valor" nillable="true" type="xsd:double"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>