You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2007/05/22 18:16:16 UTC

[jira] Created: (CXF-669) When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)

When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)
-------------------------------------------------------------------------------------

                 Key: CXF-669
                 URL: https://issues.apache.org/jira/browse/CXF-669
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.0-RC
            Reporter: Daniel Kulp
         Assigned To: maomaode
             Fix For: 2.0



If the IMPL's WebService annotation specifies a different targetNamespace than the SEI interface, we don't generate a valid wsdl.   We need to generate two wsdls, one for the SEI interface and another for the service (which then imports the one for the SEI).



package com.foo;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding;
import javax.jws.WebMethod;
import javax.jws.WebResult;

@WebService(targetNamespace = "http://foo.com/HelloWorld", name = "HelloWorld")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface Hello {

    @WebResult(partName = "out", name = "out")
    @WebMethod
    public String echoFoo(
                @WebParam(partName = "in", name = "in")
                String s);
}




package com.foo;

import javax.jws.WebService;

@WebService(serviceName = "HelloService", 
            portName = "HelloPort", 
            endpointInterface = "com.foo.Hello",
            targetNamespace = "http://foo.com/HelloWorldService")
public class HelloImpl {

    public String echoFoo(String s) {
        return s;
    }

}


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


[jira] Resolved: (CXF-669) When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode resolved CXF-669.
--------------------------

    Resolution: Fixed

> When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-669
>                 URL: https://issues.apache.org/jira/browse/CXF-669
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-RC
>            Reporter: Daniel Kulp
>         Assigned To: maomaode
>             Fix For: 2.0
>
>
> If the IMPL's WebService annotation specifies a different targetNamespace than the SEI interface, we don't generate a valid wsdl.   We need to generate two wsdls, one for the SEI interface and another for the service (which then imports the one for the SEI).
> package com.foo;
> import javax.jws.WebParam;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding.Style;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.WebMethod;
> import javax.jws.WebResult;
> @WebService(targetNamespace = "http://foo.com/HelloWorld", name = "HelloWorld")
> @SOAPBinding(style = SOAPBinding.Style.RPC)
> public interface Hello {
>     @WebResult(partName = "out", name = "out")
>     @WebMethod
>     public String echoFoo(
>                 @WebParam(partName = "in", name = "in")
>                 String s);
> }
> package com.foo;
> import javax.jws.WebService;
> @WebService(serviceName = "HelloService", 
>             portName = "HelloPort", 
>             endpointInterface = "com.foo.Hello",
>             targetNamespace = "http://foo.com/HelloWorldService")
> public class HelloImpl {
>     public String echoFoo(String s) {
>         return s;
>     }
> }

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


[jira] Commented: (CXF-669) When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498537 ] 

maomaode commented on CXF-669:
------------------------------

Now it's able to generate two wsdls, but the schema types namespace is not correct,
It should be the namespace of the logical wsdl, but in fact it use the physicals'
Something wrong in the service builder.
Require another commit.

> When SEI's and IMPLS have different namespaces, we don't generate the correct WSDL(s)
> -------------------------------------------------------------------------------------
>
>                 Key: CXF-669
>                 URL: https://issues.apache.org/jira/browse/CXF-669
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-RC
>            Reporter: Daniel Kulp
>         Assigned To: maomaode
>             Fix For: 2.0
>
>
> If the IMPL's WebService annotation specifies a different targetNamespace than the SEI interface, we don't generate a valid wsdl.   We need to generate two wsdls, one for the SEI interface and another for the service (which then imports the one for the SEI).
> package com.foo;
> import javax.jws.WebParam;
> import javax.jws.WebService;
> import javax.jws.soap.SOAPBinding.Style;
> import javax.jws.soap.SOAPBinding;
> import javax.jws.WebMethod;
> import javax.jws.WebResult;
> @WebService(targetNamespace = "http://foo.com/HelloWorld", name = "HelloWorld")
> @SOAPBinding(style = SOAPBinding.Style.RPC)
> public interface Hello {
>     @WebResult(partName = "out", name = "out")
>     @WebMethod
>     public String echoFoo(
>                 @WebParam(partName = "in", name = "in")
>                 String s);
> }
> package com.foo;
> import javax.jws.WebService;
> @WebService(serviceName = "HelloService", 
>             portName = "HelloPort", 
>             endpointInterface = "com.foo.Hello",
>             targetNamespace = "http://foo.com/HelloWorldService")
> public class HelloImpl {
>     public String echoFoo(String s) {
>         return s;
>     }
> }

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