Home Page › Forums › BizTalk 2004 – BizTalk 2010 › error in configuring FTP Send Port programmatically
- This topic has 2 replies, 1 voice, and was last updated 9 years, 6 months ago by
community-content.
-
AuthorPosts
-
-
June 15, 2009 at 2:38 AM #22655
Hello All,
I am writing code to configure the FTP send port progrmmatically. But I am getting error in Setting TransportTypeData.
Here is what I am writing to set this property:
myStaticOnewaySendPort.PrimaryTransport.TransportTypeData =
“” +//”<TransportTypeData>” +
“<CustomProps> “
+
“<AdapterConfig vt=\”8\”> “
+
“<Config xmlns:xsi=’http://www.w3.org/2001/XMLSchema-instance'”
+
“xmlns:xsd=’http://www.w3.org/2001/XMLSchema’><serverAddress>192.168.0.30</serverAddress>”
+
“<serverPort>21</serverPort><userName>root</userName>”
+
“<password>*******</password><accountName>root</accountName><targetFolder>”
+
“</targetFolder><targetFileName>%MessageID%.xml</targetFileName><commandLogFilename>”
+
“c:\ftpsendlog.txt</commandLogFilename><representationType>binary</representationType><”
+
“beforePut>CDW dir</beforePut><afterPut>CDUP </afterPut><allocateStorage>False<”
+
“/allocateStorage><spoolingFolder>tempfolder</spoolingFolder><connectionLimit>0<”
+
“/connectionLimit><passiveMode>False</passiveMode><uri”
+
“>ftp://192.168.0.30:21/%MessageID%.xml</uri></Config>”
+
“</AdapterConfig>”
+
“</CustomProps>”
;
Error is “Invalid or malformed XML data.”
Please help me to find what I am doing wrong here.
Thanks,
Viral Panchal
-
June 19, 2009 at 8:35 AM #22691
Have you tried manually configuring a port, then exporting the binding for it and comparing that with what you are building in your string?
I would guess that your code to build the xml is missing a > or < sign or something like that that makes the xml invalid.
-
March 6, 2010 at 6:33 AM #24326
How to export config settings in XML file?
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.