[ http://jira.codehaus.org/browse/XFIRE-742?page=all ]
Dan Diephouse closed XFIRE-742.
-------------------------------
Resolution: Fixed
> WsGenTask creates Service Impl with void output parameters and no input
> parameters. JAXB is the binding mechanism.
> ------------------------------------------------------------------------------------------------------------------
>
> Key: XFIRE-742
> URL: http://jira.codehaus.org/browse/XFIRE-742
> Project: XFire
> Issue Type: Bug
> Components: Generator
> Affects Versions: 1.2.2
> Environment: Windows XP, XFire 1.2.2., Java 1.5.0_06, Maven 2.0.4
> Reporter: Franz Garsombke
> Assigned To: Dan Diephouse
> Fix For: 1.2.3
>
> Attachments: projects.zip
>
>
> In our schema we have defined a baseRequest and baseReponse element. All
> operation messages extend these:
> <xs:element name="getAddressAndRateCenter"
> type="location:getAddressAndRateCenter"/>
> <xs:complexType name="getAddressAndRateCenter">
> <xs:complexContent>
> <xs:extension base="location:baseRequest">
> <xs:sequence>
> <xs:element name="telecomLocale"
> type="location:telecomLocale"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
>
> <xs:element name="getAddressAndRateCenterResponse"
> type="location:getAddressAndRateCenterResponse"/>
> <xs:complexType name="getAddressAndRateCenterResponse">
> <xs:complexContent>
> <xs:extension base="location:baseResponse">
> <xs:sequence>
> <xs:element name="demarc" type="location:demarc"
> minOccurs="0" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> If I have one operation defined in the WSDL the Service Impl class is
> generated with void output parameters and no input parameters. If I have two
> operations defined in the WSDL (both having messages that extend baseRequest
> and baseResponse) the Service Impl class is generated with void output
> parameters and no input parameters. Now here is the strange thing...if I have
> one operation that extends the base elements AND one that doesn't then the
> Service Impl class is generated correctly. I have attached both examples so
> you can reproduce.
> Run mvn install on the project labeled
> 'business_services_layer_generates_correct_impl'. Look at the generated
> EnterpriseLocationImpl.java. It has correct operations.
> Next run mvn install on the project labeled
> 'business_services_layer_generates_incorrect_impl'. Look at the generated
> EnterpriseLocationImpl.java. Its operations return vales are void.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email