Problem with Mapping Message Schema

Home Page Forums BizTalk 2004 – BizTalk 2010 Problem with Mapping Message Schema

Viewing 1 reply thread
  • Author
    Posts
    • #22883

      Hi, I use the BizTalk 2006 R2 consumes the web service like

      public string send_info_to(string peopleid, string fname, string lname, int age)

      {

          ………..

      }

      when I add it to be a port type, I can see all parameters of this web method.

      But when I created the map and select the source schema, I cannot get it (I mean that I wanna map the web method parameters to the other message schema).

      Please advise me, and thank you for advance…

      Kai

       

    • #22884

      The problem here is the method signature, because you are pssing a number of primitive types a schema is not created. Your Biztalk message is a multipart message with 4 simple parts. You cannot use a map to construct the message. In a message assignment shape use this code:

      Message.peopleid = stringVariable;
      Message.fname = stringFname;
      Message.lname = stringLname;
      Message.age = intAge;

      Althernatively you can construct a complex object in your web service
      e.g.

      class Person
      {
          public string id;
          public string fname;
          public string lname;
          public int age;
      }

      class Response
      {
         public string responsetype;
      }

      public Response send_info_to(Person person)
      { ….
      }

       

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