Hi
I am new to Neuron ESB and I am practising the
Neuron Web Services resource material.
I am having issues with the
ServiceFacade and I am getting the below error:
Test Name: TestMethod1
Test FullName: Tests.UnitTest1.TestMethod1
Test Source: c:\Users\kv\Documents\Visual Studio 2013\Projects\ServiceFacade\Tests\UnitTest1.cs : line 13
Test Outcome: Failed
Test Duration: 0:00:00.1025369
Result Message:
Test method Tests.UnitTest1.TestMethod1 threw exception:
System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://localhost/facade that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
Result StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Order.IOrder.PlaceOrder(OrderRequest request)
at Tests.UnitTest1.TestMethod1() in c:\Users\kv\Documents\Visual Studio 2013\Projects\ServiceFacade\Tests\UnitTest1.cs:line 16
Hi,
This error just tells us that the unit test is unable to reach the Web Service hosted by Neuron. There are several reasons why this could happen, so here's a list of things to check:
1. Is the Neuron ESB Service properly configured? The easiest way to check is to open ESB Explorer (run as an Administrator), and in the top toolbar there is a button labeled "Configure Server". Click on this and the configure server dialog will open. Verify that the ESB Configuration Folder is pointing to the folder where the ESB Solution is located. Once verified, click OK.
2. Is the Neuron ESB Service started? To check, in the same toolbar in ESB Explorer there is a dropdown that will say either Stopped, Starting or Running. If it says Running. pick the dropdown and select Restart. If it says Stopped, select Start from the dropdown.
3. Verify the URL of the client connector the unit test is connecting to. In ESB Explorer, navigate to Connections->Service Endpoints. Verify the Orders client connector has the correct URL.
4. Verify the Client Connector is started. Navigate to Activity->Endpoint Health and client the Start Monitoring button. You should see the Orders client connector in the list. Is it in the Started or Stopped state?
If it's in the Stopped state, it may be that you already have something on your computer that is using port 80 (like IIS). You could resolve this by changing the URL in the client connector to http://localhost:81/facade (or use some other port). You'll also have to update this URL in the VS project.
Let me know if these steps help!
Joe
It's still not working? When you changed the URL in Neuron, make sure you save the solution (File->Save), and then restart Neuron ESB Service (again - I want you to do this to generate new event log/app log information).
Neuron has it's own event log. Open the Event Viewer, then navigate to Applications and Services Logs->Neuron ESB v3. After the restart is completed, try the test again. Then refresh the event viewer and let me know which errors are there.
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by