Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

Re: Declare array in "Message assignment"

BizTalk 2006 R2

This group is for all content related to BizTalk Server 2006 R2. This includes a forum, samples, and videos. Most of the content here also applies to other versions of BizTalk beyond 2006 R2.

Declare array in "Message assignment"

  • rated by 0 users
  • This post has 20 Replies |
  • 1 Follower
  • I think you are assigning the int array from the helper class to the wrong thing.  You really need to examine the structure of the web service request message and pay close attention to the field types.  If you type a dot on the end of "Msg_Request.DebiteringsunderlagsId", do you see any additional field names?

    -Russell Waltz

  • I didnt notice that your response was on the second page. Smile
    This a part of the wsdl file of HamtaStatus

    <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://debiteringsunderlag.se/">
          <s:element name="hamtaStatus">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="DebiteringsunderlagsId" type="tns:ArrayOfInt" />
                <s:element minOccurs="1" maxOccurs="1" name="KallaID" type="s:int" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="ArrayOfInt">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int" />
            </s:sequence>
          </s:complexType>
          <s:element name="hamtaStatusResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="hamtaStatusResult" type="tns:Status" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="Status">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="1" name="underlag" type="tns:ArrayOfUnderlag" />
            </s:sequence>
          </s:complexType>
          <s:complexType name="ArrayOfUnderlag">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="underlag" nillable="true" type="tns:underlag" />
            </s:sequence>
          </s:complexType>
          <s:complexType name="underlag">
            <s:sequence>
              <s:element minOccurs="1" maxOccurs="1" name="DebiteringsunderlagsID" type="s:int" />
              <s:element minOccurs="1" maxOccurs="1" name="StatusID" type="s:int" />
              <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="Meddelande" type="s:string" />
            </s:sequence>
          </s:complexType>

    This is what I can found on when surfing to web of HamtaStatus
    POST /duws/du.asmx HTTP/1.1
    Host: sesoaw252
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://debiteringsunderlag.se/hamtaStatus"

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <hamtaStatus xmlns="http://debiteringsunderlag.se/">
          <DebiteringsunderlagsId>
            <int>int</int>
            <int>int</int>
          </DebiteringsunderlagsId>
          <KallaID>int</KallaID>
        </hamtaStatus>
      </soap:Body>
    </soap:Envelope>

    Edit
  •  I didnt notice that your response was on the second page. Smile
    This a part of the wsdl file of HamtaStatus

    <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://debiteringsunderlag.se/">
          <s:element name="hamtaStatus">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="DebiteringsunderlagsId" type="tns:ArrayOfInt" />
                <s:element minOccurs="1" maxOccurs="1" name="KallaID" type="s:int" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="ArrayOfInt">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int" />
            </s:sequence>
          </s:complexType>
          <s:element name="hamtaStatusResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="hamtaStatusResult" type="tns:Status" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="Status">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="1" name="underlag" type="tns:ArrayOfUnderlag" />
            </s:sequence>
          </s:complexType>
          <s:complexType name="ArrayOfUnderlag">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="underlag" nillable="true" type="tns:underlag" />
            </s:sequence>
          </s:complexType>
          <s:complexType name="underlag">
            <s:sequence>
              <s:element minOccurs="1" maxOccurs="1" name="DebiteringsunderlagsID" type="s:int" />
              <s:element minOccurs="1" maxOccurs="1" name="StatusID" type="s:int" />
              <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="Meddelande" type="s:string" />
            </s:sequence>
          </s:complexType>

    Edit
  • This is what I found on when surfing to web of HamtaStatus

    POST /duws/du.asmx HTTP/1.1
    Host: sesoaw252
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://debiteringsunderlag.se/hamtaStatus"

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <hamtaStatus xmlns="http://debiteringsunderlag.se/">
          <DebiteringsunderlagsId>
            <int>int</int>
            <int>int</int>
          </DebiteringsunderlagsId>
          <KallaID>int</KallaID>
        </hamtaStatus>
      </soap:Body>
    </soap:Envelope>

    Edit
  •  If I type a dot at the end of "Msg_Request.DebiteringsunderlagsId" I dont see any additional field names

    Edit
  •  Sorry about the double post

    Edit
Page 2 of 2 (21 items) 12