Routing error - No subscribers were found. WCF-SQL Adapter - wcf

I'm attempting to call a Stored proc, get some data back, map that to the desired schema, output the result.
However, I'm getting the following error:
The Messaging engine failed to process a message submitted by
adapter:WCF-SQL Source
URL:mssql://master-biztalk//ReportServer?InboundId=batman. Details:The
published message could not be routed because no subscribers were
found. This error occurs if the subscribing orchestration or send port
has not been enlisted, or if some of the message properties necessary
for subscription evaluation have not been promoted. Please use the
Biztalk Administration console to troubleshoot this failure.
I'm not quite certain why I'm getting this error. Searching the web hasn't enlightened me any further. Following are some of the steps I've undertaken
Consume adapter = generated schema.
Map this schema to desired output.
Receive port in the Orchestration which connects to a receive message which has the Schema generated by the consume adapter as the type.
Added a receive port in Biztalk, configured WCF-SQL and setup bindings. (Typed polling)
Linked this receive port to the logical receive port in orchestration.
I haven't promoted any elements in messages.
Thanks for the help
EDIT: I updated the pipeline to XML, and now I'm getting the following error:
There was a failure executing the receive pipeline:
"Microsoft.BizTalk.DefaultPipelines.XMLReceive,
Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" Source: "XML disassembler" Receive
Port: "DatabaseReceiveport" URI:
"mssql://master-biztalk//ReportServer?InboundId=batman" Reason:
Finding the document specification by message type
"http://schemas.microsoft.com/Sql/2008/05/TypedPolling/batman#TypedPolling"
failed. Verify the schema deployed properly.
I'm not quite sure what it's trying to do above.

This means that either:
The Project/Assembly with the specified Schema has not been deployed.
The WCF SQL configuration is off somehow, frequently the InBoundId parameter. That's where "batman" would come from.
In the All Artifacts Application, check the Schemas folder for that Schema by Root Node and Namespace.

Related

Why can't I have two BasicHttpRelay receive locations with different namespaces but the same relay name?

I am trying to create a BizTalk solution that uses two Relay namespaces in two different regions for high availability. I have a receive port with two receive locations with identical configuration except for the URI (and the SAS key) where they differ by the namespace only. I would like to use the same relay name for each, because this name has business domain significance in my solution.
The URIs are of the form:
https://[my-solution]-relay-uksouth.servicebus.windows.net/[my entity]
https://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]
When I start the second location, it stops and logs an error message:
The Messaging Engine failed to add a receive location "[receive
location name]" with URL "https://[my-solution]-relay-ukwest.servicebus.windows.net/[my
entity]" to the adapter "WCF-BasicHttpRelay". Reason:
"System.InvalidOperationException: The ChannelDispatcher at
'sb://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]' with contract(s)
'"ITwoWayAsyncVoid"' is unable to open its IChannelListener. --->
System.InvalidOperationException: A registration already exists for
Uri 'sb://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]'.
What do I have to do to make BizTalk accept this? I can't see any reason why this would not just work. I have considered the limitation of WCF services that it is not allowed to host more than one service with the same base address and protocol - but the base addresses are different, so I don't think it should be claiming that this is the problem.
I am using BizTalk Server 2016.
The error is correct. All URIs refer to ukwest.
The Messaging Engine failed to add a receive location "[receive location name]" with URL "https://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]" to the adapter "WCF-BasicHttpRelay". Reason: "System.InvalidOperationException: The ChannelDispatcher at 'sb://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]' with contract(s) '"ITwoWayAsyncVoid"' is unable to open its IChannelListener. ---> System.InvalidOperationException: A registration already exists for Uri 'sb://[my-solution]-relay-ukwest.servicebus.windows.net/[my entity]'.

Creating failed message on WCF-CustomIsolated Receive Location

I have a receive port with a WCF-CustomIsolated receive location.
On receive port I checked "Enable routing for failed messages".
In pipeline settings I have set ValidateDocument to true.
When a client sends me an incorrect schema, it receives a validation error (that happened in pipeline) and it's OK.
But it's not routed as a fault message to message box.
Could you help me why does it happen?
Why "routing for failed messages" does not work in this case? And in what cases it should work?
Thank you!
On the Receive Location, go the Transport Properties, Messages, Error Handling, and check Suspend request message on failure.
Even though it says "Suspend" checking this in combination with the Routing for Failed Message on the Receive Port will actually create a FailedMessage that you are after. (If Routing for Failed Message isn't enabled it will suspend).
This applies to all the WCF adapters, not just the CustomIsolated one.
You need to subscribe to the error message. You could use a send port or orchestration with a filter set to the receive port, message type and/or message error.

What could cause "An operation was skipped during export because it has a wildcard action" error when publishing a service?

I created an Orchestration in BizTalk, which I published as a service, using the tool WCF BizTalk. This resulted in a service hosted in IIS 7. When I changed the web.config file to enable debugging, I caught the following error:
Message
An operation was skipped during export because it has a wildcard action.
This is not supported in WSDL.
Contract Name:ITwoWayAsync
Contract Namespace:http://BTKPruebas.pruebaWCF
Operation Name:TwoWayMethod
What might be causing this?
Some googling led me to this answer:
You can solve it by removing any * Charchter from ReplyAction.
[System.ServiceModel.OperationContractAttribute(Action="http://www.yyyyy.com/somthing/Registration/RegistrationService/version/2.1/getCoCRecordByMemberShipID", ReplyAction="*")]

Unable to reference WSDL of WCF web service hosted on AppFabric

I have developed a WCF service and, while in Visual Studio 2010, I can import the WSDL without a problem. After I've deployed it to AppFabric, I get the WSDL, but several schema files referenced internally in the WSDL cannot be found, for some reason. I don't know if it's a configuration issue, or what. The error I get when I try to process the WSDL in Visual Studio 2010 follows below:
Metadata contains a reference that cannot be resolved:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?wsdl'.
The WSDL document contains links that could not be resolved.
There was an error downloading 'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc?xsd=xsd0'.
The request failed with HTTP status 502: Proxy Error ( The
specified network name is no longer available. ).
Metadata contains a reference that cannot be resolved:
'http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc'.
There was no endpoint listening at http://myserver.mydomain.com:9871/app_deploy/MyAppService.svc
that could accept the message. This is
often caused by an incorrect address
or SOAP action. See InnerException, if
present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the
solution and adding the service reference again.
The error is a proxy error because it goes through a proxy, but the error is because the page isn't there. I've tried accessing http://localhost:9871/app_deploy/MyAppService.svc?xsd=xsd0 at the server, but I get 404.
Why wouldn't these xsd files being found? Is it a deployment issue?
Any help would be greatly appreciated.
Man, I finally found the problem here. I needed write permission on C:\Windows\Temp for Application Pool user!

Service reference error when moving dev. environment from XP to W7

I am building an application and I am using web services for getting data from a server. It was working fine when I was developing on my XP machine but had to switch to Windows 7. On the new machine I grabbed the latest version of the code using sourcesafe.
However, when I try to add a service reference in the solution or update an existing one I get the following error:
There was an error downloading 'http://localhost:52490/Service/CustomerService.asmx'.
The request failed with the error message:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'Digital_Server.CustomerService'.
Source Error
Source File: /Service/CustomerService.asmxLine: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
--.
Metadata contains a reference that cannot be resolved: 'http://localhost:52490/Service/CustomerService.asmx'.
An error occurred while receiving the HTTP response to http://localhost:52490/Service/CustomerService.asmx. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
If the service is defined in the current solution, try building the solution and adding the service reference again.
Does it has anything to do with the IIS or is it any configuration file I have to change in the solution?
Any help is appreciated.
How do you deploy your app to the server? Via a zip file?
Perhaps it extracts the files without the path.