Dynamically setting InboundBodyPathExpression from within an itinerary using UDDI?
-
Friday, February 10, 2012 5:50 PM
I am trying to dynamically call a WCF-SQL adapter that will need the inbound message body set to "Path" and I will need to give the "Body path espression" and "Node encoding" from UDDI.
Where/how do I add this to UDDI?
Under "microsoft-com:esb:runtimeresolution:endpointconfig" somewhere?
All Replies
-
Monday, February 13, 2012 9:19 AM
Hi MillaT,
Yes use endpoingConfig for your UDDI config and your wcf-custom properties should look like
BindingType=wsHttpBinding&BindingConfiguration=<binding name="CustomBinding"></binding>&InboundBodyPathExpression=<bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/>
___________________________________________________________
If this is helpful or answers your question - please mark accordingly.Raj, http://rajwebjunky.blogspot.com
- Proposed As Answer by Ferdinand Kuiper Monday, February 20, 2012 7:46 PM
- Unproposed As Answer by MillaT Tuesday, February 21, 2012 4:38 PM
-
Monday, February 13, 2012 10:46 PMThe inbound xpath expression would replace the http://www.microsoft.com/schemas/bts2007?
-
Tuesday, February 14, 2012 10:41 AM
Hi MillaT
It does not replace the url. Can you check this article for more details about WCF body path expression.
Raj, http://rajwebjunky.blogspot.com
-
Tuesday, February 14, 2012 4:09 PM
Hi MillaT
It does not replace the url. Can you check this article for more details about WCF body path expression.
Raj, http://rajwebjunky.blogspot.com
Thanks for the link.
Unfortunately I have read through that page many times. And from what it seems it does not pertain to my problem.
Maybe it is my fault for asking the question poorly. Let me try again.
I am dynamically setting send port information from within an itinerary using UDDI.
These are the settings I would like to set:
InboundBodyLocation = UseBodyPath
InboundBodyPathExpression = /*[local-name()='ibt_SelectCustomerDataResponse' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo']/*[local-name()='StoredProcedureResultSet0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo']/*[local-name()='StoredProcedureResultSet0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/ProceduresResultSets/dbo/ibt_SelectCustomerData']/*[local-name()='UnNamedColumn0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/ProceduresResultSets/dbo/ibt_SelectCustomerData']
InboundNodeEncoding=String
I have tried using this in the microsoft-com:esb:runtimeresolution:endpointconfig instance Info:
BindingType=sqlBinding&InboundBodyLocation="UseBodyPath"&InboundBodyPathExpression="/*[local-name()='ibt_SelectCustomerDataResponse' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo']/*[local-name()='StoredProcedureResultSet0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo']/*[local-name()='StoredProcedureResultSet0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/ProceduresResultSets/dbo/ibt_SelectCustomerData']/*[local-name()='UnNamedColumn0' and namespace-uri()='http://schemas.microsoft.com/Sql/2008/05/ProceduresResultSets/dbo/ibt_SelectCustomerData']"&InboundNodeEncoding=String
And although it doesn’t complain, it also doesn’t work.
-
Wednesday, February 15, 2012 4:02 PM
Hi Milla,
The question talks about How to set InboundBody path at UDDI, hope you got that now.
Are you able to submit message properly? (And although it doesn’t complain, it also doesn’t work. ) Can you post more details on what is the expected result.Raj, http://rajwebjunky.blogspot.com
-
Wednesday, February 15, 2012 4:21 PM
Hi Milla,
The question talks about How to set InboundBody path at UDDI, hope you got that now.
Are you able to submit message properly? (And although it doesn’t complain, it also doesn’t work. ) Can you post more details on what is the expected result.
Raj, http://rajwebjunky.blogspot.com
Sorry I don't understand your post.
No my problem is not solved.
No one can answer how to do it so far.
-
Thursday, February 16, 2012 8:59 AM
what is the ERROR?
I gues you are using Req-Resp port to submit message to Database.
so where the problem is now ? while submit or response from database ?Raj, http://rajwebjunky.blogspot.com
-
Thursday, February 16, 2012 3:39 PM
There is no error.
Body path expression is used on the receive portion of a WCF adapter to use an xpath expression to retrieve a portion of a message.
In this case it simply does not use the xpath expression and returns the whole message.
-
Friday, February 17, 2012 8:36 AM
Is that xpath expression correct ? did you check with xslt tools ?
Raj, http://rajwebjunky.blogspot.com
-
Friday, February 17, 2012 11:30 PMYes, it works fine with a static port.
-
Monday, February 20, 2012 9:15 AM
Hi MIllaT,
The best thing is to add Static Resolver ( instead of UDDI) and apply the properties and test it.
If it works then you can copy the entire endpointConfig data to UDDI.
Raj, http://rajwebjunky.blogspot.com
- Proposed As Answer by Ferdinand Kuiper Monday, February 20, 2012 7:46 PM
- Unproposed As Answer by MillaT Tuesday, February 21, 2012 4:37 PM
-
Thursday, February 23, 2012 3:11 PM
Hi MillaT,
still you did not get the solution ?
Raj, http://rajwebjunky.blogspot.com

