Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, April 27, 2024 
 
slxdeveloper.com Community Forums  
   
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!
 External Development Forums - General External Development
Forum to discuss general external development topic (related or not to SalesLogix development). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General External Development | New ThreadView:  Search:  
 Author  Thread: HTTP Post
Michael Fortier
Posts: 12
 
HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 07 4:41 AM
fiogf49gjkf0d
Has anyone every tried to parse an HTTP Post stream to create a new account/contact in SLX?

TIA

Mike Fortier
BrainSell Technologies
mfortier@brainsell.net
www.brainsell.net
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Mar 07 8:02 PM
fiogf49gjkf0d
?? Are you talking web or lan..
--
rjl
[Reply][Quote]
Michael Fortier
Posts: 12
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Mar 07 8:09 AM
fiogf49gjkf0d
In this case, LAN, but it would be helpful to know for either.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Michael Fortier
Posts: 12
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 12:06 AM
fiogf49gjkf0d
Quote:
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?
[Reply][Quote]
Eric Carr
Posts: 2
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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)?
[Reply][Quote]
Michael Fortier
Posts: 12
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 8:53 AM
fiogf49gjkf0d
Quote:
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
[Reply][Quote]
Michael Fortier
Posts: 12
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Eric Carr
Posts: 2
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 07 1:55 PM
fiogf49gjkf0d
Quote:
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: HTTP PostYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/27/2024 3:49:13 PM