You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Chad Phillips (JIRA)" <de...@tuscany.apache.org> on 2009/02/17 19:09:03 UTC

[jira] Created: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
-------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-2853
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Misc Binding Extensions
    Affects Versions: Java-SCA-1.4
         Environment: Microsoft Windows XP SP2
Java JDK 1.5.0_14
Apache Tuscany SCA Java 1.4
Axis 1.3
Ant 1.7.0
            Reporter: Chad Phillips
         Attachments: test.zip

The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:

* Axis 
* Axis2 
* JAX-WS
* XMLBeans

All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.

Create/run the server:

Open a command prompt and run the following commands (adjust paths as necessary):
cd <project directory>
set TUSCANY_HOME=C:\tuscany-sca-1.4
ant server

Create/run the client:

Open another command prompt and run the following commands (adjust paths as necessary):
cd <project directory>
set AXIS_HOME=C:\axis-1_3
ant client

This should display the following message when generating the WS client from the WSDL:

generate-wsc:
     [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
     [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
     [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
     [java] java.io.IOException: Type data2 is referenced but not defined.
     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java]     at java.lang.Thread.run(Thread.java:595)

BUILD FAILED

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


[jira] Resolved: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Chad Phillips (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chad Phillips resolved TUSCANY-2853.
------------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.5

Fixed by Raymond Feng as of r755810

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>             Fix For: Java-SCA-1.5
>
>         Attachments: test.zip, test2.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Updated: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Chad Phillips (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chad Phillips updated TUSCANY-2853:
-----------------------------------

    Attachment: test2.zip

Updated test program

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>         Attachments: test.zip, test2.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Commented: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Chad Phillips (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674405#action_12674405 ] 

Chad Phillips commented on TUSCANY-2853:
----------------------------------------

A discussion regarding this issue can be found here: http://markmail.org/message/vdax5mqph6zmojm3 

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>         Attachments: test.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Updated: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder updated TUSCANY-2853:
-------------------------------

    Fix Version/s:     (was: Java-SCA-1.5)
                   Java-SCA-Next

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>             Fix For: Java-SCA-Next
>
>         Attachments: test.zip, test2.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Updated: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Chad Phillips (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chad Phillips updated TUSCANY-2853:
-----------------------------------

    Attachment: test.zip

Attached test program used to reproduce bug.

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>         Attachments: test.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Commented: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Chad Phillips (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683662#action_12683662 ] 

Chad Phillips commented on TUSCANY-2853:
----------------------------------------

Additional info regarding this issue: http://markmail.org/message/aaq25xqkxcpvfry4

> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>         Attachments: test.zip, test2.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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


[jira] Reopened: (TUSCANY-2853) WSDLs generated for services using binding.ws are not valid when input parameters contain complex types

Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws reopened TUSCANY-2853:
---------------------------------


A work around was suggested for this problem which involves creating a package-info.java file and adding a namespace to the package, for example, 

@javax.xml.bind.annotation.XmlSchema(namespace="http://test")
package helloworld;

This doesn't however fix the underlying problem that a user using a basic Java POJO complex type in their service interface will, by default,  generate WSDL that doesn't validate. This may not be easily soluble in which case the solution to this JIRA could be to document the work around. 



> WSDLs generated for services using binding.ws are not valid when input parameters contain complex types
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.4
>         Environment: Microsoft Windows XP SP2
> Java JDK 1.5.0_14
> Apache Tuscany SCA Java 1.4
> Axis 1.3
> Ant 1.7.0
>            Reporter: Chad Phillips
>             Fix For: Java-SCA-1.5
>
>         Attachments: test.zip, test2.zip
>
>
> The WSDLs that are being generated for services using binding.ws are not valid when input parameters contain complex types.  Using a Tuscany SCA generated WSDL I have tried generating a WS client using the following software suites:
> * Axis 
> * Axis2 
> * JAX-WS
> * XMLBeans
> All of these suites generate an error regarding the "data" and/or "data2" types when using the WSDL in the supplied test code.  This WSDL was obtained via http://localhost:8080/TestServiceComponent?wsdl and the only modification that was made to it was replacing the machines IP address with localhost.  The supplied test code is set up to run a server using Tuscany SCA Java 1.4 and generate a WS client using Axis 1.3.  The instructions for running the server and generating the client are provided below.
> Create/run the server:
> Open a command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set TUSCANY_HOME=C:\tuscany-sca-1.4
> ant server
> Create/run the client:
> Open another command prompt and run the following commands (adjust paths as necessary):
> cd <project directory>
> set AXIS_HOME=C:\axis-1_3
> ant client
> This should display the following message when generating the WS client from the WSDL:
> generate-wsc:
>      [java] Feb 17, 2009 10:00:33 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
>      [java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
>      [java] Parsing XML file:  wsdl/TestServiceComponent.wsdl
>      [java] java.io.IOException: Type data2 is referenced but not defined.
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
>      [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
>      [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>      [java]     at java.lang.Thread.run(Thread.java:595)
> BUILD FAILED

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