Add service reference to ESB toolkit and BizTalk - web-services

I have installed BizTalk together with ESB toolkit and ESB services are up and running according to IIS. I want to connect to these services from a simple WinForm application.
When I try to add this service reference in my project in visual studio
localhost/ESB.BizTalkOperationsService/Operations.asmx
I get the following error message:
There was an error downloading 'localhost/ESB.BizTalkOperationsService/Operations.asmx/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'localhost/ESB.BizTalkOperationsService/Operations.asmx'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
If the service is defined in the current solution, try building the solution and adding the service reference again."
I can browse to:
localhost/ESB.BizTalkOperationsService
but not to the service directly:
localhost/ESB.BizTalkOperationsService/Operations.asmx
How do I communicate with this ESB service?

The problem was that the webservice had been incorrectly installed. I managed to fix this problem by unistalling and reinstalling according to this tutorial
http://geekswithblogs.net/BizTalkUnleashed/archive/2012/11/07/biztalk-server-2013-beta-on-windows-8-visual-studio-2012.aspx

Related

Consume Https Soap web service in ASP.NET Core 5

I have an HTTPS soap web service that has a certificate.
Firstly, I install that certificate as "local machine" in "Trusted Root Certification Authorities".
Then, I can connect to it and add a reference to it in the .NET Framework project.
But I have a problem when trying to consume it in the ASP.NET Core5 project. When I try to add it as a "WCF Web Service Reference", I got this error:
An error occurred while attempting to find services at 'https://15.5.36.23/yxxx/soap/yyyy?wsdl'.
The request was aborted: Could not create SSL/TLS secure channel.
I use Windows 10 and Visual Studio 2019 V16.10.2.
How can I fix it?
Thanks

WSO2 IOTS: HTTP Status 500 - Cannot call method "getUIPermissions" of undefined

when I trying to start WSO2 IoTs Server and go to https://localhost:9443/devicemgt, I'm getting the error
HTTP Status 500 - Cannot call method getUIPermissions of undefined.
I'm using MySQL and run WSO2 IoTs alone on localhost.
Carbon Logs here
This issue is raised when you try to start the pack with a -Dsetup. You can execute the database scripts that are available in the dbscripts folder manually and then run the product. This issue has been fixed after the alpha release.

Wcf web service

I have a WCF web servive which I have hosted on same network PC(not where client application run). When I try to add service reference to client application the following error is raised...
Note: I can access the web service through web browser where client application runs
Microsoft Visual Studio
There was an error downloading 'ipaddress/uploads/TransferService.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved: [/ipaddress/uploads/TransferService.svc].
Content Type application/soap+xml; charset=utf-8 was not supported by service ipaddress/uploads/TransferService.svc. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not supported by service
ipaddress/uploads/TransferService.svc. The client and service bindings may be mismatched.
The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..
If the service is defined in the current solution, try building the solution and adding the service reference again.
Anyone please help in this??
If your target framework is 4.5 or higher, you can try to download service as a single WSDL — just append ?singleWSDL to the URI when requesting metadata from the service.

Visual Studio web reference - $metadata vs. ?wsdl

This is a legacy project that I have not touched in a while. Now the web reference is causing me trouble.
I connect to a SOAP service from a Windows Mobile 6 client. When the service host runs locally on my development box, I can point the web reference to it and it will discover the WSDL, i.e. it will attempt to pull the service description by appending ?wsdl to the endpoint URL. I can build the app and connect to the service from the emulator.
I can for some reason not point Visual Studio to the current production environment for discovery. There it appends /$metadata to the URL instead of ?wsdl. The wsdl is there and I can view it in a browser, though. The mobile app is live and has been connecting to the service for years.
The HTML document does not contain Web service discovery information.
There was an error downloading 'https://mysite/myservice.asmx/$metadata'.
The request failed with the error message:
--
<html>
<head>
<title>Request format is unrecognized for
I know that it is not possible to discover a web service on a non-standard port from Visual Studio. Does it not work with SSL, either? How does Visual Studio decide to use either method for discovery?Or do you have any other thoughts?
I still have no clue what's going wrong with your service but I can discover webservices on non standard ports adding the port to the url (and the ?wsdl as well) from within WS
http://10.177.55.13:10321/MyServices/?wsdl
If this doesn't help open the wsdl in your browser. Copy the xml code, paste it into your editor and save it as .wsdl file. In VS use the filename as url for the service.
HTH
Ruediger

The request failed with HTTP Status 403: Forbidden when calling a web service

I have a problem when calling a method from an external web service.
The error returned is as follows:
The request failed with HTTP Status 403
My application is deployed using ClickOnce technology. The strange thing is that when I call service (test the code) on my development machine and additionally in test environment (IIS 6, Windows 2003 Server) everything is fine.
Unfortunately when application is in production environment (Windows 2003 Server, IIS 6) the error is returned.
I don't use a service reference to call a web service, instead I use a proxy class generated from wsdl.exe application. Can someone please help me.
EDIT:
I noticed that I can't even access wsdl file using web browser from that production server. This production server is also in different domain.
I found the solution of my problem. It seems that the company that owns the external web service has some kind of access list with IP addresses allowed to access this web service