User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 391,637 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,799 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:

posting data from a form to msg broker fail

Join Date: Jul 2007
Posts: 1
Reputation: Cragdo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Cragdo Cragdo is offline Offline
Newbie Poster

posting data from a form to msg broker fail

  #1  
Jul 16th, 2007
Hi folks,

I been asked to post data from a form to a msg broker system being tested by an external team. I have been told that all I should do is post the data using http request in the following format to a server.

  1. var http =new HttpClient();
  2. var url="http://P510-4.nottscc.gov.uk:7080/FOI";
  3. http.contentType = "'text/xml'";
  4. http.requestHeader = ['SOAPAction: "http://P510-4.nottscc.gov.uk:7080/
  5. FOI"'];
  6.  
  7. http.postData ='';
  8. http.postData +='';
  9. http.postData +='';
  10. http.postData +='';
  11. http.postData +='';
  12.  
  13. http.postData +='';
  14. http.postData +=''+firstname+'';
  15. http.postData +=''+surname+'';
  16. http.postData +='
  17. '+address+'
  18. ';
  19. http.postData +=''+county+'';
  20. http.postData +=''+postcode+'';
  21. http.postData +=''+emailaddress+'';
  22. http.postData +=''+telno+'';
  23. http.postData +=''+requestdetails+'';
  24. http.postData +=''+requestRef+'';
  25. http.postData +=''+entryDate+'';
  26. http.postData +='';
  27. http.postData +='';
  28. http.postData +='';
  29. http.postData +='';
  30. //http.postData = escape(http.postData);
  31.  
  32. var sendMyRequest = http.sendRequest(url);

it posts but breaks off after the first line of the post data

The form is on:
http://www.nottinghamshire.gov.uk/ho...roker-form.htm

The msg broker system expects a package of XML. I'm being told it just needs to send a normal http post and doesn't need to use web services.

I've tried posting as he says (see attached - the variables are from request strings from the form) but it doesn't accept it.

Can anyone tell me why this does not work please. I am fairly new to XML and would appreciate any help.

Thanks
Attached Files
File Type: xml foimsgbroker_5089.xml (1.3 KB, 2 views)
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 1:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC