You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dave Sowerby (JIRA)" <tu...@ws.apache.org> on 2008/04/11 18:04:05 UTC

[jira] Created: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

WSDL representations of binding.ws generated incorrectly.
---------------------------------------------------------

                 Key: TUSCANY-2220
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Embedded Runtime
    Affects Versions: Java-SCA-1.2
         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
Jetty on Windows XP x86, jdk150_10
Websphere on Windows XP x86, jdk150_10
Tomcat on Windows XP x86. jdk150_10
            Reporter: Dave Sowerby
             Fix For: Java-SCA-1.2


WSDL representations of binding.ws generated incorrectly.

I'm currently facing issues when attmepting to utilise the wsdl
generated by a service exposed using binding.ws, when I use wsdl2java
with this wsdl I get the following exception:

IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
Emitter failure.  Cannot find endpoint address in port
ServiceRequestPortType__SOAPHTTPPort in service
ServiceRequestPortType__ServiceLocator
   java.io.IOException: Emitter failure.  Cannot find endpoint
address in port ServiceRequestPortType__SOAPHTTPPort in service
ServiceRequestPortType__ServiceLocator
   at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
   at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
   at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
   at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
   at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
   at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
   at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
   at java.lang.Thread.run(Unknown Source)

I've diffed a previously functioning wsdl against the currently (RC3a)
generated wsdl file, the difference causing this problem appears to be
the additional lines of:

 <wsdl:service name="ServiceRequestPortType__Service">
   <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
binding="ns2:ServiceRequestPortType__SOAPBinding">
   </wsdl:port>
 </wsdl:service>

Which without an address is causing wsdl2java to fail.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588483#action_12588483 ] 

Luciano Resende commented on TUSCANY-2220:
------------------------------------------

I'm going to merge this fix to SCA 1.2 branch for a re-spin.

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [jira] Updated: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by Simon Nash <na...@apache.org>.
This was fixed in 1.2.  I'm updating and resolving the JIRA.

   Simon

Simon Laws (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Simon Laws updated TUSCANY-2220:
> --------------------------------
> 
>     Fix Version/s:     (was: Java-SCA-1.2)
>                    Java-SCA-Next
> 
> Move fix to SCA Next
> 
>> WSDL representations of binding.ws generated incorrectly.
>> ---------------------------------------------------------
>>
>>                 Key: TUSCANY-2220
>>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>>             Project: Tuscany
>>          Issue Type: Bug
>>          Components: Java SCA Embedded Runtime
>>    Affects Versions: Java-SCA-1.2
>>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
>> Jetty on Windows XP x86, jdk150_10
>> Websphere on Windows XP x86, jdk150_10
>> Tomcat on Windows XP x86. jdk150_10
>>            Reporter: Dave Sowerby
>>             Fix For: Java-SCA-Next
>>
>>
>> WSDL representations of binding.ws generated incorrectly.
>> I'm currently facing issues when attmepting to utilise the wsdl
>> generated by a service exposed using binding.ws, when I use wsdl2java
>> with this wsdl I get the following exception:
>> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
>> Emitter failure.  Cannot find endpoint address in port
>> ServiceRequestPortType__SOAPHTTPPort in service
>> ServiceRequestPortType__ServiceLocator
>>    java.io.IOException: Emitter failure.  Cannot find endpoint
>> address in port ServiceRequestPortType__SOAPHTTPPort in service
>> ServiceRequestPortType__ServiceLocator
>>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>>    at java.lang.Thread.run(Unknown Source)
>> I've diffed a previously functioning wsdl against the currently (RC3a)
>> generated wsdl file, the difference causing this problem appears to be
>> the additional lines of:
>>  <wsdl:service name="ServiceRequestPortType__Service">
>>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
>> binding="ns2:ServiceRequestPortType__SOAPBinding">
>>    </wsdl:port>
>>  </wsdl:service>
>> Which without an address is causing wsdl2java to fail.
> 


[jira] Updated: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

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

Simon Laws updated TUSCANY-2220:
--------------------------------

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

Move fix to SCA Next

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-Next
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Simon Nash (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588274#action_12588274 ] 

Simon Nash commented on TUSCANY-2220:
-------------------------------------

I tried running the generated WSDL file (with missing soap:address) through the following WSDL to Java tools:
   wsdl2java from Axis2 1.3
   wsimport from JDK 6
   wsdl2java from CXF 2.0.4
   WSDL2Java from Axis 1.4

Only the last of these produced a failure (as reported in this JIRA).  The Axis2 and JDK 6 tools produced warning messages, and the CXF tool produced no messages.

Given that all the modern WSDL to Java tools can handle the generated WSDL, and it is only Axis that produces an exception, I am not sure whether we need to hold up the 1.2 release in order to correct this problem.

User feedback on this point would be greatly appreciated.

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588426#action_12588426 ] 

Raymond Feng commented on TUSCANY-2220:
---------------------------------------

I checked in a fix into trunk for TUSCANY-2220 under r647623. It now uses the binding uri to popluate the generated port soap:address.

I'll let the Release Manager to decide if he wants to merge it into 1.2 branch. 


> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Simon Nash (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588481#action_12588481 ] 

Simon Nash commented on TUSCANY-2220:
-------------------------------------

Thanks, Raymond.

I tried this fix on my test case (calculator-ws-webapp).  The generated WSDL looked good and didn't produce any errors from the Axis WSDL2Java tool.

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Simon Nash (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588395#action_12588395 ] 

Simon Nash commented on TUSCANY-2220:
-------------------------------------

I have been investigating how this used to work before the code change in r633216.

If these lines in createPort() are uncommented, a WSDL document with a soap:address URI of "" is passed to Axis2 to create the service.

This may seem like a problem, but actually it's OK.  On the client side, the correct URI is computed by getWSATOEPR() when creating
the Axis2 binding invoker.  On the service side, the correct URI is computed and added to the servlet host.

When "?wsdl" is sent to the Axis2 servlet, Axis2 is smart enough to use the actual URI from the "?wsdl" invocation and insert that
in the WSDL document that it returns, overriding the "" that was put there by Tuscany.

So I believe that uncommenting these lines in createPort() would provide a fix (or at least an acceptable workaround for now). 

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

Posted by "Simon Nash (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588026#action_12588026 ] 

Simon Nash commented on TUSCANY-2220:
-------------------------------------

Commit r633216 made changes to Axis2ServiceClient.setServiceAndPort().  These changes are causing bad code to be generated in the WSDL.
  
In my simple test (the calculator-ws-webapp sample), the following lines are now being added to the WSDL compared with what was there
previously.

--- previous code ---

- <wsdl:binding name="AddServicePortType__SOAPBinding" type="ns0:AddServicePortType">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="add">
  <soap:operation soapAction="" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>

--- previous code ---

- <wsdl:service name="AddServicePortType__Service">
  <wsdl:port name="AddServicePortType__SOAPHTTPPort" binding="ns0:AddServicePortType__SOAPBinding" />
  </wsdl:service>

--- previous code --- 

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-2220) WSDL representations of binding.ws generated incorrectly.

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

Simon Nash resolved TUSCANY-2220.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Java-SCA-Next)
                   Java-SCA-1.2

Fixed in SCA Java 1.2 rc4.

> WSDL representations of binding.ws generated incorrectly.
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2220
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2220
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Embedded Runtime
>    Affects Versions: Java-SCA-1.2
>         Environment: Websphere 6.1.0.14 on AIX, jdk150_10
> Jetty on Windows XP x86, jdk150_10
> Websphere on Windows XP x86, jdk150_10
> Tomcat on Windows XP x86. jdk150_10
>            Reporter: Dave Sowerby
>             Fix For: Java-SCA-1.2
>
>
> WSDL representations of binding.ws generated incorrectly.
> I'm currently facing issues when attmepting to utilise the wsdl
> generated by a service exposed using binding.ws, when I use wsdl2java
> with this wsdl I get the following exception:
> IWAB0399E Error in generating Java from WSDL:  java.io.IOException:
> Emitter failure.  Cannot find endpoint address in port
> ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    java.io.IOException: Emitter failure.  Cannot find endpoint
> address in port ServiceRequestPortType__SOAPHTTPPort in service
> ServiceRequestPortType__ServiceLocator
>    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:189)
>    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
>    at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:112)
>    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
>    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
>    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
>    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
>    at java.lang.Thread.run(Unknown Source)
> I've diffed a previously functioning wsdl against the currently (RC3a)
> generated wsdl file, the difference causing this problem appears to be
> the additional lines of:
>  <wsdl:service name="ServiceRequestPortType__Service">
>    <wsdl:port name="ServiceRequestPortType__SOAPHTTPPort"
> binding="ns2:ServiceRequestPortType__SOAPBinding">
>    </wsdl:port>
>  </wsdl:service>
> Which without an address is causing wsdl2java to fail.

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