CSF with BizTalk

How CSF session talk with BizTalk 2006. I there is any code available for the same.

[93 byte] By [KumarNitesh] at [2008-1-9]
# 1

Hi,

Even though I can not point you a code sample, I can say that CSF 3.0 has a BizTalk WSE 3.0 Adapter
as part of deployment AFAIK.

Let me know if you have a more specific question

Thanks,

ibrahimdurmus-MSFT at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 2

I want to connect CSF session with BizTalk orchestration so that session can send message to biztalk where service logic are implemented in turn biztalk will send response to session. Please tell me what is the approach for this and how WSE 3.0 come into play here.

Thanks

KumarNitesh at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 3

BizTalk WSE 3.0 Adapter comes as part of CSF 3.0. When calling Web services, the Adapter for WSE provides the means to add Web service type definitions to BizTalk Projects and configuring send ports for calling Web services. When publishing BizTalk Web services, the Adapter for WSE provides a version of the BizTalk Web Services Publishing Wizard that creates Web services that utilizes the WSE 3.0 framework for Microsoft .NET.


You need to use a CallOrchestration and send/receive your message with your service.


Here is a similar scenario that leverages WSE adapter in an orchestration. Even though, it uses v2.0, the logic
is the same in the last version ( which is v3.0).
http://www.microsoft.com/technet/prodtechnol/biztalk/biztalk2004/planning/walkwse.mspx

This should address some of your questions. Please, let me know if this does not help

- Ibrahim DURMUS
http://www.ibrahimdurmus.com
http://blogs.msdn.com/ibrahim

# 4

Thanks Ibrahim,

I had tried to go through that walkthrough but the client application throws this error while compiling:

Error 1 The best overloaded method match for 'WSE_BizTalk_WalkThrough_BizTalk_Orchestration1_WSE_InPort.Operation_1(Microsoft.Web.Services2.SoapEnvelope)' has some invalid arguments

Error 2 Argument '1': cannot convert from 'WSE_WalkThrough_Client.localhost.Request' to

'Microsoft.Web.Services2.SoapEnvelope'

as I am novice in coding and web service area I am not able to debug this error please help me this regard.

The whole Client COde goes like this:

using System;

using System.Collections.Generic;

using System.Text;

using System.Web.Services;

using Microsoft.Web.Services2;

using System.Web;

using System.Xml.Serialization;

using WSE_WalkThrough_Client.localhost;

//using System.IO;

//using System.Runtime.Serialization;

//using System.Runtime.Serialization.Formatters.Binary;

namespace WSE_WalkThrough_Client

{

class Program

{

static void Main(string[] args)

{

Request req = new Request();

req.Name = "Joe";

req.Address = "Right here";

req.Age = "100";

WSE_BizTalk_WalkThrough_BizTalk_Orchestration1_WSE_InPort ws =

new WSE_BizTalk_WalkThrough_BizTalk_Orchestration1_WSE_InPort();

Response res = ws.Operation_1(req);

Console.WriteLine(res.Comment);

Console.ReadLine();

}

}

}

NIte at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 5

Hi Nite,

From the error you gave, it seems your proxy is unable to wrap your request as SoapMessage(to be more exact SoapEnvelope). Are you sure this is the right proxy?

Can you please delete this proxy and regenerate it. And re-add it to the project.One more thing, can you reference to Microsoft.Web.Services3.dll in your project rather than Microsoft.Web.Services2.dll .
[Remember that the docs was prepared for previous version of WSE]

After doing all these and try to to re-compile. Actually, I don't see any reason for not working.


Please, let me know if result doesn't change. Will be happy to help

- Ibrahim DURMUS
http://www.ibrahimdurmus.com
http://blogs.msdn.com/ibrahim

# 6

Thanks Ibrahim

I am using the same sample to have a try out on my machine here I am not using WSE 3.0. I had used WSE 2.0 only.

The problem its seem that is with proxy that I had generated because it doesnot show any Child element of request and response schema. I dont know why may be the probelm is with the webservice. I will try to publish orchestration as a web service once more and also generate the proxy again and let you know the result.

kr.Nitesh at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...