Hi,
does anyone have any experience on setting up a Relay on AzureServiceBus to bridge a neuron on-premise service?
I successfully connected Neuron with an Azure queue, but I don't know where to start to setup the relay.
Thank you
Fabrizio
Tags:
Ok….so if you want to use azure auth….then you end up having to use the relay binding. And a custom behavior to configure auth. Here’s a sample behavior I used about 6 years ago..
<endpointBehaviors>
<behavior name="clientCredentials">
<transportClientEndpointBehavior credentialType="SharedSecret">
<clientCredentials>
<sharedSecret issuerName="owner" issuerSecret="KOOTYjT35qUsxgdOWY7Gpq6E0tGP1o3+QO0vkGGinIY="/>
</clientCredentials>
</transportClientEndpointBehavior>
</behavior>
</endpointBehaviors>
Just add this into the Neuron ESB explorer so that you can configure our client connector with it
Hi Marty,
thanks for the reply.
I've used the following and now it works. I've might be due to the change in the authentication model on Azure few years ago.
Neuron is creating the relay automatically on Azure, no need to set it up in advance, otherwise it will fail.
The call is routed to Neuron correctly. Still need some tuning but it might be a way to go..
<endpointBehaviors>
<endpointBehaviors>
<behavior name="clientCredentials"> <transportClientEndpointBehavior> <tokenProvider> <sharedAccessSignature keyName="keyname" key="keyvalue"/>
</tokenProvider>
</transportClientEndpointBehavior>
</behavior>
</endpointBehaviors>
Fabrizio
Hi guys,
I've set this up.
Does anybody know whether it is possible to return a json body through the WebHttpRelay.
I get an error that it's expecting an xml... or at least trying to parse an xml message
Event Info: ClientConnector_AzureServiceBusWebRelayService
Exception: The XmlReader used for the body of the message must be positioned on an element.
Parameter name: reader
Thanks
Fabrizio
experiment with checking the checkbox for Raw Body
Hi Marty,
thanks for the quick reply.
I've tried to set the RawBody property but it fails
Event Info: ClientConnector_AzureServiceBusWebRelayService
Exception: Text cannot be written outside the root element.
Method: VerifyWhitespace
Stack: at System.Xml.XmlBaseWriter.VerifyWhitespace(String s)
at System.Xml.XmlBaseWriter.WriteRaw(String value)
at Neuron.Esb.EsbService.RawBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.BodyWriterMessage.OnWriteBodyContents(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.OnGetReaderAtBodyContents()
at Microsoft.ServiceBus.RelayedHttpUtility.ConvertWebResponseToSoapResponse(Message webResponse, String responseAction)
at Microsoft.ServiceBus.RelayHttpTransportReplyChannel.RelayHttpTransportRequestContext.Reply(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Reply(MessageRpc& rpc)
ok...I'll hand this over to Joe. I'm sure he'll know the right settings..
Hi Marty / Joe,
any update on this?
Thanks
Fabrizio
Joe is looking now
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by