Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27781 > unrolled thread
| Started by | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| First post | 2014-03-18 07:32 +0100 |
| Last post | 2014-03-18 21:57 -0400 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
standalone webservice Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-03-18 07:32 +0100
Re: standalone webservice markspace <markspace@nospam.nospam> - 2014-03-18 09:35 -0700
Re: standalone webservice Arne Vajhøj <arne@vajhoej.dk> - 2014-03-18 22:01 -0400
Re: standalone webservice Jeff Higgins <jeff@invalid.invalid> - 2014-03-18 12:33 -0400
Re: standalone webservice Arne Vajhøj <arne@vajhoej.dk> - 2014-03-18 21:57 -0400
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| Date | 2014-03-18 07:32 +0100 |
| Subject | standalone webservice |
| Message-ID | <lg8pai$2bjv$1@ariadne.rz.tu-clausthal.de> |
Hello, I would like to create a webservice with java. I have got a PHP based CMS with a nuSOAP interface and this interface should call the java based via HTTP/HTTPs, which runs on another host. The java WS should run a shell command on the host and returns the data (blocking communication). It should work a little bit like Jenkins shell access. I don't want to install a Tomcat or anything else for running a full webserver. My idea is, that the user which runs the WS that a Jar is downloaded and this is run directly, bind it to a definied port and IP address and the use need set the shell command. How can I do this with Java? Thanks a lot Phil
[toc] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2014-03-18 09:35 -0700 |
| Message-ID | <lg9sjt$14c$1@dont-email.me> |
| In reply to | #27781 |
On 3/17/2014 11:32 PM, Philipp Kraus wrote: > I don't want to install a Tomcat or anything else for running a full > webserver. My idea is, that the user which runs the WS that a Jar is > downloaded and this is run directly, bind it to a definied port and IP > address Nope, cant' do that, anymore than you can define a web service that downloads and installs PHP for you so you can run the WS in PHP. If you don't want to use Tomcat, you'll have to use a ServerSocket and parse the SOAP data yourself. You'll still have to start the program so it can listen on a port. I think it'll be easier just to use Tomcat or another container, but that's your call.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2014-03-18 22:01 -0400 |
| Message-ID | <5328fa79$0$302$14726298@news.sunsite.dk> |
| In reply to | #27783 |
On 3/18/2014 12:35 PM, markspace wrote: > On 3/17/2014 11:32 PM, Philipp Kraus wrote: > >> I don't want to install a Tomcat or anything else for running a full >> webserver. My idea is, that the user which runs the WS that a Jar is >> downloaded and this is run directly, bind it to a definied port and IP >> address > > Nope, cant' do that, anymore than you can define a web service that > downloads and installs PHP for you so you can run the WS in PHP. > > If you don't want to use Tomcat, you'll have to use a ServerSocket and > parse the SOAP data yourself. You'll still have to start the program so > it can listen on a port. I think it'll be easier just to use Tomcat or > another container, but that's your call. For mysterious reasons they actually added web services server side to Java SE when they added web services client side. So a Java EE web container is not strictly necessary. (but probably a good idea for any serious usage) Arne
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-03-18 12:33 -0400 |
| Message-ID | <lg9skl$1am$1@dont-email.me> |
| In reply to | #27781 |
On 03/18/2014 02:32 AM, Philipp Kraus wrote: > Hello, > > I would like to create a webservice with java. I have got a PHP based > CMS with a nuSOAP interface and this interface should call the java > based via HTTP/HTTPs, which runs on another host. The java WS should run > a shell command on the host and returns the data (blocking > communication). It should work a little bit like Jenkins shell access. > > I don't want to install a Tomcat or anything else for running a full > webserver. Sounds like an embedded Jetty... > My idea is, but, I'm not sure I understand beyond here. > that the user which runs the WS that a Jar is > downloaded and this is run directly, bind it to a definied port and IP > address and the use need set the shell command. How can I do this with > Java? > > Thanks a lot > > Phil >
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2014-03-18 21:57 -0400 |
| Message-ID | <5328f9a8$0$302$14726298@news.sunsite.dk> |
| In reply to | #27781 |
On 3/18/2014 2:32 AM, Philipp Kraus wrote: > I would like to create a webservice with java. I have got a PHP based > CMS with a nuSOAP interface and this interface should call the java > based via HTTP/HTTPs, which runs on another host. The java WS should run > a shell command on the host and returns the data (blocking > communication). It should work a little bit like Jenkins shell access. > > I don't want to install a Tomcat or anything else for running a full > webserver. My idea is, that the user which runs the WS that a Jar is > downloaded and this is run directly, bind it to a definied port and IP > address and the use need set the shell command. How can I do this with > Java? http://docs.oracle.com/javase/7/docs/api/javax/xml/ws/Endpoint.html#publish%28java.lang.String,%20java.lang.Object%29 Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web