The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
| |
|
Re: HTTP Post
Posted: 02 Mar 07 8:02 PM
|
fiogf49gjkf0d ?? Are you talking web or lan.. -- rjl |
|
|
|
Re: HTTP Post
Posted: 03 Mar 07 8:09 AM
|
fiogf49gjkf0d In this case, LAN, but it would be helpful to know for either. |
|
|
|
Re: HTTP Post
Posted: 03 Mar 07 11:39 AM
|
fiogf49gjkf0d Michael, I dont quite follow. How are you posting to the LAN client? Please elaborate what you are after and I am certain we can help out.
Timmus |
|
|
|
Re: HTTP Post
Posted: 03 Mar 07 4:50 PM
|
fiogf49gjkf0d That's the issue. The client can only get this data via an HHTP post. So my problem is how to create a web service that I can use to parse the post to update SLX through the provider. |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 12:06 AM
|
fiogf49gjkf0d Originally posted by Michael Fortier
That's the issue. The client can only get this data via an HHTP post. So my problem is how to create a web service that I can use to parse the post to update SLX through the provider. |
|
Hi Mike. I guess the question is "post to what"? What exactly do they want to do a HTTP post to? You could create a webpage that they could programatically POST to, then grab the posted values in the webpage and do whatever you want with them. Or use a webservice that they can POST to as well.
What exactly is the scenario they are trying to do? Can you provide more details about what they are trying to accomplish? |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 1:00 AM
|
fiogf49gjkf0d You can create a web service (that accepts GET, POST, and/or SOAP messages) in ASP.Net quite easily. Do you have access to visual studio, a web server (IIS), and access to open ports and restrict by incoming IPs in your firewall (assuming an outside call)?
|
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 6:24 AM
|
fiogf49gjkf0d The client is subscribing to a leads service where prospects can sign up online. The leads service only will output either: 1. a once a day FTP download or , 2. or a real time HTTP POST. They are not running SLX Web, but want to take this HTTP Post and import it in real time to SLX LAN. I have Visual Studio, a web server, etc. but I can't find any samples on parsing an HTTP POST stream. I can manually create one but wanted to see if there was a shortcut. I haven't done a lot with web services...
Here's a sample POST: Transaction time: 02/26/2007 Mon (18:19:56) Program Id:/FB/1919 Classification filter:abd Actual classification:a Destination URL:http://www.somewhere.com/servlet/servlet.WebToLead Raw data sent:oid=00D300000000NjI&first_name=Cindy&company=Smith+Inc&state=+MA+&industry=Media%2FTV%2FPrint%2FOnline%2FAdvertising%2FMarketing%2FPR&phone=508-303-9700&rating=&street=123+Fake+St++++++&00N30000000gtP2=&00N30000000gtP0=ODC+White+Paper&email=clk%40yahoo.com&00N30000000gtOy=Inbound+Promo&country=United+States+of+America&city=Southborough&last_name=Jones&zip=01772&00N30000000jfPA=%5BODC%5D+White+Paper+-+Online+Data+Collection+++++%5BODC%5D+I+am+not+using+a+web+response+management+system&title=Sales Response:HTTP/1.1 200 OK |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 8:53 AM
|
fiogf49gjkf0d Originally posted by Michael Fortier
The client is subscribing to a leads service where prospects can sign up online. The leads service only will output either: 1. a once a day FTP download or , 2. or a real time HTTP POST. .....
|
|
Since you can get an FTP post.. I'd suggest using TaskCentre.. it's a SANP to do this kind of thing in TaskCentre and you will save your client a lot of $$$
-- rjl |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 11:05 AM
|
fiogf49gjkf0d That's an option. But they really want to use an HTTP POST because it's in real time so they can respond faster. They want to respond in 15 minutes as having to wait a day. |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 11:54 AM
|
fiogf49gjkf0d You don't have to parse the POST stream yourself. Use the Request object.
For example, if they posted something with two variables, "firstname" and "lastname" like:
<form> <input name="firstname" value="John"> <input name="lastname" value="Doe"> </form>
in your asp.net form_load, reference Request["firstname"] or Request["lastname"]
Or, if you want to use asp, here is a sample. Save the following as test.asp: [code] < % response.write "Name" & request("firstname") & " " & request("lastname") % > [/code]
Your example does not look like a HTTP Post. An example of a HTTP POST is:
POST /Dir/somefile.asp HTTP/1.1 Host: www.domain.com Content-Type: application/x-www-form-urlencoded Content-Length: LENGTH
firstname=john&lastname=doe
I would expect that the leads service would provide sample scripts for parsing its data if it is sending non standard data. Have you checked with them?
Eric |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 1:55 PM
|
fiogf49gjkf0d Originally posted by Michael Fortier
That's an option. But they really want to use an HTTP POST because it's in real time so they can respond faster. They want to respond in 15 minutes as having to wait a day. |
|
TaskCentre can handle the time requirements. -- rjl |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 1:58 PM
|
fiogf49gjkf0d You can also use an "email trigger" approach. This is the way we do it oursenves (w/TaskCentre).
The Website sends a formatted email message to a specific email address w/a specific subject. TaskCentre "triggers" off the email as soon as it arrives and the rest is handled automatically. -- rjl |
|
|
|
Re: HTTP Post
Posted: 04 Mar 07 7:21 PM
|
fiogf49gjkf0d All you really have to do is create an ASP.NET page (or traiditional ASP) - see Eric's post - and have them post to that. You could iterate through the posted values using the Request object and do whatever you want with them (ie: write to the database etc)
For a POST you'll find the values in Request.Form (instead of in the querystring as you'd find with a GET)
string val = Request.Form["MyVal"];
You can iterate through the Form values and key names as well and just output that somewhere to see what you're dealing with.
|
|
|
|