< prev index next >

jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/RuntimeModeler.java

Print this page




1163             }
1164             if(param.getInBinding().isBody()){
1165                 typeRef.setGlobalElement(false);
1166                 if(!param.isOUT()){
1167                     WSDLPart p = getPart(new QName(targetNamespace,operationName), partName, Mode.IN);
1168                     if(p == null)
1169                         reqRpcParams.put(reqRpcParams.size()+10000, param);
1170                     else
1171                         reqRpcParams.put(param.getIndex(), param);
1172                 }
1173 
1174                 if(!param.isIN()){
1175                     if (isOneway) {
1176                             throw new RuntimeModelerException("runtime.modeler.oneway.operation.no.out.parameters",
1177                                 portClass.getCanonicalName(), methodName);
1178                     }
1179                     WSDLPart p = getPart(new QName(targetNamespace,operationName), partName, Mode.OUT);
1180                     if(p == null)
1181                         resRpcParams.put(resRpcParams.size()+10000, param);
1182                     else
1183                         resRpcParams.put(param.getIndex(), param);
1184                 }
1185             }else{
1186                 javaMethod.addParameter(param);
1187             }
1188         }
1189         for (ParameterImpl p : reqRpcParams.values())
1190             requestWrapper.addWrapperChild(p);
1191         for (ParameterImpl p : resRpcParams.values())
1192             responseWrapper.addWrapperChild(p);
1193         processExceptions(javaMethod, method);
1194     }
1195 
1196     /**
1197      * models the exceptions thrown by <code>method</code> and adds them to the <code>javaMethod</code>
1198      * runtime model object
1199      * @param javaMethod the runtime model object to add the exception model objects to
1200      * @param method the <code>method</code> from which to find the exceptions to model
1201      */
1202     protected void processExceptions(JavaMethodImpl javaMethod, Method method) {
1203         Action actionAnn = getAnnotation(method, Action.class);




1163             }
1164             if(param.getInBinding().isBody()){
1165                 typeRef.setGlobalElement(false);
1166                 if(!param.isOUT()){
1167                     WSDLPart p = getPart(new QName(targetNamespace,operationName), partName, Mode.IN);
1168                     if(p == null)
1169                         reqRpcParams.put(reqRpcParams.size()+10000, param);
1170                     else
1171                         reqRpcParams.put(param.getIndex(), param);
1172                 }
1173 
1174                 if(!param.isIN()){
1175                     if (isOneway) {
1176                             throw new RuntimeModelerException("runtime.modeler.oneway.operation.no.out.parameters",
1177                                 portClass.getCanonicalName(), methodName);
1178                     }
1179                     WSDLPart p = getPart(new QName(targetNamespace,operationName), partName, Mode.OUT);
1180                     if(p == null)
1181                         resRpcParams.put(resRpcParams.size()+10000, param);
1182                     else
1183                         resRpcParams.put(p.getIndex(), param);
1184                 }
1185             }else{
1186                 javaMethod.addParameter(param);
1187             }
1188         }
1189         for (ParameterImpl p : reqRpcParams.values())
1190             requestWrapper.addWrapperChild(p);
1191         for (ParameterImpl p : resRpcParams.values())
1192             responseWrapper.addWrapperChild(p);
1193         processExceptions(javaMethod, method);
1194     }
1195 
1196     /**
1197      * models the exceptions thrown by <code>method</code> and adds them to the <code>javaMethod</code>
1198      * runtime model object
1199      * @param javaMethod the runtime model object to add the exception model objects to
1200      * @param method the <code>method</code> from which to find the exceptions to model
1201      */
1202     protected void processExceptions(JavaMethodImpl javaMethod, Method method) {
1203         Action actionAnn = getAnnotation(method, Action.class);


< prev index next >