Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Spoon Thumb
Paladin Imperium Curatores Veritatis Alliance
|
Posted - 2009.07.13 12:34:00 -
[1]
I want to develop a web service with both In-game broswer client and out of game browser client.
Was thinking of using Axis 2 / java with a php server for the IGB client that then uses the service(s) provided by the Axis 2 server
However I can't find any information, examples etc on how you go about making the two communicate.
I'm a relative noob when it comes to php so don't know if what I'm asking is possible or even logically makes sense, but the application I'm creating really isn't well suited to a scripting language (or rather would be much better done in an OO style).
|
Silencer NX10
|
Posted - 2009.07.30 18:36:00 -
[2]
PHP is not good at dealing with complex things such as web services out of the box, it doesn't provide you basic facilities such as automatic WSDL generators and web interfaces that present the WSDL or any security mechanisms for web serivces nor easy ways to create or read SOAP messages.
If you want to send files such as pictures through web services they will have to be base64 encoded with the correct flags to be compatible with either the java or .net base64 en/decoders.
Soap is a bit of a pain, especially with PHP so have a look at how REST web services work, they are a lot less complex.
Nevertheless there are several ways of dealing with SOAP web services in PHP. There are libraries to deal with SOAP such as: http://sourceforge.net/projects/nusoap/ , or the SOAP PHP extensions, but you can also do it in a low level way of building and reading soap messages on a string level.
If you're already good at Java maybe you should stick with it and do the web part with JSP scripts.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.07.31 06:14:00 -
[3]
I've never had a need to use it but my understand is that PHP has very good support for SOAP as well as any other web service comm standard that there are out there since almost every one usually is implement with it first before most other language get around to it
As to use OOP in PHP5 does it very well it's just that most code you see for it was written by programmers that start out with PHP4 or earlier before it had true OOP added. There are differences between OOP in PHP and JAVA but there's also many differences between C++, Javascript, and Python also and how they implemented OOP.
Anyway that my 0.02 ISK for what it's worth -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Fyrah Sunseeker
Gallente
|
Posted - 2009.07.31 18:34:00 -
[4]
Edited by: Fyrah Sunseeker on 31/07/2009 18:35:07 Personally, I see no real reason to combine a java based webservice with a php frontend. If you're used to programming in Java, then the best option might be to build the frondend using a webapp framework, like Spring MVC, Struts or Wicket. Properly setting up a Java webapp (Spring + Hibernate for instance) takes time, especially if you're doing it for the first time.
You might want to try Grails, which is a Groovy (Groovy is a dynamic programming language based on Java, compiles to Java bytecode and can be mixed with "oldskool" Java) based webapp framework that uses Spring and Hibernate. Grails takes FAR less time to set up than any other Java based webapp. (I'd go for learning Groovy/Grails instead of PHP, but that's up to you ;))
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |