cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r440966 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Date Thu, 07 Sep 2006 03:51:09 GMT
Author: tli
Date: Wed Sep  6 20:51:08 2006
New Revision: 440966

URL: http://svn.apache.org/viewvc?view=rev&rev=440966
Log:
add support for wsdl operation parametor ordering

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?view=diff&rev=440966&r1=440965&r2=440966
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Wed Sep  6 20:51:08 2006
@@ -292,23 +292,24 @@
         OperationInfo opInfo = inf.addOperation(new QName(inf.getName().getNamespaceURI(),
op.getName()));
         opInfo.setProperty(WSDL_OPERATION, op);
         Input input = op.getInput();
+        List paramOrder = op.getParameterOrdering();
         if (input != null) {
             MessageInfo minfo = opInfo.createMessage(input.getMessage().getQName());
             opInfo.setInput(input.getName(), minfo);
-            buildMessage(minfo, input.getMessage());
+            buildMessage(minfo, input.getMessage(), paramOrder);
         }
         Output output = op.getOutput();
         if (output != null) {
             MessageInfo minfo = opInfo.createMessage(output.getMessage().getQName());
             opInfo.setOutput(output.getName(), minfo);
-            buildMessage(minfo, output.getMessage());
+            buildMessage(minfo, output.getMessage(), paramOrder);
         }
         Map<?, ?> m = op.getFaults();
         for (Map.Entry<?, ?> rawentry : m.entrySet()) {
             Map.Entry<String, Fault> entry = cast(rawentry, String.class, Fault.class);
             FaultInfo finfo = opInfo.addFault(new QName(inf.getName().getNamespaceURI(),
entry.getKey()),
                                               entry.getValue().getMessage().getQName());
-            buildMessage(finfo, entry.getValue().getMessage());
+            buildMessage(finfo, entry.getValue().getMessage(), paramOrder);
         }
         checkForWrapped(opInfo);
     }
@@ -429,8 +430,8 @@
         return false;
     }
 
-    private void buildMessage(AbstractMessageContainer minfo, Message msg) {
-        for (Part part : cast(msg.getOrderedParts(null), Part.class)) {
+    private void buildMessage(AbstractMessageContainer minfo, Message msg, List paramOrder)
{
+        for (Part part : cast(msg.getOrderedParts(paramOrder), Part.class)) {
             MessagePartInfo pi = minfo.addMessagePart(part.getName());
             if (part.getTypeName() != null) {
                 pi.setTypeQName(part.getTypeName());



Mime
View raw message