コード例 #1
0
  public void doSerialize(java.lang.Object obj, XMLWriter writer, SOAPSerializationContext context)
      throws Exception {
    cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types.ActividadModel
        instance =
            (cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types
                    .ActividadModel)
                obj;

    myns2_string__java_lang_String_String_Serializer.setNullable(true);
    myns2_string__java_lang_String_String_Serializer.serialize(
        instance.getDescripcion(), ns1_descripcion_QNAME, null, writer, context);
    myns2_string__java_lang_String_String_Serializer.setNullable(true);
    myns2_string__java_lang_String_String_Serializer.serialize(
        instance.getCodigo(), ns1_codigo_QNAME, null, writer, context);
  }
  public void doSerialize(java.lang.Object obj, XMLWriter writer, SOAPSerializationContext context)
      throws Exception {
    cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types
            .GetListaComunaResponseElement
        instance =
            (cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types
                    .GetListaComunaResponseElement)
                obj;

    myns1_RetListaComuna__RetListaComuna_LiteralSerializer.setNullable(true);
    myns1_RetListaComuna__RetListaComuna_LiteralSerializer.serialize(
        instance.getResult(), ns1_result_QNAME, null, writer, context);
  }
  public void doSerialize(java.lang.Object obj, XMLWriter writer, SOAPSerializationContext context)
      throws Exception {
    cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types
            .RetListaTipoPersona
        instance =
            (cl.bicevida.core.model.services.ws.types.actualizadatos.fasetres.ws.param.types
                    .RetListaTipoPersona)
                obj;

    myns2_string__java_lang_String_String_Serializer.setNullable(true);
    myns2_string__java_lang_String_String_Serializer.serialize(
        instance.getMensajeRetorno(), ns1_mensajeRetorno_QNAME, null, writer, context);
    myns2_string__java_lang_String_String_Serializer.setNullable(true);
    myns2_string__java_lang_String_String_Serializer.serialize(
        instance.getCodigoRetorno(), ns1_codigoRetorno_QNAME, null, writer, context);
    if (instance.getListaTipoPersona() != null) {
      for (int i = 0; i < instance.getListaTipoPersona().length; ++i) {
        myns1_TipoPersonaModel__TipoPersonaModel_LiteralSerializer.setNullable(true);
        myns1_TipoPersonaModel__TipoPersonaModel_LiteralSerializer.serialize(
            instance.getListaTipoPersona()[i], ns1_listaTipoPersona_QNAME, null, writer, context);
      }
    }
  }
  public void doSerialize(java.lang.Object obj, XMLWriter writer, SOAPSerializationContext context)
      throws Exception {
    cl.bicevida.core.model.services.ws.proxy.oid.runtime
            .OidBasicWebServiceSoapHttp_findGroupsDnByFilter_RespS
        instance =
            (cl.bicevida.core.model.services.ws.proxy.oid.runtime
                    .OidBasicWebServiceSoapHttp_findGroupsDnByFilter_RespS)
                obj;

    // SOAP 1.2 - add rpc namespace, and add rpc:result and result element qname
    if (context.getSOAPVersion().equals(SOAPVersion.SOAP_12)) {
      writer.startElement(
          SOAPEnvelopeConstants.getSOAPEnvelopeConstants(SOAPVersion.SOAP_12).getQNameResult());
      if (ns1_result_QNAME.getNamespaceURI() != null
          && ns1_result_QNAME.getNamespaceURI().length() > 0) {
        writer.writeChars(
            writer.getPrefix(ns1_result_QNAME.getNamespaceURI())
                + ":"
                + ns1_result_QNAME.getLocalPart());
      } else {
        writer.writeChars(ns1_result_QNAME.getLocalPart());
      }
      writer.endElement(); // rpc:result
    }
    if (instance.getResult() != null) {
      myns3_stringArray__StringArray_LiteralSerializer.setNullable(false);
      cl.bicevida.core.model.services.ws.types.oidservices.utils.types.StringArray
          instanceGetResult_arrayWrapper =
              (instance.getResult() == null)
                  ? null
                  : new cl.bicevida.core.model.services.ws.types.oidservices.utils.types
                      .StringArray(instance.getResult());
      myns3_stringArray__StringArray_LiteralSerializer.serialize(
          instanceGetResult_arrayWrapper, ns1_result_QNAME, null, writer, context);
    }
  }