error in configuring FTP Send Port programmatically

Home Page Forums BizTalk 2004 – BizTalk 2010 error in configuring FTP Send Port programmatically

Viewing 1 reply thread
  • Author
    Posts
    • #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\”> “

      +

       

       

      “&lt;Config xmlns:xsi=’http://www.w3.org/2001/XMLSchema-instance'&#8221;

      +

       

       

       “xmlns:xsd=’http://www.w3.org/2001/XMLSchema’&gt;&lt;serverAddress&gt;192.168.0.30&lt;/serverAddress&gt;&#8221;

      +

       

       

      “&lt;serverPort&gt;21&lt;/serverPort&gt;&lt;userName&gt;root&lt;/userName&gt;”

      +

       

       

      “&lt;password&gt;*******&lt;/password&gt;&lt;accountName&gt;root&lt;/accountName&gt;&lt;targetFolder&gt;”

      +

       

       

      “&lt;/targetFolder&gt;&lt;targetFileName&gt;%MessageID%.xml&lt;/targetFileName&gt;&lt;commandLogFilename&gt;”

      +

       

       

      “c:\ftpsendlog.txt&lt;/commandLogFilename&gt;&lt;representationType&gt;binary&lt;/representationType&gt;&lt;”

      +

       

       

      “beforePut&gt;CDW dir&lt;/beforePut&gt;&lt;afterPut&gt;CDUP &lt;/afterPut&gt;&lt;allocateStorage&gt;False&lt;”

      +

       

       

      “/allocateStorage&gt;&lt;spoolingFolder&gt;tempfolder&lt;/spoolingFolder&gt;&lt;connectionLimit&gt;0&lt;”

      +

       

       

      “/connectionLimit&gt;&lt;passiveMode&gt;False&lt;/passiveMode&gt;&lt;uri”

      +

       

       

      “&gt;ftp://192.168.0.30:21/%MessageID%.xml&lt;/uri&gt;&lt;/Config&gt;&#8221;

      +

       

       

      “</AdapterConfig>”

      +

       

       

      “</CustomProps>”

      ;

       

       Error is “Invalid or malformed XML data.”

      Please help me to find what I am doing wrong here.

      Thanks,

      Viral Panchal

       

       

       

    • #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 &gt or &lt sign or something like that that makes the xml invalid.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.