Neuron ESB User Network

The Service Bus for the Connected Business

ODBC Adapter, Execute, Pass @xml data as Stored Procedure xml parameter - how?

Hello,

I have a stored procedure that accepts a XML parameter (@xml).  The procedure handles the XML and uses it to process the data (can contain hundreds of items).

It appears that the ODBC Adapter requires the Message Body to be a XML formatted to make the call.

<Statement type="StoredProcedure" sql="{Call uspUpdatePhoneNumber(?)}">

    <Parameters>

        <Parameter type="varchar" name="@xml" value="<Root><Item><val1>A<val1><val2>123</val2></Item><Item><val1>B</val1><val2>456</val2></Item></Root>"/>

    </Parameters>

</Statement>

How can I inject the XML data into this call so it sends the XML parameter to the stored procedure?

This is going against SQL Server.  I am unable to figure out 2 things:

1) the SQL XML DataType for ODBC; and

2) how can I pass the XML to the Stored Procedure parameter?

In the Business Process SQL step, this was trivial.  The message body (OuterXML) was the XML.

Views: 275

Reply to This

Replies to This Discussion

  • It appears the "Parameter type" should be "xml" or "SQL_SS_XML" (unable to determine).
  • However, it appears to be impossible to pass XML data using this <Parameters><Parameter ...> XML syntax.
  • Any ideas on how to send XML data as an "xml attribute" to the "value=" attribute of the <Parameter> item?

This forum post can also be closed. 

It appears that this too is not possible to do with the ODBC Adapter in NeuronESB.

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service