Error invoking WCF Service from orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Error invoking WCF Service from orchestration

Viewing 2 reply threads
  • Author
    Posts
    • #25106

      Hi,

      I’ve configured a WCF service that is hosted in IIS and am using WCF-Http adapter to communicate to the Service in an orchestration. The service takes a value and returns another value.

      The error I am getting is –

      Content Type text/xml; charset=utf-8 was not supported by service http://localhost/BrokerService/Service1.svc.  The client and service bindings may be mismatched. —> System.Net.WebException: The remote server returned an error: (415) Cannot process the message because the content type ‘text/xml; charset=utf-8’ was not the expected type ‘application/soap+xml; charset=utf-8’..
         at System.Net.HttpWebRequest.EndGetResponse(

      Any pointers on how to fix this?

    • #25110

      Hey,

      How  do you build your outgoing message to your WCF? Is it by generating schemas from MEX?

      The error is that message you try to send to your WCF cannot be serialized by schema type your WCF expects. Some namespace, or something – is wrong in your outgoing message and WCF does not understand it.

       

      • #25128

        Hi,

        Thanks for the reply.

        I’ve managed to get it working now.

        For starters I was using the incorrect adapter, had to use WSHttp instead of basicHttp.

        Then I wasn’t correctly using the artifacts generated by the WCF Adapter wizard.

        Regards

        Tony

    • #50221
      biztalkgurus

        Labrador by Kathryn Davis · 9780618075423

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