Providing a HTTP Post receiver. No feedback. It's a one way pass through. IDoc via HTTP Post to WebApi, which sends it in a different format to a webservice. The last part is working when I implement it in the GET method.
The html page should just create a Post and thats it. I guess if I had a non-IIS webserver with that html page, the post would work.
I am still not get what are you trying. Check
this might help you.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
I want to use the action attribute of the form-Tag. Not AJAX/Jquery Handlers.
To describe it in a different way: I want to do the POST as in 2001.
btw: The webApi project, before it has been integrated into mvc, was able to process the post with the html i posted at the beginning. Something changed and it is no longer working.
Your link describes what to do, but unfortunatly the crucial part has not been described: How does the jquery Handler for the Post is linked to the PostContact function? Neither in the form, nor in the jquery the PostContact is mentioned. Well, in the route
neither.
He describes how the Contact class is created by WebApi, but I don't see how it works to get to the PostContacts as he described.
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
JanGD
0 Points
14 Posts
Re: Post Method results in unexpected download, which fails
May 23, 2012 07:36 AM|LINK
Providing a HTTP Post receiver. No feedback. It's a one way pass through. IDoc via HTTP Post to WebApi, which sends it in a different format to a webservice. The last part is working when I implement it in the GET method.
The html page should just create a Post and thats it. I guess if I had a non-IIS webserver with that html page, the post would work.
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: Post Method results in unexpected download, which fails
May 23, 2012 03:52 PM|LINK
I am still not get what are you trying. Check this might help you.
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
JanGD
0 Points
14 Posts
Re: Post Method results in unexpected download, which fails
May 24, 2012 04:53 AM|LINK
I want to use the action attribute of the form-Tag. Not AJAX/Jquery Handlers.
To describe it in a different way: I want to do the POST as in 2001.
btw: The webApi project, before it has been integrated into mvc, was able to process the post with the html i posted at the beginning. Something changed and it is no longer working.
Your link describes what to do, but unfortunatly the crucial part has not been described: How does the jquery Handler for the Post is linked to the PostContact function? Neither in the form, nor in the jquery the PostContact is mentioned. Well, in the route neither.
He describes how the Contact class is created by WebApi, but I don't see how it works to get to the PostContacts as he described.
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: Post Method results in unexpected download, which fails
May 24, 2012 06:48 AM|LINK
I think you need to learn more about web api. PLease check
http://stephenwalther.com/blog/archive/2012/03/05/introduction-to-the-asp-net-web-api.aspx
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD