01-09-2017 1:38 PM - edited 02-03-2024 5:06 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Edy Simon, It's working.
Thanks for your support.
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.