Webservice works with SoapSonar but not with Visual Studio Winform - winforms

Changed Response format to be like VS and error is now "Message Version not recognized"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<DiscordianResponse xmlns="http://reboltutorial.com/">
<DiscordianResult>Sweetmorn, Discord 48, Year of Our Lady of Discord 3176</DiscordianResult>
</DiscordianResponse>
</soap:Body>
</soap:Envelope>
I have generated a wsdl file with Visual Studio which is here;
http://reboltutorial.com/webservices/discordian.wsdl
Implementation is a cgi instead of a .net framework program but that should not matter as it is the purposes of webservices.
I tested it successfully with SoapSonar:
http://reboltutorial.com/images/soapsonar.png
But under Visual Studio it fails with this code:
private void button1_Click(object sender, EventArgs e)
{
RebolTutorial.ServiceSoapClient Discordian = new RebolTutorial.ServiceSoapClient("ServiceSoap");
int year = int.Parse(this.year.Text);
int month = int.Parse(this.month.Text);
int day = int.Parse(this.day.Text);
response.Text = Discordian.Discordian(year,month,day);
}
Any reason you can see ? Thanks.
Request below:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://reboltutorial.com/">
<soap:Body>
<tns:Discordian>
<tns:year>2010</tns:year>
<tns:month>5</tns:month>
<tns:day>1</tns:day>
</tns:Discordian>
</soap:Body>
</soap:Envelope>
as well as WSDL if needed:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://reboltutorial.com/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://reboltutorial.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://reboltutorial.com/">
<s:element name="Discordian">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="year" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="month" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="day" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="DiscordianResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DiscordianResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="DiscordianSoapIn">
<wsdl:part name="parameters" element="tns:Discordian" />
</wsdl:message>
<wsdl:message name="DiscordianSoapOut">
<wsdl:part name="parameters" element="tns:DiscordianResponse" />
</wsdl:message>
<wsdl:portType name="ServiceSoap">
<wsdl:operation name="Discordian">
<wsdl:input message="tns:DiscordianSoapIn" />
<wsdl:output message="tns:DiscordianSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Discordian">
<soap:operation soapAction="http://reboltutorial.com/Discordian" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Discordian">
<soap12:operation soapAction="http://reboltutorial.com/Discordian" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service">
<wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address location="http://reboltutorial.com/cgi-bin/discordian.cgi" />
</wsdl:port>
<wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address location="http://reboltutorial.com/cgi-bin/discordian.cgi" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

I wrote that code http://www.rebolforces.com/zine/rzine-1-02/#sect6. 9 years ago and haven't really done much SOAP since then.
It works with the Soapclient at http://www.soapclient.com/soaptest.html
At that time I hand modified the wdsl ... wanna try mine?

Related

Query to extract SOAP 1.1 response from 4 different nodes

I have the below XML:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetBatchResponse xmlns="https://webservices.aba.com/">
<web:GetBatchResult xmlns:web="https://webservices.aba.com/">
<web:Loco>
<web:LocoType>
<web:Errors />
<web:Pos />
<web:Ref />
<web:Episode>
<web:EpisodeType>
<web:EpisodeId>1</web:EpisodeId>
<web:StartTime>2021-02-01T01:41:58</web:StartTime>
<web:EpisodeDataAtStart>
<web:Name>Sam</web:Name>
<web:Height>5.10</web:Height>
<web:Age>26</web:Age>
<web:Salary />
</web:EpisodeDataAtStart>
<web:EpisodeDataAtEnd>
<web:Grade>C</web:Grade>
<web:Salary>500</web:Salary>
</web:EpisodeDataAtEnd>
</web:EpisodeType>
</web:Episode>
<web:EmpUnit>21</web:EmpUnit>
<web:EmpOrg>XE</web:EmpOrg>
</web:LocoType>
<web:LocoType>
<web:Errors />
<web:Pos />
<web:Ref />
<web:Episode>
<web:EpisodeType>
<web:EpisodeId>2</web:EpisodeId>
<web:StartTime>2021-02-02T01:41:58</web:StartTime>
<web:EpisodeDataAtStart>
<web:Name>Emma</web:Name>
<web:Height>5.5</web:Height>
<web:Age>23</web:Age>
<web:Salary />
</web:EpisodeDataAtStart>
<web:EpisodeDataAtEnd>
<web:Grade>B</web:Grade>
<web:Salary>550</web:Salary>
</web:EpisodeDataAtEnd>
</web:EpisodeType>
</web:Episode>
<web:EmpUnit>17</web:EmpUnit>
<web:EmpOrg>XE</web:EmpOrg>
</web:LocoType>
</web:Loco>
<web:EndTimeUTC xsi:nil="true" />
</web:GetBatchResult>
</GetBatchResponse>
</soap:Body>
</soap:Envelope>
This is not a valid xml, just a replica created by me. Please ignore any typing mistakes, if found.
I'm able to extract the data from the 1st and the last node, i.e., I'm able to get EpisodeId, StartTime, EmpUnit and EmpOrg using the below query:
DECLARE #xml XML = '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetBatchResponse xmlns="https://webservices.aba.com/">
<web:GetBatchResult xmlns:web="https://webservices.aba.com/">
<web:Loco>
<web:LocoType>
<web:Errors />
<web:Pos />
<web:Ref />
<web:Episode>
<web:EpisodeType>
<web:EpisodeId>1</web:EpisodeId>
<web:StartTime>2021-02-01T01:41:58</web:StartTime>
<web:EpisodeDataAtStart>
<web:Name>Sam</web:Name>
<web:Height>5.10</web:Height>
<web:Age>26</web:Age>
<web:Salary />
</web:EpisodeDataAtStart>
<web:EpisodeDataAtEnd>
<web:Grade>C</web:Grade>
<web:Salary>500</web:Salary>
</web:EpisodeDataAtEnd>
</web:EpisodeType>
</web:Episode>
<web:EmpUnit>21</web:EmpUnit>
<web:EmpOrg>XE</web:EmpOrg>
</web:LocoType>
<web:LocoType>
<web:Errors />
<web:Pos />
<web:Ref />
<web:Episode>
<web:EpisodeType>
<web:EpisodeId>2</web:EpisodeId>
<web:StartTime>2021-02-02T01:41:58</web:StartTime>
<web:EpisodeDataAtStart>
<web:Name>Emma</web:Name>
<web:Height>5.5</web:Height>
<web:Age>23</web:Age>
<web:Salary />
</web:EpisodeDataAtStart>
<web:EpisodeDataAtEnd>
<web:Grade>B</web:Grade>
<web:Salary>550</web:Salary>
</web:EpisodeDataAtEnd>
</web:EpisodeType>
</web:Episode>
<web:EmpUnit>17</web:EmpUnit>
<web:EmpOrg>XE</web:EmpOrg>
</web:LocoType>
</web:Loco>
<web:EndTimeUTC xsi:nil="true" />
</web:GetBatchResult>
</GetBatchResponse>
</soap:Body>
</soap:Envelope>'
WITH XMLNAMESPACES (DEFAULT 'https://webservices.aba.com/', 'http://schemas.xmlsoap.org/soap/envelope/' AS soap, 'https://webservices.aba.com/' AS web)
SELECT
P.PT.value('(./web:EpisodeId/text())[1]','INT') AS INT,
P.PT.value('(./web:StartTime/text())[1]','DATETIME') AS StartTime,
L.LT.value('(./web:EmpUnit/text())[1]','int') AS EmpUnit,
L.LT.value('(./web:EmpOrg/text())[1]','char(2)') AS EmpOrg
FROM #XML.nodes('soap:Envelope/soap:Body/GetBatchResponse/web:GetBatchReult/web:Loco/web:LocoType') L(LT)
CROSS APPLY L.LT.nodes('web:Episode/web:EpisodeType')P(PT);
I also need the values for Name, Height, Age, SalaryAtStart, Grade and SalaryAtEnd
Need some help. Thanks in advance.

WPF log4net is not writing to the log file [duplicate]

This question already has an answer here:
WPF-Log4Net used inside VSIX extension did not output log when installed at target VS
(1 answer)
Closed 4 years ago.
I have a WPF solution. I downloaded log4net dll, I added log4net.config and had set the "Copy to Output Directory" value as "Copy always".
log4net.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<log4net>
<root>
<level value="ALL" />
<appender-ref ref="LogFileAppender" />
</root>
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
<file value="myapp.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="5" />
<maximumFileSize value="10MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %level %logger - %message%newline" />
</layout>
</appender>
</log4net>
</configuration>
And I added the below line in AssemblyInfo.cs:
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
then the below code in my TestWindowControl.xaml.cs
public partial class TestWindowControl : UserControl
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public TestWindowControl()
{
XmlConfigurator.Configure(new System.IO.FileInfo("log4net.config"));
log.Info("info testing");
log.Debug("debug testing");
log.Error("error testing");
log.Fatal("fatal testing");
log.Warn("warn testing");
}
}
But logs are not writing to the file. It's working in Console application but not working for WPF. Am I missing something?
Try to set the filter inside appender
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="WARN" />
<levelMax value="ERROR" />
</filter>

What is wrong with this log4.net configuration?

It sure looks like it should work. It throws no errors, steps through every line of code, but produces no log file. What is wrong here? It should produce a log file in the directory of the appender name, but no log file ever generates.
log4net.xml file:
<configuration>
<log4net debug="true">
<appender name ="task_appender" type="log4net.Appender.RollingAppender">
<file value="C:\Users\ryan\Documents\Visual Studio 2017\Workout Project\GPWorkouts\blablabla.txt"></file>
<appendToFile value="true"/>
<rollingStyle value="Size"/>
<maxSizeRollBacks value="2"/>
<maximumFileSize value="5000KB"/>
<staticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline"></conversionPattern>
</layout>
</appender>
<root>
<level value="DEBUG"/>
</root>
<logger name="Task">
<level value="DEBUG"/>
<appender-ref ref="task_appender"/>
</logger>
</log4net>
</configuration>
application file:
public partial class MainWindow : Window
{
static protected ILog log = LogManager.GetLogger("Task");
static void log4net_demo()
{
FileInfo fi = new FileInfo("log4net.xml");
log4net.Config.XmlConfigurator.Configure(fi);
log4net.GlobalContext.Properties["host"] = Environment.MachineName;
}
public MainWindow()
{
InitializeComponent();
log4net_demo();
log.Info("This is the information log level");
log.Debug("This is the debugging log level");
log.Error("This is the error log level");
log.Fatal("This is the fatal log level");
}
Looks like some typo in your log4net config, the correct appender type name is log4net.Appender.RollingFileAppender
In your xml, it was given as log4net.Appender.RollingAppender
Here is the corrected xml
<configuration>
<log4net debug="true">
<appender name ="task_appender" type="log4net.Appender.RollingFileAppender">
<file value="C:\Users\ryan\Documents\Visual Studio 2017\Workout Project\GPWorkouts\blablabla.txt"></file>
<appendToFile value="true"/>
<rollingStyle value="Size"/>
<maxSizeRollBacks value="2"/>
<maximumFileSize value="5000KB"/>
<staticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline"></conversionPattern>
</layout>
</appender>
<root>
<level value="DEBUG"/>
</root>
<logger name="Task">
<level value="DEBUG"/>
<appender-ref ref="task_appender"/>
</logger>
</log4net>
</configuration>

Parsing Locally Registered SQL Server names XML file using Vb .Net

I need to retrieve names of the locally registered MS SQL Servers that get stored in a XML file. This is usually located at "C:\Users\XYZ\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell\RegSrvr.xml"
Once retrieved, I need to populate these in a combobox. I am using below code. But could not figure out which tag to use from this xml for the "m_xmld.SelectNodes" code. Any advise is appreciated.
If System.IO.File.Exists(RegSrvrFile) Then
Dim m_xmld As XmlDocument
Dim m_nodelist As XmlNodeList
Dim m_node As XmlNode
'Create the XML Document
m_xmld = New XmlDocument()
'Load the Xml file
m_xmld.Load(RegSrvrFile)
'Get the list of name nodes
m_nodelist = m_xmld.SelectNodes("/model/instances/document/data/RegisteredServers")
End If
End If
Sample XML is attached.
<?xml version="1.0"?>
<model xmlns="http://schemas.serviceml.org/smlif/2007/02">
<identity>
<name>urn:uuid:96fe1236-abf6-4a57-b54d-e9baab394fd1</name>
<baseURI>http://documentcollection/</baseURI>
</identity>
<xs:bufferSchema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<definitions xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08">
<document>
<docinfo>
<aliases>
<alias>/system/schema/RegisteredServers</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<xs:schema targetNamespace="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="RegisteredServersStore">
<xs:complexType>
<xs:sequence>
<xs:any namespace="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServerGroup">
<xs:complexType>
<xs:sequence>
<xs:any namespace="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="RegisteredServer">
<xs:complexType>
<xs:sequence>
<xs:any namespace="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" processContents="skip" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<RegisteredServers:bufferData xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08">
<instances xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08">
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:RegisteredServersStore xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:ServerGroups>
<sfc:Collection>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/AnalysisServicesServerGroup</sml:Uri>
</sfc:Reference>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/CentralManagementServerGroup</sml:Uri>
</sfc:Reference>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</sml:Uri>
</sfc:Reference>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</sml:Uri>
</sfc:Reference>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/ReportingServicesServerGroup</sml:Uri>
</sfc:Reference>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/SqlServerCompactEditionServerGroup</sml:Uri>
</sfc:Reference>
</sfc:Collection>
</RegisteredServers:ServerGroups>
</RegisteredServers:RegisteredServersStore>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/AnalysisServicesServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">AnalysisServicesServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">AnalysisServices</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/CentralManagementServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">CentralManagementServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">DatabaseEngine</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:RegisteredServers>
<sfc:Collection>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/RegisteredServer/MYSQLSERVER\DBInstance</sml:Uri>
</sfc:Reference>
</sfc:Collection>
</RegisteredServers:RegisteredServers>
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">DatabaseEngineServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">DatabaseEngine</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/RegisteredServer/MYSQLSERVER\DBInstance</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:RegisteredServer xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">MYSQLSERVER\DBInstance</RegisteredServers:Name>
<RegisteredServers:ServerName type="string">MYSQLSERVER\DBInstance</RegisteredServers:ServerName>
<RegisteredServers:UseCustomConnectionColor type="boolean">false</RegisteredServers:UseCustomConnectionColor>
<RegisteredServers:CustomConnectionColorArgb type="int">0</RegisteredServers:CustomConnectionColorArgb>
<RegisteredServers:ServerType type="ServerType">DatabaseEngine</RegisteredServers:ServerType>
<RegisteredServers:ConnectionStringWithEncryptedPassword type="string">data source=MYSQLSERVER\DBInstance;integrated security=True;pooling=False;multipleactiveresultsets=False</RegisteredServers:ConnectionStringWithEncryptedPassword>
<RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginName</RegisteredServers:CredentialPersistenceType>
</RegisteredServers:RegisteredServer>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:RegisteredServers>
<sfc:Collection>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup/RegisteredServer/MYSQLSERVER</sml:Uri>
</sfc:Reference>
</sfc:Collection>
</RegisteredServers:RegisteredServers>
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">IntegrationServicesServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">IntegrationServices</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup/RegisteredServer/MYSQLSERVER</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:RegisteredServer xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">MYSQLSERVER</RegisteredServers:Name>
<RegisteredServers:ServerName type="string">MYSQLSERVER</RegisteredServers:ServerName>
<RegisteredServers:UseCustomConnectionColor type="boolean">false</RegisteredServers:UseCustomConnectionColor>
<RegisteredServers:CustomConnectionColorArgb type="int">0</RegisteredServers:CustomConnectionColorArgb>
<RegisteredServers:ServerType type="ServerType">IntegrationServices</RegisteredServers:ServerType>
<RegisteredServers:ConnectionStringWithEncryptedPassword type="string">server=MYSQLSERVER</RegisteredServers:ConnectionStringWithEncryptedPassword>
<RegisteredServers:CredentialPersistenceType type="CredentialPersistenceType">PersistLoginName</RegisteredServers:CredentialPersistenceType>
</RegisteredServers:RegisteredServer>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/ReportingServicesServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">ReportingServicesServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">ReportingServices</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
<document>
<docinfo>
<aliases>
<alias>/RegisteredServersStore/ServerGroup/SqlServerCompactEditionServerGroup</alias>
</aliases>
<sfc:version DomainVersion="1" />
</docinfo>
<data>
<RegisteredServers:ServerGroup xmlns:RegisteredServers="http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08" xmlns:sfc="http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RegisteredServers:Parent>
<sfc:Reference sml:ref="true">
<sml:Uri>/RegisteredServersStore</sml:Uri>
</sfc:Reference>
</RegisteredServers:Parent>
<RegisteredServers:Name type="string">SqlServerCompactEditionServerGroup</RegisteredServers:Name>
<RegisteredServers:ServerType type="ServerType">SqlServerCompactEdition</RegisteredServers:ServerType>
</RegisteredServers:ServerGroup>
</data>
</document>
</instances>
</RegisteredServers:bufferData>
</xs:schema>
</data>
</document>
</definitions>
</xs:bufferSchema>
</model>
Your query is missing namespaces, and doesn't seem to actually point to a node. Try something like this:
Dim xml As String = "<?xml version=""1.0""?><model xmlns=""http://schemas.serviceml.org/smlif/2007/02""><identity><name>urn:uuid:96fe1236-abf6-4a57-b54d-e9baab394fd1</name><baseURI>http://documentcollection/</baseURI></identity><xs:bufferSchema xmlns:xs=""http://www.w3.org/2001/XMLSchema""><definitions xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08""><document><docinfo><aliases><alias>/system/schema/RegisteredServers</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><xs:schema targetNamespace=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"" elementFormDefault=""qualified""><xs:element name=""RegisteredServersStore""><xs:complexType><xs:sequence><xs:any namespace=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" processContents=""skip"" minOccurs=""0"" maxOccurs=""unbounded"" /></xs:sequence></xs:complexType></xs:element><xs:element name=""ServerGroup""><xs:complexType><xs:sequence><xs:any namespace=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" processContents=""skip"" minOccurs=""0"" maxOccurs=""unbounded"" /></xs:sequence></xs:complexType></xs:element><xs:element name=""RegisteredServer""><xs:complexType><xs:sequence><xs:any namespace=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" processContents=""skip"" minOccurs=""0"" maxOccurs=""unbounded"" /></xs:sequence></xs:complexType></xs:element><RegisteredServers:bufferData xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08""><instances xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08""><document><docinfo><aliases><alias>/RegisteredServersStore</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:RegisteredServersStore xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:ServerGroups><sfc:Collection><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/AnalysisServicesServerGroup</sml:Uri></sfc:Reference><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/CentralManagementServerGroup</sml:Uri></sfc:Reference><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</sml:Uri></sfc:Reference><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</sml:Uri></sfc:Reference><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/ReportingServicesServerGroup</sml:Uri></sfc:Reference><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/SqlServerCompactEditionServerGroup</sml:Uri></sfc:Reference></sfc:Collection></RegisteredServers:ServerGroups></RegisteredServers:RegisteredServersStore></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/AnalysisServicesServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">AnalysisServicesServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">AnalysisServices</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/CentralManagementServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">CentralManagementServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">DatabaseEngine</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:RegisteredServers><sfc:Collection><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/RegisteredServer/MYSQLSERVER\DBInstance</sml:Uri></sfc:Reference></sfc:Collection></RegisteredServers:RegisteredServers><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">DatabaseEngineServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">DatabaseEngine</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup/RegisteredServer/MYSQLSERVER\DBInstance</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:RegisteredServer xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/DatabaseEngineServerGroup</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">MYSQLSERVER\DBInstance</RegisteredServers:Name><RegisteredServers:ServerName type=""string"">MYSQLSERVER\DBInstance</RegisteredServers:ServerName><RegisteredServers:UseCustomConnectionColor type=""boolean"">false</RegisteredServers:UseCustomConnectionColor><RegisteredServers:CustomConnectionColorArgb type=""int"">0</RegisteredServers:CustomConnectionColorArgb><RegisteredServers:ServerType type=""ServerType"">DatabaseEngine</RegisteredServers:ServerType><RegisteredServers:ConnectionStringWithEncryptedPassword type=""string"">data source=MYSQLSERVER\DBInstance;integrated security=True;pooling=False;multipleactiveresultsets=False</RegisteredServers:ConnectionStringWithEncryptedPassword><RegisteredServers:CredentialPersistenceType type=""CredentialPersistenceType"">PersistLoginName</RegisteredServers:CredentialPersistenceType></RegisteredServers:RegisteredServer></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:RegisteredServers><sfc:Collection><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup/RegisteredServer/MYSQLSERVER</sml:Uri></sfc:Reference></sfc:Collection></RegisteredServers:RegisteredServers><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">IntegrationServicesServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">IntegrationServices</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup/RegisteredServer/MYSQLSERVER</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:RegisteredServer xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore/ServerGroup/IntegrationServicesServerGroup</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">MYSQLSERVER</RegisteredServers:Name><RegisteredServers:ServerName type=""string"">MYSQLSERVER</RegisteredServers:ServerName><RegisteredServers:UseCustomConnectionColor type=""boolean"">false</RegisteredServers:UseCustomConnectionColor><RegisteredServers:CustomConnectionColorArgb type=""int"">0</RegisteredServers:CustomConnectionColorArgb><RegisteredServers:ServerType type=""ServerType"">IntegrationServices</RegisteredServers:ServerType><RegisteredServers:ConnectionStringWithEncryptedPassword type=""string"">server=MYSQLSERVER</RegisteredServers:ConnectionStringWithEncryptedPassword><RegisteredServers:CredentialPersistenceType type=""CredentialPersistenceType"">PersistLoginName</RegisteredServers:CredentialPersistenceType></RegisteredServers:RegisteredServer></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/ReportingServicesServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">ReportingServicesServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">ReportingServices</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document><document><docinfo><aliases><alias>/RegisteredServersStore/ServerGroup/SqlServerCompactEditionServerGroup</alias></aliases><sfc:version DomainVersion=""1"" /></docinfo><data><RegisteredServers:ServerGroup xmlns:RegisteredServers=""http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08"" xmlns:sfc=""http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08"" xmlns:sml=""http://schemas.serviceml.org/sml/2007/02"" xmlns:xs=""http://www.w3.org/2001/XMLSchema""><RegisteredServers:Parent><sfc:Reference sml:ref=""true""><sml:Uri>/RegisteredServersStore</sml:Uri></sfc:Reference></RegisteredServers:Parent><RegisteredServers:Name type=""string"">SqlServerCompactEditionServerGroup</RegisteredServers:Name><RegisteredServers:ServerType type=""ServerType"">SqlServerCompactEdition</RegisteredServers:ServerType></RegisteredServers:ServerGroup></data></document></instances></RegisteredServers:bufferData></xs:schema></data></document></definitions></xs:bufferSchema></model>"
Dim m_xmld As XmlDocument
Dim m_nodelist As XmlNodeList
Dim m_node As XmlNode
'Create the XML Document
m_xmld = New XmlDocument()
'Load the Xml file
m_xmld.LoadXml(xml)
Dim m_xmlnsmgr As XmlNamespaceManager
m_xmlnsmgr = New XmlNamespaceManager(m_xmld.NameTable)
m_xmlnsmgr.AddNamespace("rs", "http://schemas.microsoft.com/sqlserver/RegisteredServers/2007/08")
m_xmlnsmgr.AddNamespace("sfc", "http://schemas.microsoft.com/sqlserver/sfc/serialization/2007/08")
m_xmlnsmgr.AddNamespace("sml", "http://schemas.serviceml.org/sml/2007/02")
'Get the list of name nodes
m_nodelist = m_xmld.SelectNodes("//rs:RegisteredServer", m_xmlnsmgr)
For Each el In m_nodelist
Console.WriteLine(el.SelectSingleNode("rs:ServerName", m_xmlnsmgr).InnerText)
Next
Console.ReadKey()
This will select all RegisteredServer nodes in the "RegisteredServers" namespace, and then loop through them to get the ServerName node in the same namespace.

Adding SQL Stored Procedure Parameters to an existing Schema and SendPort

This biztalk Orch was working perfectly before I touched it. I did two things:
Modified the schema below adding 3 key, type and c_date
Modified my message transform so that those 3 additional parameters were mapped to the destination schema.
<?xml version="1.0" encoding="utf-16"?>
<schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Data" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/Sql/2008/05/Procedures/dbo" version="1.0" xmlns="http://www.w3.org/2001/XMLSchema">
<import schemaLocation=".\sqlBinding_System_x2eData.xsd" namespace="http://schemas.datacontract.org/2004/07/System.Data" />
<annotation>
<appinfo>
<fileNameHint xmlns="http://schemas.microsoft.com/servicemodel/adapters/metadata/xsd">Procedure.dbo</fileNameHint>
<references xmlns="http://schemas.microsoft.com/BizTalk/2003">
<reference targetNamespace="http://schemas.datacontract.org/2004/07/System.Data" />
</references>
</appinfo>
</annotation>
<element name="Vendor_Receive_IPN_Message_sp">
<annotation>
<documentation>
<doc:action xmlns:doc="http://schemas.microsoft.com/servicemodel/adapters/metadata/documentation">Procedure/dbo/Vendor_Receive_IPN_Message_sp</doc:action>
</documentation>
</annotation>
<complexType>
<sequence>
<element minOccurs="0" maxOccurs="1" name="data" nillable="true" type="string" />
<element minOccurs="0" maxOccurs="1" name="key" nillable="true" type="string" />
<element minOccurs="0" maxOccurs="1" name="type" nillable="true" type="string" />
<element minOccurs="0" maxOccurs="1" name="c_date" nillable="true" type="dateTime" />
</sequence>
</complexType>
</element>
<element name="Vendor_Receive_IPN_Message_spResponse">
<annotation>
<documentation>
<doc:action xmlns:doc="http://schemas.microsoft.com/servicemodel/adapters/metadata/documentation">Procedure/dbo/Vendor_Receive_IPN_Message_sp/response</doc:action>
</documentation>
</annotation>
<complexType>
<sequence>
<element minOccurs="0" maxOccurs="1" name="Vendor_Receive_IPN_Message_spResult" nillable="true" type="ns3:ArrayOfDataSet" />
<element minOccurs="1" maxOccurs="1" name="ReturnValue" type="int" />
</sequence>
</complexType>
</element>
</schema>
I'm getting this error:
The adapter failed to transmit message going to send port "SendPort IPN Message to SQL" with
URL "mssql://myserver:1433//mydb?". It will be retransmitted after
the retry interval specified for this Send Port.
Details:"Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException:
The start element with name "key" and namespace
"http://schemas.microsoft.com/Sql/2008/05/Procedures/dbo" was unexpected.
Please ensure that your input XML conforms to the schema for the operation.
What step am I missing?
When you add nodes to a SP schema, they have to be
In the same order as in the procedure (is #key the second param, or did you put it before #data?).
Use the same spelling and casing as the procedure (is it called #key or #Key in the procedure?).
Use an XSD data type that corresponds to the datatype the procedure expects (is #key a (N)VARCHAR or (N)CHAR?).
The error you're getting indicates either 1 or 2 isn't correct. Show us your procedure definition to be sure. You could also regenerate the schema for the procedure in a separate (throw away) project and compare it with your changes.

Resources