CompositeWPF/Prism EventAggregation Exception

Just a small reminded for myself. When you are using Publish/Subscribe EventAggregation mechanism provided by PRISM along with Unity to resolve types. It’s important to specify the Action method on subscribe to be public.

Example:

TextChangedEvent evt = eventAggregator.GetEvent<TextChangedEvent>();
           evt.Subscribe(OnSubscibeForNewText);

///

///

public void OnSubscibeForNewText(string payload)

If it’s not public, Unity will have issues resolving the type and you’ll see an exception as shown below

Attempt by method ‘Microsoft.Practices.Composite.Events.DelegateReference.TryGetDelegate()’ to access method ‘ModuleA.ViewModel.ModuleAView2VM.OnSubscibeForNewText(System.String)’ failed.

Nandri!

Saravana

Submit Your Solution for the Windows Azure Platform Partner of the Year Award


Are you a Microsoft partner who has built and delivered an innovative solution on the Windows Azure Platform? This year we’re showcasing more partner solutions than ever before at the Microsoft Worldwide Partner Conference (WPC) 2010 to be held in Washington, D.C.  July 11 – 15, 2010. Don’t miss this opportunity to get your innovative solution recognized with a Microsoft WPC 2010 Award!


Winning a Microsoft WPC Partner Award gives you valuable business advantage through public recognition from your peers, press, analysts, and your customers. This year, the WPC 2010 Awards Program is being expanded to showcase more partner solutions than ever, including the newly added Microsoft Country Partner of the Year award. Past winners have demonstrated significant customer impact, solution innovation, speed to market, deployment, and utilization of advanced features in Microsoft technologies and have optimized Microsoft technologies to meet customer business needs and exceed expectations.


Receive onsite acknowledgement at WPC 2010 and take advantage of a comprehensive marketing and press kit designed to help you attract prospects and gain new customers. Click here for more information and find out how to submit your entry to become the Windows Azure Platform Partner of the Year Award winner.  Good luck!


 — The Windows Azure platform AppFabric team

New BizTalk book in French is out

Hi all

Just to let you all know, that David
GROSPELIER
has written a BizTalk 2009 book in French that is about to be published.

You can find the book at Amazon and
at Editions-ENI.

David has been so kind as to mention my collection of functoids from http://eebiztalkfunctoids.codeplex.com several
times in the book, and since it is in French, I have not bothered to check what has
been written, but trust that David knows what he is talking about 🙂

So go check it out! 🙂



Eliasen

New 3-Day BizTalk Server 2009 ESB 2.0 Toolkit Course from QuickLearn

On March 15th, students from around the world will be attending QuickLearn’s newly revised 3-day version of BizTalk Server 2009 ESB Toolkit 2.0 course. 

QuickLearn’s expert developers just added an entire third day of advanced hands-on training that teaches you how to build a complete end-to-end ESB 2.0 solution.

Attendees will learn the A to Z of the ESB 2.0 Toolkit including installation and configuration, creating a flexible, secure, and reusable infrastructure for services, and building composite applications to create new end-to-end business processes.

Sign up now to secure your spot!

Communication with SAP through WCF custom adapter – Send and Receive Ports

In order to successfully setup communication with SAP. You have following configurations.
In terms of the SAP part you need to have following things on SAP side:

·         A SAP user with suitable access

·         A RFC connection (This will specify the ‘listening’ program running on BizTalk. (SAP transaction SM59)

·         A tRFC port which uses the RFC connection defined above. (SAP transaction WE21)

There is also some setup in terms of messages. Assignment of messages to receiving/sending partner…
But this would be down to the SAP team for doing this sort of implementation.

The most important thing from BizTalk point of view is the configuration of the Send and Receive ports.
There for you need to first generate the correct SAP schemas.  (See blog post: “Communication with SAP through WCF custom adapter – Generate SAP schemas”).

Note: When generating the SAP schemas, BizTalk will provide you with the correct bindings to setup the Send/Receive Ports.
On the other side, it’s better to cross-check that configuration to be sure that you have the correct setup.

Send Ports

Your URI should look like this:

sap://CLIENT=[SAPClientID];LANG=[LANG];@a/[ServerName]/[SystemID]?RfcSdkTrace=False&AbapDebug=False
ex: sap://CLIENT=235;LANG=EN;@a/10.80.32.3/00?RfcSdkTrace=False&AbapDebug=False

In the SOAP Action header you should specify the action, this action you can find in the configuration of your generated SAP schema. 

Double check the configuration of the URI and do not forget to add your credentials to avoid logon problems. 

Receive Ports

Your URI should look like this:

sap://CLIENT=[SAPClientID];LANG=[LANG];@a/[ServerName]/[SystemID]?ListenerGwHost=[ListenerGWHost]&amp;ListenerGwServ=[ListenerGWService]&amp;ListenerProgramId=[ListenerProgramID]
ex: sap://CLIENT=235;LANG=EN;@a/10.80.32.3/00?ListenerGwHost=10.80.32.3&amp;ListenerGwServ=SAPGW00&amp;ListenerProgramId=BIZTALK_CODIT

The SAP team has to provide you with the correct variables. Again, do not forget to add your credentials to avoid logon problems.
If you still have issues with enlisting your Receive Locations you should paste following entries in c:\windows\system32\drivers\etc\services.
 Services.txt (3.71 kb)

Enjoy !

Glenn Colpaert 

Communication with SAP through WCF custom adapter – Generate SAP schemas

In order to send and receive messages from SAP you need to have the correct schemas generated from SAP.
To successfully generate those schemas you need following prerequisites installed.

·         BizTalk – SAP LOB Adapter SDK SP2

·         BizTalk – Adapter Pack 2.0

·         BizTalk – SAP client libraries 

Create a new project in Visual Studio. Click “Add Generated Items”. 

Select “Consume Adapter Service”.

  

Select the “sapBinding” and press “Configure”.
Configure the URI properties (application server host, the gateway host, the gateway service, the system number, the client, programid) and credentials provided.

 

  

When the configuration is finished press the “Connect button”.
In the following sceen you can Select Client (Outbound operations) or Server (Inbound Operations), then you can select the IDOC you want.
Be sure to select the correct version of the IDOC. Select the Send or Receive operation and click “OK” to generate the schema.

  

 Generating a schema will provide you with the correct schemas and a binding file that you can use to setup the receive or send port.
(See blog post: “Communication with SAP through WCF custom adapter – Send and Receive Ports”)

  

 

Enjoy !

Glenn Colpaert