RE: [BizTalker] XLANG Error- 'You must to implement Add(System.Object) method'


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
    • From: Sachin Kulkarni
    • Subject: RE: [BizTalker] XLANG Error- 'You must to implement Add(System.Object) method'
    • Date: Fri, 20 May 2005 09:28:30 +1000

    Israel,

     

    I think it’s related to Array types being used in Web Services. It’s a known issue and if I remember correctly the workaround was to create a separate .NET assembly that calls this web services. Invoke that assembly from your orchestration instead of direct Web Services binding. I don’t remember the exact underlying cause but I guess it’s related to basic SOAP level serialisation of collection objects.

     

    Sachin

     


    From: biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx [mailto:biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of ISRAEL ANDRES LASO
    Sent: Friday, 20 May 2005 1:58 AM
    To: BizTalker@xxxxxxxxxxxxxxxxxxxxxx
    Subject: RE: [BizTalker] XLANG Error- 'You must to implement Add(System.Object) method'

     

    Hello Bill,

    ok, this is the wsdl for my web service(in the end I have put a instance for the parameter 'msg_Empleado' [parameter of the web method]) :

     

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:s1="
    http://LemonaSchemas.IncidenciasNomina_Out" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="
    http://tempuri.org/">
          <s:import namespace="
    http://LemonaSchemas.IncidenciasNomina_Out" />
          <s:element name="ImportarIncidencias">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" ref="s1:msg_Empleado" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="ImportarIncidenciasResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="ImportarIncidenciasResult" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
        </s:schema>
        <s:schema elementFormDefault="qualified" targetNamespace="
    http://LemonaSchemas.IncidenciasNomina_Out">
          <s:element name="msg_Empleado" type="s1:Empleado" />
          <s:complexType name="Empleado">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="Incidencia" type="s1:EmpleadoIncidencia" />
            </s:sequence>
            <s:attribute name="codigo" type="s:string" />
            <s:attribute name="fecha" type="s:string" />
          </s:complexType>
          <s:complexType name="EmpleadoIncidencia">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="Cantidad" type="s:string" />
            </s:sequence>
            <s:attribute name="codigo" type="s:string" />
          </s:complexType>
        </s:schema>
      </wsdl:types>
      <wsdl:message name="ImportarIncidenciasSoapIn">
        <wsdl:part name="parameters" element="tns:ImportarIncidencias" />
      </wsdl:message>
      <wsdl:message name="ImportarIncidenciasSoapOut">
        <wsdl:part name="parameters" element="tns:ImportarIncidenciasResponse" />
      </wsdl:message>
      <wsdl:portType name="WSIncidenciasNominaSoap">
        <wsdl:operation name="ImportarIncidencias">
          <wsdl:input message="tns:ImportarIncidenciasSoapIn" />
          <wsdl:output message="tns:ImportarIncidenciasSoapOut" />
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="WSIncidenciasNominaSoap" type="tns:WSIncidenciasNominaSoap">
        <soap:binding transport="
    http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="ImportarIncidencias">
          <soap:operation soapAction="
    http://tempuri.org/ImportarIncidencias" style="document" />
          <wsdl:input>
            <soap:body use="literal" />
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal" />
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="WSIncidenciasNomina">
        <documentation xmlns="
    http://schemas.xmlsoap.org/wsdl/" />
        <wsdl:port name="WSIncidenciasNominaSoap" binding="tns:WSIncidenciasNominaSoap">
          <soap:address location="
    http://webservices:8088/WSIncidenciasNominaMensuales/WSIncidenciasNominaMensuales.asmx" />
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>

     

    Instance of msg_Empleado:

    <?xml version="1.0" encoding="ISO-8859-1" ?>

        <ns0:IncidenciasMensuales mes="02/2005" xmlns:ns0="http://LemonaSchemas.IncidenciasNomina_In">

           <Empleados>

                <ns1:Empleado codigo="580001/1" fecha="" xmlns:ns1=http://LemonaSchemas.IncidenciasNomina_Out>

                 <Incidencia codigo="130">

                    <Cantidad>666</Cantidad>

           </Incidencia>

                <Incidencia codigo="9000">

                  <Cantidad>0,01</Cantidad>

          </Incidencia>

          <ns1:Empleado codigo="580001/1" fecha="" xmlns:ns1=http://LemonaSchemas.IncidenciasNomina_Out />

     ...more elements...

    ...

    ...


    thanks,

     

    Israel.

     

     


    De: biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx en nombre de Bill Chesnut
    Enviado el: jue 19/05/2005 15:39
    Para: BizTalker@xxxxxxxxxxxxxxxxxxxxxx
    Asunto: RE: [BizTalker] XLANG Error- 'You must to implement Add(System.Object) method'

    Israel,

     

    Is it possible for you to post to the list the wsdl for the web service that your are trying to call from BizTalk?

     

    Bill Chesnut

    Readify - Senior Consultant
    M: +61 0404 063 648


    From: biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx [mailto:biztalkerlist@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of ISRAEL ANDRES LASO
    Sent: Thursday, 19 May 2005 10:07 PM
    To: BizTalker@xxxxxxxxxxxxxxxxxxxxxx
    Subject: [BizTalker] XLANG Error- 'You must to implement Add(System.Object) method'

     

    Hello,
    i need help with a problem.
    I have orchestation where I consume a Web service. In the orchestation I have a 'Construct Message Shape' where I assign a source message to a target message(this last is a web message of mi web service).

     

    When the message is completed I call to the asp.net web service with this web message like parameter.

    But when I start the orchestation do not nothing and  i find this error in Event Log:

     

    Tipe: XLANG/s

    Description: You must to implement the method Add(System.Objetc) in LemonaSchemas.webservices.WSIncidenciasNomina_.ImportarIncidencias_request  because it inherits from IEnumerable.

     

    Exception type: InvalidOperationException
    Source: System.Xml
    Target Site: System.Type GetEnumeratorElementType(System.Type)
    Help Link:
    Additional error information:

     

    The asp.net Web service not is invoked(the IIS´s logs are in blank)

     

    regards and thanks,

     

    Israel Andrés.



    --
    Confidential: This email is intended only for the person or entity to which it is addressed. The information contained in this email may be confidential and privileged. Any retransmission, review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please let us know by reply and destroy all copies of it. Thank you. to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net



    (Click here for more information on the biztalkers mailling list)