Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Complex Type – Return type of webservice
- This topic has 6 replies, 1 voice, and was last updated 7 years, 8 months ago by community-content.
-
AuthorPosts
-
-
October 16, 2008 at 1:57 PM #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
-
October 16, 2008 at 3:17 PM #20993
The complex type should be available after you add web reference under WebmessageType.
-
October 16, 2008 at 3:28 PM #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.
-
October 16, 2008 at 4:08 PM #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.
-
October 17, 2008 at 2:30 AM #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.
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.