SQL Adapter - attributes treated like stored procedures - why?
Hello,
I've created a simple BizTalk application that uses a SQL Adapter to call a stored procedure. I used the "Add Generated Items" option to create the schema for the send port. The send pipeline uses XmlTransmit. The application also contains a simple map for the 5-element test document that I created. The input document contains 5 elements and the stored procedure has 5 parameters so that the text value for each element can be passed to the sproc.
When I first ran BizTalk I got a message that my stored procedure couldn't be found, but the name of the "missing" sproc was the first element in my receive document and not the real stored procedure name. I created a stored procedure for each of my 5 element names and now the orchestration runs to completion. I have verified that it calls each of the 5 stored procedures.
In short, instead of calling the correct stored procedure and passing it 5 parameters, my orchestration is calling 5 stored procedures.
What could possibly cause BizTalk to treat the element names as stored procedures?
I've included the send port (SQL Adapter) schema below.
Thanks for all assistance.
<?xml version="1.0" encoding="utf-16"?>
-<xs
chema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://SprocTest" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <msbtssql
qlScriptvalue="exec [BizTalkToCustomerInsert] @Address=" ", @City=" ", @CustomerName=" ", @PostalCode=" ", @Region=" "" xmlns:msbtssql="http://schemas.microsoft.com/BizTalk/2003" /> </xs:appinfo>
</xs:annotation>
-<xs:element name="SprocTest_Request"> -<xs
equence> -<xs:element name="BizTalkToCustomerInsert"> </xs
equence> </xs:complexType>
</xs:element>
-<xs:element name="SprocTest_Response"> -<xs
equence> <xs:elementname="Success" type="xs:anyType" />
</xs
equence> </xs:complexType>
</xs:element>
</xs
chema>
BlackCatBone wrote: |
| ...When I first ran BizTalk I got a message that my stored procedure couldn't be found, but the name of the "missing" sproc was the first element in my receive document and not the real stored procedure name. I created a stored procedure for each of my 5 element names and now the orchestration runs to completion. I have verified that it calls each of the 5 stored procedures. In short, instead of calling the correct stored procedure and passing it 5 parameters, my orchestration is calling 5 stored procedures. .... | |
Obviously, you are missing something.
Could you, please, describe more of these steps?
Or try to repeat all steps from SDK Sample, it give you a clue.