You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jara Cesnek (JIRA)" <ji...@apache.org> on 2010/02/04 10:38:27 UTC

[jira] Issue Comment Edited: (CXF-1787) Invalid WSDL name="ns1:id_stat"

    [ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829553#action_12829553 ] 

Jara Cesnek edited comment on CXF-1787 at 2/4/10 9:37 AM:
----------------------------------------------------------

I finally figure it out.

When have @WebParam on interface AND same @WebParam on implementation this happen:

{code}
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://mdo.lite.doc.modules.daisy.marbes.cz" xmlns:ns1="http://v1.ws.doc.daisy.marbes.cz" xmlns:tns="http://mdo.lite.doc.modules.daisy.marbes.cz" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://v1.ws.doc.daisy.marbes.cz" xmlns="http://www.w3.org/2001/XMLSchema" /> 
- <xsd:complexType name="pisemnost">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="ns1:cj" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:datum_doruceni" type="xsd:dateTime" /> 
  <xsd:element minOccurs="0" name="ns1:datum_zalozeni" type="xsd:dateTime" /> 
  <xsd:element minOccurs="0" name="ns1:evidencni_cislo" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:id_sps_pisemnost_v" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:id_sps_spis_v" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:nazev_pisemnost" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:odesilatel_castobce" nillable="true" type="xsd:string" /> 
{code}

Server code:
{code}
        JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
        serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor));
        serverFactoryBean.setServiceBean(implementor);
        serverFactoryBean.setDataBinding(new AegisDatabinding());
        serverFactoryBean.setAddress(url);
{code}


In cxf-2.1.9.jar error.
*In cxf-2.2.6.jar working!*

      was (Author: cesnek):
    I finally figure it out.

When have @WebParam on interface AND on same @WebParam on implementation this happen:

{code}
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://mdo.lite.doc.modules.daisy.marbes.cz" xmlns:ns1="http://v1.ws.doc.daisy.marbes.cz" xmlns:tns="http://mdo.lite.doc.modules.daisy.marbes.cz" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://v1.ws.doc.daisy.marbes.cz" xmlns="http://www.w3.org/2001/XMLSchema" /> 
- <xsd:complexType name="pisemnost">
- <xsd:sequence>
  <xsd:element minOccurs="0" name="ns1:cj" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:datum_doruceni" type="xsd:dateTime" /> 
  <xsd:element minOccurs="0" name="ns1:datum_zalozeni" type="xsd:dateTime" /> 
  <xsd:element minOccurs="0" name="ns1:evidencni_cislo" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:id_sps_pisemnost_v" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:id_sps_spis_v" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:nazev_pisemnost" nillable="true" type="xsd:string" /> 
  <xsd:element minOccurs="0" name="ns1:odesilatel_castobce" nillable="true" type="xsd:string" /> 
{code}

Server code:
{code}
        JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
        serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor));
        serverFactoryBean.setServiceBean(implementor);
        serverFactoryBean.setDataBinding(new AegisDatabinding());
        serverFactoryBean.setAddress(url);
{code}


In cxf-2.1.9.jar error.
*In cxf-2.2.6.jar working!*
  
> Invalid WSDL  name="ns1:id_stat"
> --------------------------------
>
>                 Key: CXF-1787
>                 URL: https://issues.apache.org/jira/browse/CXF-1787
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.2, 2.1.3
>            Reporter: Jara Cesnek
>             Fix For: Invalid
>
>
> CXF 2.1.2 Aegis Databinding, 
> Java :
> @WebService(name="wsrbadresa",serviceName="wsrbadresa",targetNamespace="http://rb.ws.daisy.marbes.cz")
> public class WSGetRBAdresa
>  @WebMethod
>  public List<Rb_stat> getStatList(@WebParam(name="inputObject") Rb_stat inputObject) {
>  ...
>  }
> }
> @XmlType(name="DOlrb_stat",namespace="http://rb.lite.ws.daisy.marbes.cz")
> public class Rb_stat extends DOlrb_stat {
> }
> Generate invalid WSDL:
> - <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.rb.modules.daisy.marbes.cz" xmlns:ns1="http://rb.lite.ws.daisy.marbes.cz" xmlns:tns="http://ws.rb.modules.daisy.marbes.cz" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <import namespace="http://rb.lite.ws.daisy.marbes.cz" xmlns="http://www.w3.org/2001/XMLSchema" /> 
> - <xsd:complexType name="inputObject">
> - <xsd:sequence>
>   <xsd:element minOccurs="0" name="ns1:id_stat" nillable="true" type="xsd:int" /> 
>   <xsd:element minOccurs="0" name="ns1:nazev_stat" nillable="true" type="xsd:string" /> 
>   </xsd:sequence>
>   </xsd:complexType>
>   </xsd:schema>
> - <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rb.lite.ws.daisy.marbes.cz" xmlns:tns="http://rb.lite.ws.daisy.marbes.cz" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> - <xsd:complexType name="DOlrb_stat">
> - <xsd:sequence>
>   <xsd:element minOccurs="0" name="id_stat" nillable="true" type="xsd:int" /> 
>   <xsd:element minOccurs="0" name="nazev_stat" nillable="true" type="xsd:string" /> 
>   </xsd:sequence>
>   </xsd:complexType>
> - <xsd:complexType name="ArrayOfDOlrb_stat">
> - <xsd:sequence>
>   <xsd:element maxOccurs="unbounded" minOccurs="0" name="DOlrb_stat" nillable="true" type="tns:DOlrb_stat" /> 
>   </xsd:sequence>
>   </xsd:complexType>
>   </xsd:schema>
> From my point of view  webservice class is in one namespace and parameter class Rb_stat is in another. Return is mix of both.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.