WSDLToJava doesn't generate Service interface class, when wsdl has 2 services 
names that differ for an underscore
-----------------------------------------------------------------------------------------------------------------

                 Key: CXF-1939
                 URL: https://issues.apache.org/jira/browse/CXF-1939
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1.3
         Environment: Operating System: Windows XP
            Reporter: Stefano Gaspari


When using WSDLToJava i found a problem using two similar services names in my 
wsdl. 
These are my wsdl services elements:

...
<wsdl:service name="com.finantix.xsd.strange_name.TestStrangeNames">
    <wsdl:port name="com.finantix.xsd.strange_name.TestStrangeNamesSoapBinding" 
binding="tns:com.finantix.xsd.strange_name.TestStrangeNamesSoapBinding">
      <wsdlsoap:address 
location="http://localhost:8089/web/services/com.finantix.xsd.strange_name-TestStrangeNames"/>
    </wsdl:port>
  </wsdl:service>
  <wsdl:service name="com.finantix.xsd.strange_name.Test_Strange_Names">
    <wsdl:port 
name="com.finantix.xsd.strange_name.Test_Strange_NamesSoapBinding" 
binding="tns:com.finantix.xsd.strange_name.Test_Strange_NamesSoapBinding">
      <wsdlsoap:address 
location="http://localhost:8089/web/services/com.finantix.xsd.strange_name-Test_Strange_Names"/>
    </wsdl:port>
  </wsdl:service>
...

After the following generation:

wsdl2java -impl -server -client 
  -d D:\data\runtime4_wks_4.5\WS_serverDeploy\test.webservices 
  -b D:\data\runtime4_wks_4.5\WS_serverDeploy\webservices\dateTimeBinding.xml 
  -verbose -validate -autoNameResolution 
  D:\data\runtime4_wks_4.5\WS_serverDeploy\webservices\FxWServices.wsdl

in the generated code i can find only ONE service interface called 
"ComFinantixXsdStrangeNameTestStrangeNames" that refers to the second service 
element (the one with underscored name). 
There are a client, a server and implementation related to the previous 
service, but not to the second one.


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

Reply via email to