You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Lin Sun (JIRA)" <ji...@apache.org> on 2007/05/16 22:52:16 UTC

[jira] Created: (GERONIMO-3164) Axis2: support bindingtype overwrite from wsdl to annotation

Axis2: support bindingtype overwrite from wsdl to annotation
------------------------------------------------------------

                 Key: GERONIMO-3164
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3164
             Project: Geronimo
          Issue Type: Improvement
      Security Level: public (Regular issues)
          Components: webservices
    Affects Versions: 2.0-M6
         Environment: Win XP + Sun 1.5 SDK
            Reporter: Lin Sun
         Assigned To: Lin Sun
             Fix For: 2.0-M6


If a user has a jax-ws module that has different bindingtype in wsdl and webservice annotation, the deployment of the module would fail but it doesn't pass the axis2 validation - 

  The service J2EEApplication=XXXX did not start because Throwable during start of gbean: 
java.lang.RuntimeException: javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due to the following errors: 
 :: Endpoint failed validation ::  :: Invalid binding; wsdl = http://schemas.xmlsoap.org/wsdl/soap/, annotation = http://www.w3.org/2004/08/wsdl/http


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


[jira] Resolved: (GERONIMO-3164) Axis2: support bindingtype overwrite from wsdl to annotation

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

Lin Sun resolved GERONIMO-3164.
-------------------------------

    Resolution: Fixed

patch is tested more today and checked in rev 540398.   

> Axis2: support bindingtype overwrite from wsdl to annotation
> ------------------------------------------------------------
>
>                 Key: GERONIMO-3164
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3164
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: webservices
>    Affects Versions: 2.0-M6
>         Environment: Win XP + Sun 1.5 SDK
>            Reporter: Lin Sun
>         Assigned To: Lin Sun
>             Fix For: 2.0-M6
>
>         Attachments: G3164.patch
>
>
> If a user has a jax-ws module that has different bindingtype in wsdl and webservice annotation, the deployment of the module would fail but it doesn't pass the axis2 validation - 
>   The service J2EEApplication=XXXX did not start because Throwable during start of gbean: 
> java.lang.RuntimeException: javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due to the following errors: 
>  :: Endpoint failed validation ::  :: Invalid binding; wsdl = http://schemas.xmlsoap.org/wsdl/soap/, annotation = http://www.w3.org/2004/08/wsdl/http

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


[jira] Updated: (GERONIMO-3164) Axis2: support bindingtype overwrite from wsdl to annotation

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

Lin Sun updated GERONIMO-3164:
------------------------------

    Attachment: G3164.patch

Will test a bit more on the patch on Monday before commit it... 

I tried different approaches before coming up with this patch -

1) tried to use what Axis2 uses to get bindingtype from serviceDescription, but that didn't work as the validation failed during the creation of createServiceDescriptionFromDBCMap.  And serviceDescriptionImpl's constructor is not public so I cannot create my own serviceDescription in geronimo.
2) Tried to use getType from AxisBinding which can be obtained from AxisService, but that shows the transporturi not really the bindingtype I need.
3) Tried to see how Axis2 set the bindingtype from wsdl when there is no binding specified in annotation and find out it just defaults to the default binding type which is SOAP11HTTP_BINDING.

Lin





> Axis2: support bindingtype overwrite from wsdl to annotation
> ------------------------------------------------------------
>
>                 Key: GERONIMO-3164
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3164
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: webservices
>    Affects Versions: 2.0-M6
>         Environment: Win XP + Sun 1.5 SDK
>            Reporter: Lin Sun
>         Assigned To: Lin Sun
>             Fix For: 2.0-M6
>
>         Attachments: G3164.patch
>
>
> If a user has a jax-ws module that has different bindingtype in wsdl and webservice annotation, the deployment of the module would fail but it doesn't pass the axis2 validation - 
>   The service J2EEApplication=XXXX did not start because Throwable during start of gbean: 
> java.lang.RuntimeException: javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due to the following errors: 
>  :: Endpoint failed validation ::  :: Invalid binding; wsdl = http://schemas.xmlsoap.org/wsdl/soap/, annotation = http://www.w3.org/2004/08/wsdl/http

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