Class MethodMarshallerFactory


  • public class MethodMarshallerFactory
    extends Object
    The MethodMarshallerFactory creates a Doc/Lit Wrapped, Doc/Lit Bare or RPC Marshaller using SOAPBinding information
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MethodMarshaller getMarshaller​(org.apache.axis2.jaxws.description.OperationDescription op, boolean isClient)  
      static MethodMarshaller getMarshaller​(org.apache.axis2.jaxws.description.OperationDescription op, boolean isClient, ClassLoader cl)  
      protected static boolean isDocLitBare​(org.apache.axis2.jaxws.description.OperationDescription op)  
      protected static boolean isDocLitBareMinimal​(org.apache.axis2.jaxws.description.OperationDescription op, ClassLoader cl)
      If a webservices is created without xjc, then there will be no ObjectFactory classes packaged with the webservice.
      protected static boolean isDocLitWrapped​(org.apache.axis2.jaxws.description.OperationDescription op)  
      protected static boolean isDocLitWrappedMinimal​(org.apache.axis2.jaxws.description.OperationDescription op)
      If a web service is created without wsgen, it is possible that the wrapper elements are missing.
      protected static boolean isDocLitWrappedPlus​(org.apache.axis2.jaxws.description.OperationDescription op)
      If an web service is created using wsgen, it is possible that the sei does not comply with the wrapped rules.
    • Method Detail

      • getMarshaller

        public static MethodMarshaller getMarshaller​(org.apache.axis2.jaxws.description.OperationDescription op,
                                                     boolean isClient)
      • getMarshaller

        public static MethodMarshaller getMarshaller​(org.apache.axis2.jaxws.description.OperationDescription op,
                                                     boolean isClient,
                                                     ClassLoader cl)
      • isDocLitBare

        protected static boolean isDocLitBare​(org.apache.axis2.jaxws.description.OperationDescription op)
      • isDocLitWrapped

        protected static boolean isDocLitWrapped​(org.apache.axis2.jaxws.description.OperationDescription op)
      • isDocLitWrappedPlus

        protected static boolean isDocLitWrappedPlus​(org.apache.axis2.jaxws.description.OperationDescription op)
        If an web service is created using wsgen, it is possible that the sei does not comply with the wrapped rules. For example, wsgen will allow header parameters and return values. In such cases we will use the DocLitWrappedPlus marshaller to marshal and unmarshal the xml in these extraordinary situations
        Parameters:
        op -
        Returns:
      • isDocLitBareMinimal

        protected static boolean isDocLitBareMinimal​(org.apache.axis2.jaxws.description.OperationDescription op,
                                                     ClassLoader cl)
        If a webservices is created without xjc, then there will be no ObjectFactory classes packaged with the webservice. In such cases, use the doc/lit bare minimal marshaller. This marshaller will use "by java type" marshalling/unmarshalling for primitives and Strings.
        Parameters:
        op -
        Returns:
      • isDocLitWrappedMinimal

        protected static boolean isDocLitWrappedMinimal​(org.apache.axis2.jaxws.description.OperationDescription op)
        If a web service is created without wsgen, it is possible that the wrapper elements are missing. In such cases, use the doc/lit wrapped minimal marshaller
        Parameters:
        op -
        Returns: