cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Schmid (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1723) wsdl2java generates errorneous code
Date Fri, 25 Jul 2008 13:33:32 GMT

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

Markus Schmid commented on CXF-1723:
------------------------------------

"This is an invalid wsdl." ... might be, i'm not in soap/wsdl spec in detail ... but seems
as if there is enough place in <detail></detail> element according to soap11.xsd:

  <xs:complexType name="Fault" final="extension">
    <xs:annotation>
	  <xs:documentation>
	    Fault reporting structure
	  </xs:documentation>
	</xs:annotation>
    <xs:sequence>
      <xs:element name="faultcode" type="xs:QName"/>
      <xs:element name="faultstring" type="xs:string"/>
      <xs:element name="faultactor" type="xs:anyURI" minOccurs="0"/>
      <xs:element name="detail" type="tns:detail" minOccurs="0"/>      
    </xs:sequence>
  </xs:complexType>

> wsdl2java generates errorneous code
> -----------------------------------
>
>                 Key: CXF-1723
>                 URL: https://issues.apache.org/jira/browse/CXF-1723
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.1
>         Environment: Windows XP 5.1, java 1.5.0_12
>            Reporter: Markus Schmid
>
> Code generation from "test.wsdl" results in errorneous java code "DeliverFaultMessage.java"
(without exceptions/error/warnings of wsdl2java).
> ---- test.wsdl ---- START
> <wsdl:definitions name="test"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
>     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
>     xmlns:types="http://www.abc.com/mb/schema" 
>     xmlns:tns="http://www.abc.com/mb"
>     xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
>     xmlns:xmime="http://www.w3.org/2005/05/xmlmime" 
>     xmlns:SCXSD="http://www.abc.com/mb/schema.ws"
>     targetNamespace="http://www.abc.com/mb">
> 	<wsdl:types>
> 		<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
targetNamespace="http://www.abc.com/mb/schema" elementFormDefault="qualified">
> 			<xsd:element name="data" type="xsd:string"/>
> 			<xsd:element name="comment" type="xsd:string"/>
>         </schema>
>     </wsdl:types>
>     <wsdl:message name="DeliverRequestMessage">
>     	<wsdl:part name="header" element="types:data"/>
>     	<wsdl:part name="body" element="types:data"/>
>     </wsdl:message>
>     <wsdl:message name="DeliverResponseMessage">
>     	<wsdl:part name="header" element="types:data"/>
>     	<wsdl:part name="body" element="types:data"/>
>     </wsdl:message>
>     <wsdl:message name="DeliverFaultMessage">
>     	<wsdl:part name="comment1" element="types:comment"/>
>     	<wsdl:part name="comment2" element="types:comment"/>
>     </wsdl:message>
>     
>     <wsdl:portType name="DeliverPortType">
>         <wsdl:operation name="Deliver">
>             <wsdl:input message="tns:DeliverRequestMessage"/>
>             <wsdl:output message="tns:DeliverResponseMessage"/>
>             <wsdl:fault name="runtimeexception" message="tns:DeliverFaultMessage"/>
>         </wsdl:operation>
>     </wsdl:portType>
>     
>     <wsdl:binding name="DeliveryBinding" type="tns:DeliverPortType">
>         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>         <wsdl:operation name="Deliver">
>             <soap:operation soapAction=""/>
>             <wsdl:input>
>             	<soap:header message="tns:DeliverRequestMessage" part="header" use="literal"/>
>                 <soap:body use="literal" parts="body"/>
>             </wsdl:input>
>             <wsdl:output>
>             	<soap:header message="tns:DeliverResponseMessage" part="header" use="literal"/>
>                 <soap:body use="literal" parts="body"/>
>             </wsdl:output>
>             <wsdl:fault name="runtimeexception">
>             	<soap:fault name="runtimeexception" use="literal"/>
>             </wsdl:fault>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="DeliverService">
>         <wsdl:port name="DeliverPort" binding="tns:DeliveryBinding">
>             <soap:address location="http://localhost:1001/deliver"/>
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>
> ---- test.wsdl ---- END

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


Mime
View raw message