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 2008/09/08 16:56:44 UTC
[jira] Created: (CXF-1787) Invalid WSDL name="ns1:id_stat"
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
Reporter: Jara Cesnek
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(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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630989#action_12630989 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
The problem raise when :
1) method has result List<X> and paramater X
2) X has other namespace than service namespace (and parameter namespace)
then in wsdl is invalid tags values name="ns1:xxx
<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" />
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629424#action_12629424 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
When parameter and result type has different namespaces then WSDL get invalid (see above).
Result must be List<>.
Valid WSDL (same namespace) :
@WebMethod
public List<Rb_stat> getStatList(Rb_stat inputObject) {
...
}
or
@WebMethod
public List<Rb_stat> getStatList(@WebParam(name="inputObject", namespace="http://rb.lite.ws.daisy.marbes.cz") Rb_stat inputObject) {
...
}
Invalid WSDL (namespaces of param and result is different ) :
@WebMethod
public List<Rb_stat> getStatList(@WebParam(name="inputObject") Rb_stat inputObject) {
...
}
or
@WebMethod
public List<Rb_stat> getStatList(@WebParam(name="inputObject", namespace="anotherNamespace") Rb_stat inputObject) {
...
}
Threre is suprise for me - parameter without @WebParam has other namespace than @WebParam(name="xx").
Shouldnt be same default namepsace? Second bug ?
> 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
>
> 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.
[jira] Updated: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jara Cesnek updated CXF-1787:
-----------------------------
Comment: was deleted
> 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
> Reporter: Jara Cesnek
>
> 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(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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630986#action_12630986 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
I switch to JaxWs frontend.
Changed one line in configuration above :
JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
and rest of configuration left same.
The problem in WSDL remains :
- <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="DOlrb_stat">
- <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>
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629179#action_12629179 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
I have problem source.
//Wrong WSDL
@org.codehaus.xfire.aegis.type.java5.XmlType(name="DOlrb_stat",namespace="http://rb.lite.ws.daisy.marbes.cz")
public class Rb_stat extends DOlrb_stat {
}
//Right WSDL
@org.apache.cxf.aegis.type.java5.XmlType(name="DOlrb_stat",namespace="http://rb.lite.ws.daisy.marbes.cz")
public class Rb_stat extends DOlrb_stat {
}
> 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
> Reporter: Jara Cesnek
>
> 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(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.
[jira] Updated: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jara Cesnek updated CXF-1787:
-----------------------------
Description:
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.
was:
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(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.
Affects Version/s: 2.1.3
> 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
>
> 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.
[jira] Issue Comment Edited: (CXF-1787) Invalid WSDL
name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631056#action_12631056 ]
Daniel Kulp commented on CXF-1787:
----------------------------------
Yea, I'd definitely need to see a full tarball example for this. It's quite possibly a bug in XFire, not CXF. XFire is NOT JAX-WS/jsr181 compliant.
However, there also looks to be bugs in the Aegis stuff in CXF. In none of the examples above should there ever have been a complexType named "inputObject" created. Something like:
<complexType name="getStatList">
<sequence>
<element name="inputObject" type="ns:DOlrb_stat" minOccurs="0"/>
</sequence>
</complexType>
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629471#action_12629471 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
Frontend :
JaxWsServiceFactoryBean aegisServiceFactoryBean = new JaxWsServiceFactoryBean();
aegisServiceFactoryBean.setDataBinding(new AegisDatabinding());
aegisServiceFactoryBean.setServiceConfigurations(Arrays.asList(
new org.apache.cxf.jaxws.support.JaxWsServiceConfiguration(),
new org.apache.cxf.service.factory.DefaultServiceConfiguration()
));
ServerFactoryBean serverFactoryBean = new ServerFactoryBean();
serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor));
serverFactoryBean.setServiceBean(implementor);
serverFactoryBean.setAddress(url);
serverFactoryBean.setServiceFactory(aegisServiceFactoryBean);
...
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629447#action_12629447 ]
Benson Margulies commented on CXF-1787:
---------------------------------------
More info. Aegis+JAX-WS, or Aegis+Simple? I think you're going to have to attach a buildable test case.
Warning: the simple front end may not support all of those JAX-WS annotations.
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829553#action_12829553 ]
Jara Cesnek commented on CXF-1787:
----------------------------------
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.
[jira] Resolved: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved CXF-1787.
-----------------------------------
Resolution: Incomplete
No response in most of a year, no test case.
> 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
>
> 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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631006#action_12631006 ]
Benson Margulies commented on CXF-1787:
---------------------------------------
Could you possibly attach a tarball with enough code to repro this?
> 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
>
> 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.
[jira] Closed: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jara Cesnek closed CXF-1787.
----------------------------
Resolution: Won't Fix
> 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
> Reporter: Jara Cesnek
>
> 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(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.
[jira] Commented: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630801#action_12630801 ]
Benson Margulies commented on CXF-1787:
---------------------------------------
This is the simple front end. if you want to use @WebParam, you should be using the JaxWs Front end.
However, if you attach a full test case with source, I'll see if there's something to be done here.
> 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
>
> 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.
[jira] Reopened: (CXF-1787) Invalid WSDL name="ns1:id_stat"
Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jara Cesnek reopened CXF-1787:
------------------------------
Estimated Complexity: Advanced
Solution is completly wrong.
> 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
> Reporter: Jara Cesnek
>
> 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(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.