Conga versus .Net Sockets

Using (or providing) Microsoft.NET Classes

Conga versus .Net Sockets

Postby paulmansour on Sun Oct 31, 2010 5:45 am

Has anyone messsed around with System.Net.Sockets?

Obviously for passing APL arrays back and forth, Conga is the way to go. Is there any advantage to looking into .Net for Text or Raw sockets? Do they offer any advantages, or is Conga the best way across the board?

Thanks for any comments.
paulmansour
 
Posts: 420
Joined: Fri Oct 03, 2008 4:14 pm

Re: Conga versus .Net Sockets

Postby paulmansour on Sun Oct 31, 2010 5:59 am

One of the reasons I ask the above question is that I am having some problems connecting to a web service through a corportate firewall using Conga. It all works fine from our office, but at the customers site it doesn't work. I've been told by another vendor with a similar issue that this may have to do with the fact that I'm using the Dyalog HTTP connection instead of going through the Microsoft HTTP services and that because of this, we don't have the proxy information 'taken care of' for us by connection information provide by Internet Explorer. I'm not really sure what "Microsoft HTTP services" really is, or what this all means, but I thought maybe going thru .Net would solve the problem. Obviously I'm a bit out of my league here....
paulmansour
 
Posts: 420
Joined: Fri Oct 03, 2008 4:14 pm

Re: Conga versus .Net Sockets

Postby PhilGray on Mon Nov 01, 2010 12:49 pm

On the subject of Conga & DRC ..
I noticed there isn't a HTTPTools.HTTPPost function.
Has anyone written one yet ?
e.g. if one wanted to call a CGI-script with parameters in order to uplaod a local (Windows) file.
TIA
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm

Re: Conga versus .Net Sockets

Postby paulmansour on Mon Nov 01, 2010 3:04 pm

Phil,

I think I've done this, but not as a stand-alone function. Here is a code fragment that may be useful:

Code: Select all
     q←'<in>'
     q,←'<name>',tn,'</name>'
     q,←'<ops>',qt,'</ops>'
     q,←'</in>'
     l←↑⍴q
     cr nl←⎕UCS 13 10
     t←'POST /cgi-bin/xx.x?xxx=xxxx&xxx=x'
     t,←'&uid=',p.Username
     t,←'&pswd=',p.EncryptedPassword
     t,←'&sid=',p.SessionId
     t,←' http/1.0',cr,nl
     t,←'Content-Type: text/xml',cr,nl
     t,←'Content-Length: ',⍕l
     t,←4⍴cr,nl
     t,←q
     _←CreateClient 0
     r←DRC.Send'C1010't
     c←Receive p.ConnectionName


Note that CreateClient is just a cover for DRC.Clt.
paulmansour
 
Posts: 420
Joined: Fri Oct 03, 2008 4:14 pm

Re: Conga versus .Net Sockets

Postby PhilGray on Mon Nov 01, 2010 3:06 pm

Thx .. will try it.
PhilGray
 
Posts: 50
Joined: Sat Mar 13, 2010 7:55 pm


Return to Microsoft.NET

Who is online

Users browsing this forum: No registered users and 1 guest