private QName getPartName(OperationInfo op, Method method, int paramNumber, MessageInfo mi, String prefix, boolean isIn) { int partIndex = getPartIndex(method, paramNumber, isIn); method = getDeclaredMethod(method); WebParam param = getWebParam(method, paramNumber); String tns = mi.getName().getNamespaceURI(); String local = null; if (param != null) { if (Boolean.TRUE.equals(isRPC(method)) || isDocumentBare(method) || param.header()) { local = param.partName(); } if (local == null || local.length() == 0) { local = param.name(); } } if (local == null || local.length() == 0) { if (Boolean.TRUE.equals(isRPC(method)) || !Boolean.FALSE.equals(isWrapped(method))) { local = getDefaultLocalName(op, method, paramNumber, partIndex, prefix); } else { local = getOperationName(op.getInterface(), method).getLocalPart(); } } return new QName(tns, local); }
/** * The part name of the message for this parameter. * * @return The part name of the message for this parameter. */ public String getPartName() { String partName = getBaseParamName(); if ((annotation != null) && (annotation.partName() != null) && (!"".equals(annotation.partName()))) { partName = annotation.partName(); } return partName; }
/** * The part name of the message for this parameter. * * @return The part name of the message for this parameter. */ public String getPartName() { String partName = getSimpleName(); if ((annotation != null) && (annotation.partName() != null) && (!"".equals(annotation.partName()))) { partName = annotation.partName(); } return partName; }
/** * The part name of the message for this parameter. * * @return The part name of the message for this parameter. */ public String getPartName() { String partName = getBaseParamName(); if ((annotation != null) && (annotation.partName() != null) && (!"".equals(annotation.partName()))) { partName = annotation.partName(); } return partName; }
public String getAnnoWebParamPartName() { if (webParamPartName == null) { if (getAnnoWebParam() != null && !DescriptionUtils.isEmpty(getAnnoWebParam().partName())) { webParamPartName = getAnnoWebParam().partName(); } else { // Default per JSR-181 MR Sec 4.4.1, pg 20 webParamPartName = getAnnoWebParamName(); } } return webParamPartName; }
public String getAnnoWebParamPartName() { if (webParamPartName == null) { if (getAnnoWebParam() != null && !DescriptionUtils.isEmpty(getAnnoWebParam().partName())) { webParamPartName = getAnnoWebParam().partName(); } else { // Default per JSR-181 MR Sec 4.4.1, pg 20 webParamPartName = getAnnoWebParamName(); } } return webParamPartName; }
private QName getPartName(OperationInfo op, Method method, int paramNumber, MessageInfo mi, String prefix, boolean isIn) { int partIndex = getPartIndex(method, paramNumber, isIn); method = getDeclaredMethod(method); WebParam param = getWebParam(method, paramNumber); String tns = mi.getName().getNamespaceURI(); String local = null; if (param != null) { if (Boolean.TRUE.equals(isRPC(method)) || isDocumentBare(method) || param.header()) { local = param.partName(); } if (local == null || local.length() == 0) { local = param.name(); } } if (local == null || local.length() == 0) { if (Boolean.TRUE.equals(isRPC(method)) || !Boolean.FALSE.equals(isWrapped(method))) { local = getDefaultLocalName(op, method, paramNumber, partIndex, prefix); } else { local = getOperationName(op.getInterface(), method).getLocalPart(); } } return new QName(tns, local); }
QName elName = (callback.getSOAPStyle() == Style.DOCUMENT) ? new QName(param.targetNamespace(), param.name()) : new QName("", param.partName());
: new QName("", param.partName());
annot.setTargetNamespace(webParam.targetNamespace()); annot.setHeader(webParam.header()); annot.setPartName(webParam.partName());
if (webParam.name().length() > 0) paramName = webParam.name(); partName = webParam.partName(); if (!webParam.targetNamespace().equals("")) { requestNamespace = webParam.targetNamespace();
if (webParam.name().length() > 0) paramName = webParam.name(); partName = webParam.partName(); if (!webParam.targetNamespace().equals("")) { requestNamespace = webParam.targetNamespace();
if (webParam.name().length() > 0) paramName = webParam.name(); partName = webParam.partName(); if (!webParam.targetNamespace().equals("")) { requestNamespace = webParam.targetNamespace();
: new QName("", param.partName()); writer.write(partValue, elName, xmlNode);
/** * This method will attach @WebParam annotation data to the <code> ParameterDescriptionComposite</code> * if the annotation was found on the parameter represented by this index in the parameter list. * * @param pdc - <code>ParameterDescriptionComposite</code> * @param order - the current index in the parameter list */ private void attachWebParamAnnotation(ParameterDescriptionComposite pdc, int order) { Annotation[] orderAnnots = paramAnnotations[order]; for (Annotation annot : orderAnnots) { if (annot instanceof WebParam) { WebParam webParam = (WebParam)annot; WebParamAnnot wpAnnot = WebParamAnnot.createWebParamAnnotImpl(); wpAnnot.setHeader(webParam.header()); wpAnnot.setMode(webParam.mode()); wpAnnot.setName(webParam.name()); wpAnnot.setPartName(webParam.partName()); wpAnnot.setTargetNamespace(webParam.targetNamespace()); pdc.setWebParamAnnot(wpAnnot); } } } }
/** * This method will attach @WebParam annotation data to the <code> ParameterDescriptionComposite</code> * if the annotation was found on the parameter represented by this index in the parameter list. * * @param pdc - <code>ParameterDescriptionComposite</code> * @param order - the current index in the parameter list */ private void attachWebParamAnnotation(ParameterDescriptionComposite pdc, int order) { Annotation[] orderAnnots = paramAnnotations[order]; for (Annotation annot : orderAnnots) { if (annot instanceof WebParam) { WebParam webParam = (WebParam)annot; WebParamAnnot wpAnnot = WebParamAnnot.createWebParamAnnotImpl(); wpAnnot.setHeader(webParam.header()); wpAnnot.setMode(webParam.mode()); wpAnnot.setName(webParam.name()); wpAnnot.setPartName(webParam.partName()); wpAnnot.setTargetNamespace(webParam.targetNamespace()); pdc.setWebParamAnnot(wpAnnot); } } } }
: new QName("", param.partName()); writer.write(partValue, elName, xmlNode);