| Author |
FTP Dynamic Send Port | How to change username and password?
|
|
| Sachin Surana 2006-03-16, 5:51 pm |
| I have a dynamic send port. Can I
a. Change the transport type dynamically i.e sometimes I send the message
using FTP protocol and at other times using HTTP protocol
b. Each transport type has different properties for example FTP has username
and password where as FILE transport type does not have. So how to set custom
properties for each protocol.
I could find only one property i.e Microsoft.XLANGs.BaseTypes.Address of the
port that can be changed. But how to change other properties.
| |
| Anirudha Vengurlekar 2006-03-16, 5:51 pm |
| FOR FTP:
OutputMessage(FTP.AfterPut) = sFTP_After_Put;
OutputMessage(FTP.BeforePut)=sFTP_Before_Put;
OutputMessage(FTP.Password) = sFTP_Password;
OutputMessage(FTP.RepresentationType) = sFTP_RepresentationType;
OutputMessage(FTP.UserName) = sFTP_UserName;
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=slTransportAddress;
Similar technique for other adapters ....
Hope this will help you.
Thanks,
Ani
"Sachin Surana" wrote:
> I have a dynamic send port. Can I
>
> a. Change the transport type dynamically i.e sometimes I send the message
> using FTP protocol and at other times using HTTP protocol
>
> b. Each transport type has different properties for example FTP has username
> and password where as FILE transport type does not have. So how to set custom
> properties for each protocol.
>
> I could find only one property i.e Microsoft.XLANGs.BaseTypes.Address of the
> port that can be changed. But how to change other properties.
| |
| Sachin Surana 2006-03-17, 2:53 am |
| Hi Anirudha,
Thanks for your answer. I made similar changes but get a compilation error.
Which of the available shapes (from BTS toolbox) should be used to make the
changes to the message?
Should 'Message Assignment' shape be used?
Thanks,
Sachin
"Anirudha Vengurlekar" wrote:
[vbcol=seagreen]
> FOR FTP:
>
> OutputMessage(FTP.AfterPut) = sFTP_After_Put;
> OutputMessage(FTP.BeforePut)=sFTP_Before_Put;
> OutputMessage(FTP.Password) = sFTP_Password;
> OutputMessage(FTP.RepresentationType) = sFTP_RepresentationType;
> OutputMessage(FTP.UserName) = sFTP_UserName;
>
> DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=slTransportAddress;
>
> Similar technique for other adapters ....
>
> Hope this will help you.
>
> Thanks,
> Ani
>
> "Sachin Surana" wrote:
>
| |
| Anirudha Vengurlekar 2006-03-17, 5:52 pm |
| yes please use Message Assignment shape
"Sachin Surana" wrote:
[vbcol=seagreen]
> Hi Anirudha,
>
> Thanks for your answer. I made similar changes but get a compilation error.
> Which of the available shapes (from BTS toolbox) should be used to make the
> changes to the message?
>
> Should 'Message Assignment' shape be used?
>
> Thanks,
> Sachin
>
> "Anirudha Vengurlekar" wrote:
>
| |
| vicvanhalen 2006-08-02, 5:17 pm |
| I have a similar scenario as the one discussed here, but the one thing I cannot figure out is how to specify a subfolder within the FTP site.
For instance, if I assign the following direct FTP port:
portSendFTP(Microsoft.XLANGs.BaseTypes.Address) = "ftp://foo.com"
everything works fine. However,
portSendFTP(Microsoft.XLANGs.BaseTypes.Address) = "ftp://foo.com/subfolder"
will fail. I tried playing with the beforeput/afterput attributes, but had no luck. Can anyone help me?
Thanks,
Vic
quote: Originally posted by Anirudha Vengurlekar
yes please use Message Assignment shape
"Sachin Surana" wrote:
[vbcol=seagreen]
> Hi Anirudha,
>
> Thanks for your answer. I made similar changes but get a compilation error.
> Which of the available shapes (from BTS toolbox) should be used to make the
> changes to the message?
>
> Should 'Message Assignment' shape be used?
>
> Thanks,
> Sachin
>
> "Anirudha Vengurlekar" wrote:
>
|
|
|
|