You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "XiaoMan Huang (JIRA)" <be...@incubator.apache.org> on 2004/11/04 03:20:32 UTC

[jira] Commented: (BEEHIVE-59) WebParam and WebResult should have the default targetNamespace value of targetNameSpace for Web Service

     [ http://nagoya.apache.org/jira/browse/BEEHIVE-59?page=comments#action_55018 ]
     
XiaoMan Huang commented on BEEHIVE-59:
--------------------------------------

it can be solved by this?:
svn diff

Index: WsmReflectionAnnotationProcessor.java
===================================================================
--- WsmReflectionAnnotationProcessor.java       (revision 56547)
+++ WsmReflectionAnnotationProcessor.java       (working copy)
@@ -114,6 +114,21 @@
             t.printStackTrace(); // todo: proper error handling
             wstm = null;
         }
+
+
+
+        for (WebServiceMETHODMetadata wsMethod: webMethods) {
+            Collection<WebServicePARAMETERMetadata> wsParams= wsMethod.getParam
s();
+            for (WebServicePARAMETERMetadata wsParam: wsParams) {
+                if (wsParam.getWpTargetNamespace().equals("")) {
+                    wsParam.setWpTargetNamespace(wstm.getWsTargetNamespace());
+                }
+            }
+            if (wsMethod.getWrTargetNamespace().equals("")) {
+                wsMethod.setWrTargetNamespace(wstm.getWsTargetNamespace());
+            }
+        }
+
         return wstm;
     }



> WebParam and WebResult should have the default targetNamespace value of targetNameSpace for Web Service
> -------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-59
>          URL: http://nagoya.apache.org/jira/browse/BEEHIVE-59
>      Project: Beehive
>         Type: Improvement
>   Components: Web Services (181)
>     Reporter: XiaoMan Huang

>
> according to jsr181 public review document, WebParam and WebResult should have the default targetNamespace value of targetNameSpace for Web Service, but now is ""

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira