gale320 / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

staff_codegen: operation name == service name #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
=== What steps will reproduce the problem? ===
1.Use the attached file GetServiceSoftphone2.wsdl 
2.staff_codegen -tclient_all -pwsdl GetServiceSoftphone2.wsdl 
-drootns=getservicesoftphone2
3.Try to compile with the generated Makefile

=== What is the expected output? What do you see instead? ===
The problem comes from that the service name and the operation name 
(name="GetServiceSoftphone") are the same.
So into the "GetServiceSoftphone2.h" there are a "struct GetServiceSoftphone" 
and a "class GetServiceSoftphone".

src/GetServiceSoftphone2.h:105: erreur: redefinition of ‘class 
getservicesoftphone2::GetServiceSoftphone’
src/GetServiceSoftphone2.h:96: erreur: previous definition of ‘class 
getservicesoftphone2::GetServiceSoftphone’

=== What version of the product are you using? On what operating system? ===
Revision 709 - CentOS and RHEL 5.2 x86_64

Original issue reported on code.google.com by juderamond@gmail.com on 17 Sep 2012 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
It is very hard to rename all references(internal and external) to that struct, 
In this case I just rename the service.

Original comment by loentar on 18 Sep 2012 at 9:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r710.

Original comment by loentar on 18 Sep 2012 at 9:33

GoogleCodeExporter commented 9 years ago
Thank you again for the quick fix. Perfect.

Original comment by juderamond@gmail.com on 18 Sep 2012 at 9:46