Hi all,

I am integrating a 3rd party webservice over which I have no control. I
used wdsl2java to create my client and I can connect to the service
fine. However there is one method that returns a soap env that is not
valid against the wdsl I created the client against.

I have asked to generate the wdsl again because I had the suspicion that
it just not up to date, but they have send me the file unchanged in the
interesting aspect. I am not sure how this can happen nor how to fix it.
Did somebody had seen similar issues and know a way to fix it? Any
feedback is very welcome.

The method is called buscarRecursoTuristicoALPorNumRegistro and the
returning document looks like the following. The exception I get is

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement sujetoActa

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Body>
    <ns:buscarRecursoTuristicoALPorNumRegistroResponse
      xmlns:ns="http://org.cie.greturex.ws.servicios";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
      <ns:buscarRecursoTuristicoALPorNumRegistroReturn
        xsi:type="ns:ExpedienteRegistroDetalleALWsVO">
        <ns:cifNif>x897680P</ns:cifNif>
        <ns:codPostal>99999</ns:codPostal>
        <ns:direccionWeb/>
        <ns:domicilio>C/ Cxxx, 40</ns:domicilio>
        <ns:email>x...@wanadoo.es</ns:email>
        <ns:estado>Alta</ns:estado>
        <ns:fax/>
        <ns:id>73072</ns:id>
        <ns:idMunicipio>65935</ns:idMunicipio>
        <ns:idProvincia>65881</ns:idProvincia>
        <ns:idTipoRecurso>6</ns:idTipoRecurso>
        <ns:municipio>BA&#xD1;OS DE MONTEMAYOR</ns:municipio>
        <ns:nombreComercial>xxxxxx</ns:nombreComercial>
        <ns:numIdentificacion/>
        <ns:numeroRegistro>xxxxx</ns:numeroRegistro>
        <ns:provincia>C&#xE1;ceres</ns:provincia>
        <ns:sujetoActa xsi:type="ns:SujetoActaVO">
          <ns:id>73072</ns:id>
        </ns:sujetoActa>
        <ns:sujetoCaracteristicas
xsi:type="ns:SujetoCaracteristicasALVO">
          <!--- ... -->
        </ns:sujetoCaracteristicas>
        <ns:telefono>923020328</ns:telefono>
      </ns:buscarRecursoTuristicoALPorNumRegistroReturn>
    </ns:buscarRecursoTuristicoALPorNumRegistroResponse>
  </soapenv:Body>
</soapenv:Envelope>

In the wdsl schema I can find:
<xsd:element name="buscarRecursoTuristicoALPorNumRegistroResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="buscarRecursoTuristicoALPorNumRegistroReturn"
type="impl:ExpedienteRegistroDetalleALWsVO"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
...
<xsd:complexType name="ExpedienteRegistroDetalleALWsVO">
<xsd:all>
<xsd:element name="id" type="long">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="numeroRegistro" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="estado" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="numIdentificacion" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="nombreComercial" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cifNif" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="idProvincia" type="long">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="provincia" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="idMunicipio" type="long">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="municipio" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="idTipoRecurso" type="long">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="tipoRecurso" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="domicilio" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="codPostal" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="telefono" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="fax" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="email" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="direccionWeb" type="string">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="sujetoCaracteristicas"
type="impl:SujetoCaracteristicasALVO">
<xsd:annotation>
<xsd:documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:all>
</xsd:complexType>

-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to