consuming a web service from orchestration

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › consuming a web service from orchestration

Viewing 0 reply threads
  • Author
    Posts
    • #18450

      Hi,

      I’m tyring to send to a web service and having trouble contructing the message.  First I tried a map but don’t see how to go about constructing the complete SOAP message as defined by the xsd:

       

        <?xml version=”1.0″ encoding=”utf-16″ ?>
        <xs:element name=”payloadManifest“ type=”tns:PayloadManifest“ />
      – <xs:complexType name=”PayloadManifest“>
      – <xs:sequence>
        <xs:element minOccurs=”0“ maxOccurs=”unbounded“ form=”unqualified“ name=”manifest“ type=”tns:Manifest“ />
        </xs:sequence>
        <xs:attribute name=”messageID“ type=”xs:ID“ />
        <xs:anyAttribute />
        </xs:complexType>
      – <xs:complexType name=”Manifest“>
        <xs:attribute name=”id“ type=”xs:ID“ />
        <xs:attribute name=”namespaceURI“ type=”xs:anyURI“ />
        <xs:attribute name=”element“ type=”xs:string“ />
        <xs:attribute name=”relatedID“ type=”xs:string“ />
        <xs:attribute name=”action“ type=”xs:anyURI“ />
        </xs:complexType>
        <xs:element name=”Manifest“ nillable=”true“ type=”tns:Manifest“ />
        <xs:element name=”Content“ nillable=”true“ type=”tns:Content“ />
      – <xs:complexType name=”Content“>
      – <xs:sequence>
        <xs:any minOccurs=”0“ maxOccurs=”1“ />
        </xs:sequence>
        <xs:attribute name=”id“ type=”xs:ID“ />
        <xs:anyAttribute />
        </xs:complexType>
        <xs:element name=”Payload“ nillable=”true“ type=”tns:Payload“ />
      – <xs:complexType name=”Payload“>
      – <xs:sequence>
        <xs:element minOccurs=”0“ maxOccurs=”unbounded“ form=”unqualified“ name=”content“ type=”tns:Content“ />
        </xs:sequence>
        <xs:attribute name=”messageID“ type=”xs:ID“ />
        <xs:anyAttribute />
        </xs:complexType>
        </xs:schema>
       
      I built a .net proxy, assigned the input message (passed as an orchestration input parameter) to system.xml.xmldocument vairable which I then assinged to the content element of the .Net proxy.  I then assigned the proxy to a message type for the web refence and try to send it.  The message looks correct but I’m getting this error:
       
      Type ‘System.Xml.XmlElement’ in Assembly ‘System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ is not marked as serializable. 
       
       This is the assignment code:

      m_Content = new Triad.Messaging.CarMax.Utilities.Content();

      m_Content.id = “content0”;

      m_AnyXml = Message_Request;

      m_Content.Any = m_AnyXml.DocumentElement;

      m_Payload = new Triad.Messaging.CarMax.Utilities.Payload();

      m_Payload.content = new Triad.Messaging.CarMax.Utilities.Content[1];

      m_Payload.content[0] = m_Content;

      Message_CarMaxSOAP.payload = m_Payload;

       
       
      And this is the (empty test) message that apears valid:
       
       
      <?xml version=”1.0″?> 
      <Payload xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>   
      <content id=”content0″>     
      <ProcessCreditDecision>       
      <ApplicationArea></ApplicationArea>       
      <DataArea>         
      <oa:Process acknowledge=”Always” confirm=”Never” xmlns:oa=”http://www.openapplications.org/oagis” />         
      <CreditDecision>          
      </CreditDecision>       
      </DataArea>     
      </ProcessCreditDecision>   
      </content> 
      </Payload>
Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.