Consuming Web Method that has a strongly-typed dataset as a parameter

Home Page Forums BizTalk 2004 – BizTalk 2010 Consuming Web Method that has a strongly-typed dataset as a parameter

Viewing 1 reply thread
  • Author
    Posts
    • #16520

      When I try to add a web reference to a web service that has a web method with a stronly-typed dataset as a parameter the add fails with the following error.

       The type 'BizTalkTest1/localhost/DataSet3' already contains a definition for 'ConversationsRowChangeEventHandler' where 'Conversations' is the name of the root-node (table) of the dataset.

       Has anyone else encountered errors with strongly typed dataset parameters?

      Is there a work-around for this problem?

    • #16522

      Hey there,

       I know there are issues are issues with consuming datasets in web services, but found this in the Help documentation …

       Using TypedDataSets as parameters to Web methods

      The following is what you need to do to support using TypedDataSets as parameters to Web methods:

      1. Add the Web reference to a C# project and then generate the proxy.
      2. Create a SOAP send port and specify the proxy on the send port and choose the method.
      3. In the orchestration, define a late bound port and define the message types. For most cases where no property promotion or distinguished field access is needed, the type can be defined as XMLDocument. Select PassThrough pipelines with this type.
      4. In BizTalk Server Administration console, in the Web Service tab in the SOAP Transport Properties dialog box of the SOAP send port, specify that you want to use that proxy that you created. You will also need to specify assembly, type, and method. For more information, see SOAP Transport Properties Dialog Box, Web service Tab.
Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.