Skip to Content
0

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

Jan 09, 2017 at 01:38 PM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Edy Simon Jan 11, 2017 at 01:09 AM
1

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


webservice.jpg (159.8 kB)
Share
10 |10000 characters needed characters left characters exceeded
DIEGO LOTHER Jan 09, 2017 at 03:15 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 10, 2017 at 06:18 AM
0

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?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
avatar image
Former Member Jan 11, 2017 at 11:25 AM
0

Thanks Edy Simon, It's working.

Thanks for your support.

Regards,

Amol

Share
10 |10000 characters needed characters left characters exceeded