Biztalk Schema Metadata

Home Page Forums BizTalk 2004 – BizTalk 2010 Biztalk Schema Metadata

Viewing 1 reply thread
  • Author
    Posts
    • #14485

      I am working on creating an instance of a BizTalk schema from an ASP.NET page, so I can fill the schema with the data from my ASP page and them pass the schema into a BizTalk WS.

      Now, I am using the BPM solution as an example. It has a very straight-forward example of creating an instance of a schema.

      SouthridgeVideo_OrderBroker.CSR_OrderRequest orderRequest = new SouthridgeVideo_OrderBroker.CSR_OrderRequest();

      I am doing the same thing in my page, the same way Ive done this before…

      CTS.BizTalk.LoanProcessing.Schemas.LoanImages dsLoanImages = new CTS.BizTalk.LoanProcessing.Schemas.LoanImages();

      Here is where the issue is. In the BPM example, each child record is instanciated,

      orderRequest.RequestHeader = new SouthridgeVideo_OrderBroker.CSR_OrderRequestRequestHeader();

      When I try and do the same thing with my child records, I do not see any of the Child record that I can instanciate. After doing a little investigation, I found the following information in the metadata file.

      public sealed class LoanImages : SchemaBase
      {
      public LoanImages();

      protected override object RawSchema { get; set; }
      public override string[] RootNodes { get; }
      public override string XmlContent { get; }
      }

      The BPM example has the following metatdata

      public class CSR_OrderRequest
      {
      public CSR_OrderRequest();

      public CSR_OrderRequestHeader Header { get; set; }
      public CSR_OrderRequestRequestHeader RequestHeader { get; set; }
      public CSR_OrderRequestRequestInfo RequestInfo { get; set; }
      }

      My question to all BizTalkers out there is, how do I enable my schema to be used by ASP.NET page and allow me to fill the schema with data and pass it into a Web Service.

      Is there anything I am missing?

      Is there a way to edit the schema metadata?

      Any and all help would be appriciated.

      Thanks in advance!

      Here is my question?

    • #14486

      In Biztalk the Xml schema is just the definition of a message, not the message itself.
      The only places the schema is used at runtime is by the Xml Validator component, and the Flat File DASM and ASM where the schema extensions are used by the parser and serializer.

      It is used indirectly for message typing where the root node name and target namespace are used.

      It is also used by a web service to convey message format/structure information to the client.

      To access Biztalk via a web service you must first publish the schema or orchestration as a web service using the wizard. This is a design time function that creates a web service project that can be hosted in IIS.

      From the client you need to add a web reference by importing the WSDL file or referencing the Url of the web service. Visual Studio will take the WSDL info and create the necessary components that enable you to call the web service.
      You should end up with classes similar to the BPM sample.

      Not sure how you got the LoanImages class that derives from SchemaBase. Microsoft.XLANGs.BaseTypes.SchemaBase is an internal Biztalk class used for manipulating schemas.

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