beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wolfgang12...@yahoo.co.jp
Subject checkin request
Date Mon, 27 Sep 2004 18:39:58 GMT
Hi there,

I have a checkin request for WSM.

With this patch, the WebServiceMETHODMetadata can get a SOAPBinding annotation.

Thanks in advance.

wolfgang

ps)
Anybody knows that whether the SOAPMessageHandler annotation can exist without 
the SOAPMessageHandlers annotation if only one SOAPMessageHandler annotation 
is applied ?

Is it possible to be like the following ?

@WebService
@SOAPMessageHandler(className = "com.fabrikam.handlers.LogHandler")
public class MyWebService {

or Must be like

@WebService
@SOAPMessageHandlers{
   @SOAPMessageHandler(className = "com.fabrikam.handlers.LogHandler")
}
public class MyWebService {

Not critical but just curious since the JSR-181 doesn't mention about it... 



Index: wsm/src/runtime/org/apache/beehive/wsm/jsr181/model/WebServiceMETHODMetadata.java
===================================================================
--- wsm/src/runtime/org/apache/beehive/wsm/jsr181/model/WebServiceMETHODMetadata.java   (revision
47319)
+++ wsm/src/runtime/org/apache/beehive/wsm/jsr181/model/WebServiceMETHODMetadata.java   (working
copy)
@@ -31,6 +31,8 @@
 import javax.jws.WebParam;
 import javax.jws.WebResult;

+import javax.jws.soap.SOAPBinding;
+
 public class WebServiceMETHODMetadata extends AnnotationModel
 {
     private String wmOperationName;
@@ -139,6 +141,10 @@
             {
                 initFromAnnotation((javax.jws.WebResult) a);
             }
+            else if (a.annotationType() == javax.jws.soap.SOAPBinding.class)
+            {
+                initFromAnnotation((javax.jws.soap.SOAPBinding) a);
+            }
             else
             {
                 // todo: warning -- unknown annotation
@@ -149,6 +155,14 @@
         addParams(webParams);
     }

+    private void initFromAnnotation(SOAPBinding annotation)
+    {
+        if (null != annotation)
+        {
+            setSoapBinding(new SOAPBindingInfo(annotation));
+        }
+    }
+
     private void initFromAnnotation(SecurityRoles annotation)
     {
         if (null != annotation)
@@ -217,6 +231,16 @@
         this.oneway = oneway;
     }

+    public SOAPBindingInfo getSoapBinding()
+    {
+        return soapBinding;
+    }
+
+    public void setSoapBinding(SOAPBindingInfo soapBinding)
+    {
+        this.soapBinding = soapBinding;
+    }
+
     public SecurityRolesInfo getSecurityRoles()
     {
         return securityRoles;
@@ -287,4 +311,4 @@
     {
         return javaReturnType;
     }
-}
\ No newline at end of file
+}



Mime
View raw message