BizTalk Utilities Xselerator XSLT IDE


Forum main page

Most active member

Login page
Register
Log out

Search page


Information Online

View our event calendar
Add general event such as an upcoming software release or conference
View all birthdays

Public image gallery
Upload your images in your profile

Profile editing page
Subscription list page
Address book page

Member list page
View the most active member
User groups listing

Private message page

TopXML Discussion Forum TopXML Discussion Forum

Forums  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

ESB Guidance and WCF routing

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [BizTalk Utilities] >> BizTalk 2004/2006 Utilities and Adapters >> ESB Guidance and WCF routing Page: [1]
Login
Message << Older Topic   Newer Topic >>
ESB Guidance and WCF routing - 26 July 2007   
cucciolo

 

Posts: 1
Score: 0
Joined: 26 July 2007
Status: offline
i'am looking for some simple samples or tutorials for routing WCF throughout the ESB.. is there any ? Every tutorial on net and in ESB documentation was asmx orientied...


i try something like this, but i have following problems :

in my Client's service reference i added OnRampServices.WCF reference, and i wrote in Main method next lines :

using (Microsoft_Practices_ESB_Pipelines_Test_ReceiveClient client = new Microsoft_Practices_ESB_Pipelines_Test_ReceiveClient("WSHttpBinding_ITwoWayAsync"))
           {
               client.ClientCredentials = new System.Net.NetworkCredential(Properties.Settings.Default.user, Properties.Settings.Default.pass);
               EsbSoapHeaders headers = new EsbSoapHeaders();
               headers.EndpointAddress = "http://localhost/Account/ESBTest/";
               headers.ProcessingInstruction = "ROUTE";
               headers.Itinerary = "ROUTE";


               try
               {
                   object some = new object();
                   client.Receive(headers, ref some);
                   Console.ReadLine();
               }
               catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadLine(); }
           }



first problem is with Credentials , i got nex message when i started debugging :
"Error    2    Cannot implicitly convert type 'System.Net.NetworkCredential' to 'System.ServiceModel.Description.ClientCredentials'    C:\Programming\BizTalkESB\Projects\ESBClient02\ConsoleApplication1\ConsoleApplication1\Program.cs    32    44    ConsoleApplication1
"

and next one and major problem is with method Receive. Second pharameter is ref part, i don't know what that is infact, type is object, and where i can send my message for routing ???


regards

Rastko
Post #: 1
RE: ESB Guidance and WCF routing - 27 December 2007   
RyanElee

 

Posts: 16
Score: 0
Joined: 20 August 2007
Status: offline
Rastko,

Both of these problems due to you set a unexpected type
The first one you set a NetworkCredential type to the client which expect ClientCredential type.The second one you should pass a xml document to the parameter.
Because of the ESB guidance publish each agent as a asmx or WCF service, and it include a soap header and a parameter which type is XLANGs.BaseTypes.Any.The soap header store those info such as process instruction and address of end point etc, and the message body as a parameter to be passed into. So for the type of XLANGs.BaseTypes.Any you need to pass a xml doucment to the second parameter.

Regards,

(in reply to cucciolo)
Post #: 2
Page:   [1]
All Forums >> [BizTalk Utilities] >> BizTalk 2004/2006 Utilities and Adapters >> ESB Guidance and WCF routing Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



Email TopXML

Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.391