Consuming WS, return complex type

Home Page Forums BizTalk 2004 – BizTalk 2010 Consuming WS, return complex type

Viewing 1 reply thread
  • Author
    Posts
    • #14437

      You will need to use property promotion, distinguished fields or the xpath function.

      The first two options require you to edit the schema file that can be found in the [b:fb82feeda7]Web References[/b:fb82feeda7] of your project. You will need to do this manual edit everytime you update the web reference. You will also need to use the XmlReceive pipeline to promote/write these fields into the message context.

      The xpath function is the simplest
      [code:1:fb82feeda7]variable = xpath(webservicemessage, \"xpath string\");[/code:1:fb82feeda7]

    • #14438

      If you expand the [b:6ba9be1f38]Web References[/b:6ba9be1f38] of your project you should find the schema that Biztalk creates when you add the web reference. This schema can be editted as long as you do not change the structure, so promoting properties and adding distinguished fields works.
      The down side of this is you have to re-apply any changes if you update the web reference.

      You can use this schema file to help with the xpath function. If you open the schema file and select the node of interest, you can copy the Instance Xpath property and use this as the [i:6ba9be1f38]\”xpath string\”[/i:6ba9be1f38] in the xpath example shown previously

      • #14439

        Here is a whitepaper on Biztalk 2006 BAM
        [url]http://www.microsoft.com/biztalk/techinfo/whitepapers/bts2k6_bamwp.mspx[/url]

        There is a webcast on April 6th on BAM, it would probably be best to read the white paper first.

        [url]http://www.microsoft.com/events/series/msdnbpi.mspx[/url]

        • #14440

          Hi ALL,

          I have some WS that as response return complex type (MyClass) that have 2 public fields.

          when calling to this WS from an orchestration and passing to it message everything works, however while response come , after this i can’t to get value from messages field sthat returned.

          How can i to perfom it???

          Thanks in advance.

          • #14441

            TNX 4 replay,

            however i can’t use property promotion cause actually i don’t have such xsd cause it from WS, or i’m missing something.
            I add message type of type that return my WS.
            and in recieve shape i congifured this message, and now i need to check some field from these message, i wolud like to do promotion property but how??
            I’m newbie in BizTalk, so sorry for m,aybe stupid question..

            Thank in advance.

            • #14442

              thank u very much,

              now everything clear, with your help i solved this issue.

              By the way where can i find some stuff regarding the BAM for BizTalk 2006. Every stuff that found was something like \”we improoved … we add new portal \” and that all, but real example or some deap stuff i can’t find, aslo i don’t have any experience with BAM from the later version (BTS 2004)

              thnks in advance.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.