WCF Service return null

Home Page Forums BizTalk 2004 – BizTalk 2010 WCF Service return null

Viewing 1 reply thread
  • Author
    Posts
    • #24098

      hey,

      I am working on Biztalk Server 2006 R2 using windows XP. I currently move to WCF and want to convert my old SOAP based services on WCF basic-http adapter.

      I have converted it. Deploy , export through wcf web publishing wizard, genarate metadata through svcutil.

      When I try to hit the services , service run fine, no errors but services suppose to return response XML in a string but it returen “null“. I have debugged my components, my services in HAT, everything is working fine but in the end when services sent response XML it converted to null at some point and i was getting “null” in a string.

      I use Pass Thu Transmit for Send pipeline.

      Can any one help me

       

    • #24160

      Hi Junaid,

      Do you have the WCF Tracing turned on? This issue can be difficult to debug without enabling tracing. You can follow this article on MSDN for enabling tracing http://msdn.microsoft.com/en-us/library/cc185303(BTS.10).aspx. Make sure you dont enable it on production servers and only the development servers 🙂

      Next I would like to suggest to use complex types instead of primitive types like strings, int etc. The issue would probably go away…
      You might find this thread useful on MSDN. The user has the same issue with the string and when he uses the typed messages he gets the response message. I doubt it has something to do with serialization and I dont agree with this reason which he is giving.
      http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/7e9adc00-d1ab-4a71-835f-4879600fcf02

      Enable the tracing and see what you get. The configurations and hosting of the service is fine.

      Thanks
      Abdul Rafay
      http://abdulrafaysbiztalk.wordpress.com
      MVP & MCTS BizTalk Server

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