Talk About Network

Google





Software > Biz Talk Orchestration > Re: Declare arr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 4142 of 4234
Post > Topic >>

Re: Declare array in "Message assignment"

by "Yossi Dahan [MVP]" <yossi.dahan@[EMAIL PROTECTED] > Jul 3, 2008 at 07:15 AM

On the BizTalk side, as messages are generally represented as xmls, in
order 
to provide the array parameter I believe you will need to construct a 
message part that describes the array XML and assign that to the relevant 
web-message part

if you have a web method that looks like that -
        [WebMethod]
        public string HelloWorld(int[] numbers)
        {
            return "Hello World";
        }

and you browse to the example page, you can see the format of the request 
required -

<?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>
    <HelloWorld xmlns="http://tempuri.org/">
      <numbers>
        <int>int</int>
        <int>int</int>
      </numbers>
    </HelloWorld>
  </soap:Body>
</soap:Envelope>

Hope this helps

Yossi Dahan

"Tru Life" <Tru Life@[EMAIL PROTECTED]
> wrote in message 
news:127ABBAC-871F-46FF-B728-D2FEA5637B84@[EMAIL PROTECTED]
>I am calling a webservice that has a parameter that it takes int[]
> How can I declare an array in a message assignment and add declared
array
> from a schemad valua that has been distinguished promoted and the value
is
> Data type int.
>
> I cant even declare a array in a "Message assignment" using this code
> System.Int32[] id = { 71486};
>
> But I can declare this is in Windows application
>
> Anyone please help me
 




 3 Posts in Topic:
Declare array in "Message assignment"
=?Utf-8?B?VHJ1IExpZmU=?=   2008-06-30 05:55:00 
Re: Declare array in "Message assignment"
Dan Rosanova <dnova7@[  2008-07-01 08:21:56 
Re: Declare array in "Message assignment"
"Yossi Dahan [MVP]&q  2008-07-03 07:15:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 18:09:29 PST 2009.