Example #1
0
  private java.lang.Object fromOM(
      final org.apache.axiom.om.OMElement param,
      final java.lang.Class<?> type,
      final java.util.Map<String, String> extraNamespaces)
      throws org.apache.axis2.AxisFault {
    try {

      if (CadConsultaCadastro2Stub.NfeDadosMsg.class.equals(type)) {
        return CadConsultaCadastro2Stub.NfeDadosMsg.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (CadConsultaCadastro2Stub.ConsultaCadastro2Result.class.equals(type)) {
        return CadConsultaCadastro2Stub.ConsultaCadastro2Result.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (CadConsultaCadastro2Stub.NfeCabecMsgE.class.equals(type)) {
        return CadConsultaCadastro2Stub.NfeCabecMsgE.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (CadConsultaCadastro2Stub.NfeCabecMsgE.class.equals(type)) {
        return CadConsultaCadastro2Stub.NfeCabecMsgE.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

    } catch (final java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (com.pa.SetEmp.class.equals(type)) {

        return com.pa.SetEmp.Factory.parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (com.pa.GetEmp.class.equals(type)) {

        return com.pa.GetEmp.Factory.parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (com.pa.GetEmpResponse.class.equals(type)) {

        return com.pa.GetEmpResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (org.example.www.site.PassInfo.class.equals(type)) {

        return org.example.www.site.PassInfo.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.PassInfoResponse.class.equals(type)) {

        return org.example.www.site.PassInfoResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.SearchSite.class.equals(type)) {

        return org.example.www.site.SearchSite.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.SearchSiteResponse.class.equals(type)) {

        return org.example.www.site.SearchSiteResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.GetSite.class.equals(type)) {

        return org.example.www.site.GetSite.Factory.parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.GetSiteResponse.class.equals(type)) {

        return org.example.www.site.GetSiteResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.ParallelInfo.class.equals(type)) {

        return org.example.www.site.ParallelInfo.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.example.www.site.ParallelInfoResponse.class.equals(type)) {

        return org.example.www.site.ParallelInfoResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
Example #4
0
  /**
   * Method discard.
   *
   * @param element
   * @throws OMException
   */
  public void discard(OMElement element) throws OMException {

    if (element.isComplete() || !cache) {
      throw new OMException();
    }
    try {

      // We simply cannot use the parser instance from the builder for this case
      // it is not safe to assume that the parser inside the builder will be in
      // sync with the parser of the element in question
      // Note 1 - however  calling getXMLStreamReaderWithoutCaching sets off two flags
      // the cache flag for this builder and the parserAccessed flag. These flags will be
      // reset later in this procedure

      int event = 0;
      XMLStreamReader elementParser = element.getXMLStreamReaderWithoutCaching();
      do {
        event = elementParser.next();
      } while (!(event == XMLStreamConstants.END_ELEMENT
          && element.getLocalName().equals(elementParser.getLocalName())));

      // at this point we are safely at the end_element event of the element we discarded
      lastNode = element.getPreviousOMSibling();

      // resetting the flags - see Note 1 above
      cache = true;
      parserAccessed = false;

      if (lastNode != null) {
        // if the last node is not an element, we are in trouble because leaf nodes
        // (such as text) cannot build themselves. worst the lastchild of the
        // currentparent is still the removed node! we have to correct it
        OMContainerEx ex = ((OMContainerEx) lastNode.getParent());
        ex.setLastChild(lastNode);
        if (!(lastNode instanceof OMContainerEx)) {
          ex.buildNext();
        } else {
          ((OMNodeEx) lastNode).setNextOMSibling(null);
        }

      } else {
        OMElement parent = (OMElement) element.getParent();
        if (parent == null) {
          throw new OMException();
        }
        ((OMContainerEx) parent).setFirstChild(null);
        lastNode = parent;
      }

    } catch (OMException e) {
      throw e;
    } catch (Exception e) {
      throw new OMException(e);
    }
    // when an element is discarded the element index that was incremented
    // at creation needs to be decremented !
    elementLevel--;
  }
Example #5
0
  protected static Pair<Filter, ConstraintLanguage> parseConstraint(
      XMLAdapter adapter, OMElement omQueryElement) {
    Pair<Filter, ConstraintLanguage> pc = null;
    if (omQueryElement != null
        && new QName(CSWConstants.CSW_202_NS, "Constraint").equals(omQueryElement.getQName())) {
      Version versionConstraint =
          adapter.getRequiredNodeAsVersion(omQueryElement, new XPath("@version", nsContext));

      OMElement filterEl = omQueryElement.getFirstChildWithName(new QName(OGCNS, "Filter"));
      OMElement cqlTextEl = omQueryElement.getFirstChildWithName(new QName("", "CQLTEXT"));
      if ((filterEl != null) && (cqlTextEl == null)) {

        ConstraintLanguage constraintLanguage = ConstraintLanguage.FILTER;
        Filter constraint;
        try {
          // TODO remove usage of wrapper (necessary at the moment to work around problems
          // with AXIOM's

          XMLStreamReader xmlStream =
              new XMLStreamReaderWrapper(filterEl.getXMLStreamReaderWithoutCaching(), null);
          // skip START_DOCUMENT
          xmlStream.nextTag();

          if (versionConstraint.equals(new Version(1, 1, 0))) {

            constraint = Filter110XMLDecoder.parse(xmlStream);

          } else if (versionConstraint.equals(new Version(1, 0, 0))) {
            constraint = Filter100XMLDecoder.parse(xmlStream);
          } else {
            String msg =
                Messages.get(
                    "CSW_FILTER_VERSION_NOT_SPECIFIED",
                    versionConstraint,
                    Version.getVersionsString(new Version(1, 1, 0)),
                    Version.getVersionsString(new Version(1, 0, 0)));
            LOG.info(msg);
            throw new InvalidParameterValueException(msg);
          }
        } catch (XMLStreamException e) {
          String msg =
              "FilterParsingException: There went something wrong while parsing the filter expression, so please check this!";
          LOG.debug(msg);
          throw new XMLParsingException(adapter, filterEl, e.getMessage());
        }
        pc = new Pair<Filter, CSWConstants.ConstraintLanguage>(constraint, constraintLanguage);
      } else if ((filterEl == null) && (cqlTextEl != null)) {
        String msg = Messages.get("CSW_UNSUPPORTED_CQL_FILTER");
        LOG.info(msg);
        throw new NotImplementedError(msg);
      } else {
        String msg = Messages.get("CSW_MISSING_FILTER_OR_CQL");
        LOG.debug(msg);
        throw new InvalidParameterValueException(msg);
      }
    }
    return pc;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (org.pahospital.www.labservice.LabOrder.class.equals(type)) {

        return org.pahospital.www.labservice.LabOrder.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.pahospital.www.labservice.LabOrderId.class.equals(type)) {

        return org.pahospital.www.labservice.LabOrderId.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (org.wso2.carbon.throttling.manager.services.ExecuteThrottlingRules.class.equals(type)) {

        return org.wso2.carbon.throttling.manager.services.ExecuteThrottlingRules.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.throttling.manager.services.MultitenancyThrottlingServiceException.class
          .equals(type)) {

        return org.wso2.carbon.throttling.manager.services.MultitenancyThrottlingServiceException
            .Factory.parse(param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
Example #8
0
  /** Simulate creating a SOAP 1.2 message when the business object provided is the full message. */
  public void testCreateSoap12FromMessage() throws Exception {
    // Create a SOAP 1.2 Message
    MessageFactory mf = (MessageFactory) FactoryRegistry.getFactory(MessageFactory.class);

    // Get the BlockFactory
    XMLStringBlockFactory f =
        (XMLStringBlockFactory) FactoryRegistry.getFactory(XMLStringBlockFactory.class);

    // Create a Block using the sample string as the content.  This simulates
    // what occurs on the outbound JAX-WS dispatch<String> client
    Block block = f.createFrom(sampleSoap12Envelope, null, null);

    // Create a Message with the full XML contents that we have
    Message m = mf.createFrom(block.getXMLStreamReader(true), null);

    // Assuming no handlers are installed, the next thing that will happen
    // is a XMLStreamReader will be requested...to go to OM.   At this point the
    // block should be consumed.
    OMElement om = m.getAsOMElement();

    // To check that the output is correct, get the String contents of the
    // reader
    Reader2Writer r2w = new Reader2Writer(om.getXMLStreamReaderWithoutCaching());
    String newText = r2w.getAsString();
    TestLogger.logger.debug(newText);
    assertTrue(newText.contains(sampleText));
    assertTrue(newText.contains("soap"));
    assertTrue(newText.contains("Envelope"));
    assertTrue(newText.contains("Body"));

    assertTrue(m.getProtocol().equals(Protocol.soap12));

    SOAPEnvelope omSoapEnv = (SOAPEnvelope) m.getAsOMElement();
    OMNamespace ns = omSoapEnv.getNamespace();
    assertTrue(ns.getNamespaceURI().equals(SOAP12_NS_URI));

    // The block should be consumed at this point
    assertTrue(block.isConsumed());
  }
Example #9
0
 /**
  * Creates a {@link XMLStreamReader} out of an {@link OMElement}
  *
  * @param omElement the omElement to convert, never <code>null</code>
  * @return the omElement as {@link XMLStreamReader} the START_DOCUMENT node is skipped, never
  *     <code>null</code>
  * @throws XMLStreamException if an error occurred creating the {@link XMLStreamReader}
  */
 public static XMLStreamReader getAsXmlStrem(OMElement omElement) throws XMLStreamException {
   XMLStreamReader bodyXmlStream = omElement.getXMLStreamReaderWithoutCaching();
   skipStartDocument(bodyXmlStream);
   return bodyXmlStream;
 }
Example #10
0
 /**
  * Creates a new OMElement from the given element and build it and return.
  *
  * @param result The object to be cloned and built
  * @return The new cloned and built OMElement
  */
 public static OMElement cloneAndReturnBuiltElement(OMElement result) {
   StAXOMBuilder builder = new StAXOMBuilder(result.getXMLStreamReaderWithoutCaching());
   result = builder.getDocumentElement();
   result.build();
   return result;
 }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (gsn.webservice.standard.GetVirtualSensorsDetails.class.equals(type)) {

        return gsn.webservice.standard.GetVirtualSensorsDetails.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetVirtualSensorsDetailsResponse.class.equals(type)) {

        return gsn.webservice.standard.GetVirtualSensorsDetailsResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetNextData.class.equals(type)) {

        return gsn.webservice.standard.GetNextData.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetNextDataResponse.class.equals(type)) {

        return gsn.webservice.standard.GetNextDataResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.ListWrapperURLs.class.equals(type)) {

        return gsn.webservice.standard.ListWrapperURLs.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.ListWrapperURLsResponse.class.equals(type)) {

        return gsn.webservice.standard.ListWrapperURLsResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetLatestMultiData.class.equals(type)) {

        return gsn.webservice.standard.GetLatestMultiData.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetLatestMultiDataResponse.class.equals(type)) {

        return gsn.webservice.standard.GetLatestMultiDataResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.UnregisterQuery.class.equals(type)) {

        return gsn.webservice.standard.UnregisterQuery.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.UnregisterQueryResponse.class.equals(type)) {

        return gsn.webservice.standard.UnregisterQueryResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.CreateVirtualSensor.class.equals(type)) {

        return gsn.webservice.standard.CreateVirtualSensor.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.CreateVirtualSensorResponse.class.equals(type)) {

        return gsn.webservice.standard.CreateVirtualSensorResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetMultiData.class.equals(type)) {

        return gsn.webservice.standard.GetMultiData.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetMultiDataResponse.class.equals(type)) {

        return gsn.webservice.standard.GetMultiDataResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.RegisterQuery.class.equals(type)) {

        return gsn.webservice.standard.RegisterQuery.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.RegisterQueryResponse.class.equals(type)) {

        return gsn.webservice.standard.RegisterQueryResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetContainerInfo.class.equals(type)) {

        return gsn.webservice.standard.GetContainerInfo.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.GetContainerInfoResponse.class.equals(type)) {

        return gsn.webservice.standard.GetContainerInfoResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.ListVirtualSensorNames.class.equals(type)) {

        return gsn.webservice.standard.ListVirtualSensorNames.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.ListVirtualSensorNamesResponse.class.equals(type)) {

        return gsn.webservice.standard.ListVirtualSensorNamesResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.DeleteVirtualSensor.class.equals(type)) {

        return gsn.webservice.standard.DeleteVirtualSensor.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (gsn.webservice.standard.DeleteVirtualSensorResponse.class.equals(type)) {

        return gsn.webservice.standard.DeleteVirtualSensorResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (org.wso2.carbon.billing.mgt.services.GetOutstandingBalance.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetOutstandingBalance.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetOutstandingBalanceResponse.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetOutstandingBalanceResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetCurrentInvoice.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetCurrentInvoice.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetCurrentInvoiceResponse.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetCurrentInvoiceResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetPastInvoice.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetPastInvoice.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetPastInvoiceResponse.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetPastInvoiceResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.AddPayment.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.AddPayment.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.AddPaymentResponse.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.AddPaymentResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetAvailableBillingPeriods.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetAvailableBillingPeriods.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetAvailableBillingPeriodsResponse.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.GetAvailableBillingPeriodsResponse.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetPaginatedBalances.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetPaginatedBalances.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.GetPaginatedBalancesResponse.class.equals(type)) {

        return org.wso2.carbon.billing.mgt.services.GetPaginatedBalancesResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.class.equals(
          type)) {

        return org.wso2.carbon.billing.mgt.services.MultitenancyBillingServiceException.Factory
            .parse(param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }
  private java.lang.Object fromOM(
      org.apache.axiom.om.OMElement param, java.lang.Class type, java.util.Map extraNamespaces)
      throws org.apache.axis2.AxisFault {

    try {

      if (axis2.apache.org.xsd.GetTaskDescription.class.equals(type)) {

        return axis2.apache.org.xsd.GetTaskDescription.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.GetTaskDescriptionResponse.class.equals(type)) {

        return axis2.apache.org.xsd.GetTaskDescriptionResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.GetAllTaskDescriptions.class.equals(type)) {

        return axis2.apache.org.xsd.GetAllTaskDescriptions.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.GetAllTaskDescriptionsResponse.class.equals(type)) {

        return axis2.apache.org.xsd.GetAllTaskDescriptionsResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.IsContains.class.equals(type)) {

        return axis2.apache.org.xsd.IsContains.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.IsContainsResponse.class.equals(type)) {

        return axis2.apache.org.xsd.IsContainsResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.GetAllJobGroups.class.equals(type)) {

        return axis2.apache.org.xsd.GetAllJobGroups.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.GetAllJobGroupsResponse.class.equals(type)) {

        return axis2.apache.org.xsd.GetAllJobGroupsResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.EditTaskDescription.class.equals(type)) {

        return axis2.apache.org.xsd.EditTaskDescription.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.DeleteTaskDescription.class.equals(type)) {

        return axis2.apache.org.xsd.DeleteTaskDescription.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.LoadTaskClassProperties.class.equals(type)) {

        return axis2.apache.org.xsd.LoadTaskClassProperties.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.LoadTaskClassPropertiesResponse.class.equals(type)) {

        return axis2.apache.org.xsd.LoadTaskClassPropertiesResponse.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.AddTaskDescription.class.equals(type)) {

        return axis2.apache.org.xsd.AddTaskDescription.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

      if (axis2.apache.org.xsd.TaskAdminTaskManagementException.class.equals(type)) {

        return axis2.apache.org.xsd.TaskAdminTaskManagementException.Factory.parse(
            param.getXMLStreamReaderWithoutCaching());
      }

    } catch (java.lang.Exception e) {
      throw org.apache.axis2.AxisFault.makeFault(e);
    }
    return null;
  }