Saturday, October 17, 2009

WCF SAP Adapter Error: Incorrect Action

An error occurred during calling an RFC / TRfc / BAPI to SAP

Incorrect Action http://Microsoft.LobServices.Sap/2007/03/blablabla . Correct the specified Action, or refer to the documentation on the allowed formats for the Actions.
This problem occur for only two reason:

The WCF SAP Adapter using WCF Custom adapter, the important thing is the SOAP Action Header under General Tab in Configuration.

this is a sample of SOAP Header:

<BtsActionMapping xmlns:xsi="" xmlns:xsd="">
  <Operation Name="Z_BAPI_PIP3B2_INBOUND" Action="http://Microsoft.LobServices.Sap/2007/03/Rfc/Z_BAPI_PIP3B2_INBOUND" />

Name parameter correspond to the Operation of the logical orchestration port and Action usually correspond to MessageType without #.
This is default using from adapter wizard.
To be sure to do all correctly you can do that:

Import schema from SAP, after you'll find a Bindinginfo file to create a physical port on BizTalk from admin console.
Open this file and use the value of action paramenter to rename the operation of orchestration logical port.
Deploy all, create physical port with binding file and configure your orchestration.

You could use a your custom action, to do that write WCF.Action context property:

This is a grate thing to use multiple operation on a single port

1 comment:

  1. The article is quite detailed and informative.The author has provided a quick information on WCF SAP Adapter Error and how to rectify it.
    sap project