Package org.jboss.ws

Examples of org.jboss.ws.WSException


      {
         paramValue = transformPayloadValue(paramMetaData, paramValue);
      }
      catch (SOAPException ex)
      {
         throw new WSException(ex);
      }
      return paramValue;
   }
View Full Code Here


   public void setReturnValue(Object value)
   {
      ParameterMetaData retMetaData = opMetaData.getReturnParameter();
      if (value != null && retMetaData == null)
         throw new WSException("Operation does not have a return value: " + opMetaData.getQName());

      if (log.isDebugEnabled())
         log.debug("setReturnValue: " + getTypeName(value));
      this.returnValue = value;
   }
View Full Code Here

         {
            paramValue = transformPayloadValue(paramMetaData, paramValue);
         }
         catch (SOAPException ex)
         {
            throw new WSException(ex);
         }
      }
      return paramValue;
   }
View Full Code Here

               // Verify that the java type matches a registered xmlType
               // Attachments are skipped because they don't use type mapping
               if (value != null && !paramMetaData.isSwA() && !paramMetaData.isXOP())
               {
                  if (JavaUtils.isAssignableFrom(javaType, inputType) == false)
                     throw new WSException("Parameter '" + javaType + "' not assignable from: " + inputType);
               }
            }
         }

         setRequestParamValue(xmlName, value);
View Full Code Here

         if (retValue != null)
         {
            Class valueType = retValue.getClass();
            if (JavaUtils.isAssignableFrom(targetParameterType, valueType) == false)
               throw new WSException("Parameter " + targetParameterType.getName() + " is not assignable from: " + getTypeName(retValue));

            if (valueType.isArray())
               retValue = JavaUtils.syncArray(retValue, targetParameterType);
         }
View Full Code Here

                  outParameters.put(param.getIndex(), holder);
               }
            }
            catch (Exception e)
            {
               throw new WSException("Could not add output param: " + param.getName(), e);

            }
         }
      }
   }
View Full Code Here

            generateTypesForXSD(returnMetaData);
         }
      }
      catch (IOException io)
      {
         throw new WSException(io);
      }
   }
View Full Code Here

      String namespace = getNamespace(javaType, xmlType.getNamespaceURI());
      //  Now that the schema object graph is built,
      //  ask JavaToXSD to provide a list of xsmodels to be plugged
      //  into WSDLTypes
      if (xsModel == null)
         throw new WSException("XSModel is null");

      WSDLTypes wsdlTypes = wsdl.getWsdlTypes();
      WSDLUtils.addSchemaModel(wsdlTypes, namespace, xsModel);
      wsdl.registerNamespaceURI(namespace, null);
View Full Code Here

            visitor.visitXOPElements((SOAPElementImpl)body);
         }
      }
      catch (SOAPException e)
      {
         throw new WSException("Failed to eagerly create XOP attachments", e);
      }
   }
View Full Code Here

            visitor.visitXOPElements((SOAPElementImpl)body);
         }
      }
      catch (SOAPException e)
      {
         throw new WSException("Failed to restore XOP data", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.WSException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.