none
sapBinding under RRS feed

  • Question

  • Hi.
    I have a Web. config that has the following on under <configuration>
      <system.serviceModel>
        <bindings>
      <sapBinding>
       <binding name="SAPBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
           receiveTimeout="00:10:00" sendTimeout="00:02:00" enableBizTalkCompatibilityMode="false"
           receiveIdocFormat="Typed" enableSafeTyping="false" generateFlatFileCompatibleIdocSchema="true"
           maxConnectionsPerSystem="50" enableConnectionPooling="true"
           idleConnectionTimeout="00:15:00" flatFileSegmentIndicator="SegmentDefinition"
           enablePerformanceCounters="false" autoConfirmSentIdocs="false"
           enableBusinessObjects="false" acceptCredentialsInUri="false"
           padReceivedIdocWithSpaces="false" sncLibrary="" sncPartnerName="" />
      </sapBinding>
     </bindings>
     <client>
      <endpoint address="sap://CLIENT=400;LANG=EN;@b/ZA01SAPPRD00/01?RfcSdkTrace=False&amp;AbapDebug=False" binding="sapBinding" bindingConfiguration="SAPBinding" contract="Rfc" name="SAPBinding_Rfc" />                  
     </client>                                                  
      </system.serviceModel>

    but iget the following error when I try to call a method that uses this. it gives:

    {"System.Web.Services.Protocols.SoapException: Server was unable to process request. --->
    System.Configuration.ConfigurationErrorsException: Unrecognized element 'SAPBinding'. (C:\\Inetpub\\wwwroot\\petrosa.edi.webservice\\EDIProxy\\web.config line 13)\n  
    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)\n   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)\n   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)\n  
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)\n   at System.Web.HttpContext.GetSection(String sectionName)\n  
    at System.Web.Configuration.WebConfigurationManager.GetSection(String sectionName)\n  
    at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSectionFromWebConfigurationManager(String sectionPath)\n  
    at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath)\n  
    at System.ServiceModel.Configuration.ClientSection.UnsafeGetSection()\n  
    at System.ServiceModel.Description.ConfigLoader.LookupChannel(String configurationName, String contractName, Boolean wildcard)\n   at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)\n   at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)\n   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)\n   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName)\n  
    at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()\n  
    at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()\n  
    at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)\n  
    at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()\n  
    Wonder Andile Hlongwane MCTS
    Tuesday, December 8, 2009 12:50 PM

All replies

  • Do you have BizTalk adapter pack installed on this machine?

    Is it a 32/64 bit machine?

    Thanks,
    Jeevitha
    Tuesday, December 8, 2009 6:23 PM
  • Hi Jeevitha.

    The adapter pack is installed on this machine.
    It is Windows Server 2003 R2 64 bit machine.
    Wonder Andile Hlongwane MCTS
    Tuesday, December 8, 2009 7:06 PM
  • Maybe the machine.config entries for the sapBinding are not getting added? I think there are manual update directions of the machine.config in the SAP adapter documentation. Another thing to check is if the 64-bit machine config has the entries but the 32-bit one does not. If your IIS web site is configured to run under 32-bit mode it would use the 32-bit machine.config.

    Try running the IIS site under 64-bit or add the sapBinding details to the 32-bit machine.config.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Thursday, December 17, 2009 6:27 PM
    Moderator
  • Installing both 32 bit and 64 bit adapter pack should solve the issue.

    Based on the process, it will pick up the appropriate machine.config

    Thanks,
    Jeevitha

    Friday, December 18, 2009 6:23 PM
  • Maybe the machine.config entries for the sapBinding are not getting added? I think there are manual update directions of the machine.config in the SAP adapter documentation. Another thing to check is if the 64-bit machine config has the entries but the 32-bit one does not. If your IIS web site is configured to run under 32-bit mode it would use the 32-bit machine.config.

    Try running the IIS site under 64-bit or add the sapBinding details to the 32-bit machine.config.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline

    Thanks for your sharing!
    Tuesday, February 22, 2011 1:16 AM