This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Dec 24, 2013, 6:15 AM
1 Posts

web service with atachment

  • Category: Application Development
  • Platform: Linux
  • Release: 9.0.1
  • Role: Developer
  • Tags: webservice,attachments
  • Replies: 1

Hi,

I am .Net developer and a novice in domino. I have a requirement to create a web service provider in domino which will accept details of an email like: To, CC, BCC, Subject, Body, and an PDF file as an attachment. The domino service will call the mail server to send mail with all this.

Can I get some help in this context please. I have created a service which i can consume in .net but I am stuck in sending the pdf attachment.

Jul 23, 2014, 9:37 AM
12 Posts
Our approach

Hi, we are using providers in domino to transfer files between  our vendors and ourselves. We have a very simply approach but it has limits of up to a 5.5 to 6.5mb file. Our large files we receive are about 2mb so no problem for us. We move about 1500 to 3000 files a day. We do not use Lotusscript for this as its to slow.

Regards the attachment, we receive a base64 encoded string in one of the properties and decode the content once we have received it.

This is what it looks like in soapui - we essentialy have 4 properties and thats it. Our fields are an xml string so we can add and remove without having to recompile or get the vendor to redo stuff on there side. Hope this helps you.

 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DefaultNamespace">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:SubmitDocument soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <strUser xsi:type="xsd:string">xxxxx</strUser>
         <strPassword xsi:type="xsd:string">xxxxxx</strPassword>
         <strMSG xsi:type="xsd:string"><![CDATA[<Message><AppRefNo></AppRefNo><DealerCode></DealerCode><FileType></FileType><FileFormat></FileFormat></Message>]]></strMSG>
         <fileB64 xsi:type="xsd:string">h0bWwKACAAAAAAAAEAGADAieRYkkXMAbygzRJuh88BvKDNEm6HzwFQSwUGAAAAALEBsQGs0gAAlZFhAAAA..............................................</fileB64>
      </urn:SubmitDocument>
   </soapenv:Body>
</soapenv:Envelope>

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal