Complex Type – Return type of webservice

Home Page Forums BizTalk 2004 – BizTalk 2010 Complex Type – Return type of webservice

Viewing 1 reply thread
  • Author
    Posts
    • #20991

       Hi,

      I have a webservice in which the webmethod returns a complex type defined by the people who supplies me the webservice. Now I have to use the response from the webservice inside my orchestration.

      I can’t get that complex type in my Orchestration right.. to set the message type.

      So as i don’t understand the complex type defined by them should I ask them to send me in some xml document format.. I am not sure how to proceed actually

       

    • #20993

       The complex type should be available after you add web reference under  WebmessageType.

      • #20994

         Cool. Thanks, OK, Now I need to map the elements between the wsdl xsd with another xsd. There is filed called Employee Info which includes First Name, Lst Name etc.. This element is unbounded in schema so it will be infinite. How can map such elements.

        • #20995

          Wait!  This is an R2 forum, so I assume you have the WCF adapters.  Don’t use SOAP, use WCF-BasicHttp.  It is much more flexible than the SOAP adapter, has fewer bugs, and causes less confusion and frustration.  Here is a walkthrough:  http://msdn.microsoft.com/en-us/library/bb246019.aspx

          That said, you still need to map the Employee Info over.  The node in the source schema is unbounded so the node in the destination schema will need to be unbounded as well.  First, try mapping the first name, last name, etc. over directly, just as you would if it were a maxoccurs=1 node.  The mapper will automatically generate an <xsl:foreach…> on the back end to handle the looping.  Test the map.  If the looping is not working correctly, then try adding a looping functoid and connect it from the Employee Info node in the source to the Employee Info node in the destination.

          • #20998

            Rusel,

            I think I’m going to get you a t-shirt that reads: ‘BizTalk R2 Love-In! Don’t use SOAP, use WCF-BasicHttp!!’

            😉

            Nick.

            • #21002

              Can I just make one of my posts sticky?  It would really save me a lot of time…  [;)]

              • #21006

                 Have to agree with Russell, I have never used the SOAP adapter with R2. WCF rules 🙂

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