cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Third Party web service in SAP B1 sdk code (i.e. in Add-on)

ajamoljadhav7
Explorer
0 Kudos

Hi,

I am trying to integrate third party application with SAP using third party web service.

I created Add on in that i consumed third party web service & generated document at third party application side taken response at SAP side.

This is working fine on source code debug mode but after creation of ard file it throw's following error.

"Could not find default endpoint element that references contract 'ServiceReference4.IWayBillGeneration' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."

Awaiting reply...

Thanks in advance..

Amol

Accepted Solutions (0)

Answers (4)

Answers (4)

edy_simon
Active Contributor

Hi Amol,

In your configuration file, make sure it has entry similar to below

    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_IWayBillGeneration" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://URI/Service.svc"
                binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWayBillGeneration"                contract="ServiceReference4.IWayBillGeneration" name="BasicHttpBinding_IWayBillGeneration" />        </client>
    </system.serviceModel>

Alternatively, I prefer this, create your service programatically.
Example of creating a Service Reference :

You still need to add the ServiceReference/WebService in your VS.
But on run time, you will rebuild the reference programatically.

Regards
Edy

ajamoljadhav7
Explorer
0 Kudos

Thanks Edy Simon, It's working.

Thanks for your support.

Regards,

Amol

ajamoljadhav7
Explorer
0 Kudos

Hi,

Thanks for you reply...

I checked config file is there in installation folder but getting error remains same.

Is required any settings or configuration for accessing third party web services?

former_member185682
Active Contributor
0 Kudos

Hi Amol,

I believe that any other specific config is not necessary, but I don't have any other suggestion. Maybe someone else in this board have some knowledge about this situation.

Kind Regards,

Diego Lother

former_member185682
Active Contributor
0 Kudos

Hi Amol,

Did you look at your addon instalation folder and check if the config file is there?

Hope it helps.

Kind Regards,

Diego Lother