BizTalk Server WCF Receive Port (WCF-Custom) – usupported operation

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk Server WCF Receive Port (WCF-Custom) – usupported operation

Viewing 1 reply thread
  • Author
    Posts
    • #21082

      I have question related to WCF Receive port.   I have created a WCF-Custom Receive port with ‘BizTalkServerApplication’ as the Receive Handler – configured with Uri, behavior to generate metadata etc…  everything as documented but when I try to access the service from a client that references the service, the following code, throws an exception,

       

      BizTalkServiceInstance.

      TwoWayAsyncVoidClient client = new BizTalkServiceInstance.TwoWayAsyncVoidClient();

      Message newMsg = Message.CreateMessage(MessageVersion.Default, “BizTalkSubmit”, “Testing”

      );client.BizTalkSubmit(newMsg);

      I get an exception that BizTalkSubmit is not implemented.

       

      How can the service (the Receive port) be accessed from the client? All I need is a WCF receive port to which I can pass messages to from a WCF client.  Do not want to define schemas/orchestrations in BizTalk to do that. Just a pass through receive port that allows communication with a WCF client?? Why is all this so complicated Microsoft????

    • #21084

      Which WCF binding are you using?  How did you create your proxy?  The easiest way to submit a message to BizTalk via WCF would probably be to run the WCF publishing wizard (publish schema) and then use svcutil to generate a proxy.  You don’t need to create a schema to publish, just publish the Microsoft.BizTalk.XLANGs.BaseTypes.Any type in the DLL: C:\Program Files\Microsoft BizTalk Server 2006\Microsoft.BizTalk.XLANGs.BaseTypes.

      • #21098

         Thank you Rusel.  On the receive location used the wsHttpBinding, proxy was created by adding a service reference in the client. I am going to try your suggestion on using the WCF publishing wizard and as I really do not want to tie any schema will try your suggestion on using ‘BaseTypes.Any’ type.   Hopefully,  I don’t have any problems there.  If there’s some link/resources you can point me it’s much appreciated. 

      • #21123

         Russell,

                 I was able to create a recieve location (with single operation SendMessage) using Microsoft.BizTalk.XLANGs.BaseTypes.Any using the WCF service publish wizard.  In the proxy the service operation is exposed as SendMessage(object part)   and when I call the operation get an serialization exception –  looks like I am not passing in the parameters correctly to the operation. 

         

         

        XmlDocument

        doc = new XmlDocument

        ();doc.Load(

        “c:\\mydoc.xml”);

        Message newMsg = Message.CreateMessage(MessageVersion.Default,“SendMessage”, new XmlNodeReader(doc));

        client.SendMessage(newMsg);

        I get an “Error processing request:Type ‘System.ServiceModel.Channerls.BodyWriterMessage’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its mermbers you want seralized with the DataMemberAttribute attribute…

        Any help is appreciated.  I am at a standstill as I am still new to BizTalk and the WCF integration with BizTalk.

        Sarah

         

         

        • #21564

          Hi Sarah, Did you get this resolved? I am having the same issue.

          Anna

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