BizTalk Gurus

File transfer between web services

rated by 0 users
Answered (Verified) This post has 1 verified answer | 3 Replies | 1 Follower

Top 500 Contributor
4 Posts
RomanB posted on Sun, Jun 14 2009 11:07 PM

Hi all,

i have 2 web services(not generated by biztalk web services publishing wizzard) and i am need to transfer file(.doc or .rtf) from 1st service to 2nd.
Is there any way to do this using soap adapter only?

Answered (Verified) Verified Answer

Top 10 Contributor
874 Posts
Verified by RomanB

If you are retrieving the file from an non-Biztalk web service and sending to another non-Biztalk web service then the easiest way would be to Base64 encode the file stream into an Xml node of the Soap message. Biztalk would not need to decode this data, just send it to the other web service that would decode the base64 back to a file stream.

Alternatively you could use the WCF Adapter and MTOM to move the file payload. This would be more complicated but faster - smaller messages and no base64 encoding/decoding.

 

All Replies

Top 10 Contributor
874 Posts

Should be possible, how is the file transported in the web service payload. Does it use MIME, MTOM or hopefully not DIME. Is the file Base64 encoded into the Xml Soap body?

 

Top 500 Contributor
4 Posts
RomanB replied on Wed, Jun 17 2009 2:19 AM

This scenario is under delevopment, and it is necessary to undersand could this be performed using biztalk soap adater only. Web services will be oriented to biztalk compatibility, so the way they receive data is not important. At the moment it is necessary to understand what cases soap adapter supports. In future integration will be expanded, so it is necessary  that all actions are performed with biztalk built-in tools. Base64 encoding could fit only if BizTalk can decode the document without any programming or external additions.

Top 10 Contributor
874 Posts
Verified by RomanB

If you are retrieving the file from an non-Biztalk web service and sending to another non-Biztalk web service then the easiest way would be to Base64 encode the file stream into an Xml node of the Soap message. Biztalk would not need to decode this data, just send it to the other web service that would decode the base64 back to a file stream.

Alternatively you could use the WCF Adapter and MTOM to move the file payload. This would be more complicated but faster - smaller messages and no base64 encoding/decoding.

 

Page 1 of 1 (4 items) | RSS