beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Merz" <mm...@bea.com>
Subject RE: checkin request
Date Tue, 28 Sep 2004 17:08:20 GMT
Hi Wolfgang,

You might be using the old revision of the spec. There's a new one out
there at http://jcp.org/en/jsr/detail?id=181 ("Public Review"):
- SOAPBinding is now only defined for the TYPE level
- SOAPMessageHandler has been obsoleted (note that SOAPMessageHandlers
is still there)

There are more changes, most of which are simple refactorings. 

While the new API hasn't been checked in yet, SOAPBinding at METHOD
level has already been removed. The upgrade to the new API is "work in
progress" and should come online within a couple of days.

Hope this helps,

-michael

PS: There is also a Yahoo! JSR-181 discussion group at
http://groups.yahoo.com/group/jsr181/. Although there hasn't been too
much activity yet, this might be a good forum to "Cc" on JSR-181-related
issues.

-----Original Message-----
From: wolfgang127us@yahoo.co.jp [mailto:wolfgang127us@yahoo.co.jp] 
Sent: Monday, September 27, 2004 11:40 AM
To: beehive-dev@incubator.apache.org
Subject: checkin request

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/WebServiceMETHODMeta
data.java
===================================================================
---
wsm/src/runtime/org/apache/beehive/wsm/jsr181/model/WebServiceMETHODMeta
data.java   (revision 47319)
+++
wsm/src/runtime/org/apache/beehive/wsm/jsr181/model/WebServiceMETHODMeta
data.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