advise from any WebDevs here

EnzoMC

Member
Messages
1,744
hi - just a long shot.... do we have any WebDevs here?

I need to create a web environment to accept XML messages and output the message as a file. This is new to me and spent yesterday looking at options, I've come across SOAP environment but can only find post/send samples. I'm also looking at using Eclipse which seems a nice powerful webdev environment.

I'm looking for advice on what to start learning and sample scripts to be able to set this up ? appreciate any assistance
 

Swedish Paul

Member
Messages
560
It all depends on what operating system or virtual machine you will be hosting the website on. Do you know?
 

ChrissGT

Junior Member
Messages
51
There is a number of ways to do this. Would use REST instead of SOAP. Just google 'REST api using java' and you should be good to go. The coding part should be pretty easy. Getting it running and deployed on the web server will probably take more time.

But there is enough to be found on these topics on the old interweb. Stackoverflow is probably gonna by your buddy. But there are loads of youtube videos and tutorial sites available.
 

Swedish Paul

Member
Messages
560
Which is why it would be good to know how you are hosting. I personally wouldn’t use Java. If you are hosting on MS, enable IIS and use the free Visual Studio with a Web API project. This would take no more than 4 hours from start to finish. If not using IIS look at Node.js and the Just Code Visual Studio. A little more involved but same result.
 

EnzoMC

Member
Messages
1,744
thank you all for the replies


It all depends on what operating system or virtual machine you will be hosting the website on. Do you know?
currently running WinServer2003 on VM - I know.... its old and retired... its the only spare licence I have. If needed I'll get a newer licence.



There is a number of ways to do this. Would use REST instead of SOAP. Just google 'REST api using java' and you should be good to go. The coding part should be pretty easy. Getting it running and deployed on the web server will probably take more time.

But there is enough to be found on these topics on the old interweb. Stackoverflow is probably gonna by your buddy. But there are loads of youtube videos and tutorial sites available.
I was looking at REST but most of the YT and forums talk about SOAP but thats maybe from my searching, I'll start looking into this - thanks



Which is why it would be good to know how you are hosting. I personally wouldn’t use Java. If you are hosting on MS, enable IIS and use the free Visual Studio with a Web API project. This would take no more than 4 hours from start to finish. If not using IIS look at Node.js and the Just Code Visual Studio. A little more involved but same result.
thanks - I have IIS running, any suggestions on which Web API project I should be looking at
 
Last edited:

Swedish Paul

Member
Messages
560
Download and install the latest version of Visual Studio Express. It’s free. Create a new project and pick ASP.Net Web Application. The next step, select Empty but check the Web API option. In the project, on the Controllers folder, add a new controller and select Web API 2 Controller Empty. In the new class, add your REST method. You will need to add an HttpPost and a Route decoration or simply call the method post.

If you are writing to a directory, then you will need to change the folder permissions on your web server. You probably need to add some token protection to stop an anonymous user from filling up your hard drive. And I would use https if possible.
 

EnzoMC

Member
Messages
1,744
Download and install the latest version of Visual Studio Express. It’s free. Create a new project and pick ASP.Net Web Application. The next step, select Empty but check the Web API option. In the project, on the Controllers folder, add a new controller and select Web API 2 Controller Empty. In the new class, add your REST method. You will need to add an HttpPost and a Route decoration or simply call the method post.

If you are writing to a directory, then you will need to change the folder permissions on your web server. You probably need to add some token protection to stop an anonymous user from filling up your hard drive. And I would use https if possible.
if you haven't noticed I have no scripts or knowledge on any of this other than I do know IIS (enough to setup and support) and basic HTTP and PHP so thank you for this.
In terms of access I'll have it locked down to a few IP addresses so only allowed used will be able to access it.
I'll report back...
 

ChrissGT

Junior Member
Messages
51
Yep, if you are able then visual studio is much easier. So thats good advice. Also, REST is not as common because I think SOAP has been around a bit longer.