Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

WebPlayer and WebServices

Discussion in 'Multiplayer' started by Valendhar, Jan 28, 2008.

  1. Valendhar

    Valendhar

    Joined:
    Sep 30, 2007
    Posts:
    41
    Hi,

    i am currently in the development of some round-based strategy multiplayer games. Ideally, those games should be played through the WebPlayer integrated in a portal. I would like to avoid using standalone download versions of the games.

    Most of the game logic is on a server written in Java and exposed as SOAP WebServices which will be called from Unity. I know that it is possible to use
    the Mono System.Web.Services class libraries or so to call them in standalone Apps. But while reading through the forums i found some posts that mentioned that it is not possible with the webplayer. Or rather , that to keep download size to a minimum , that the necessary libs are not included in the webplayer.

    Is there a chance to somehow call SOAP WebServices from the Webplayer?
    Maybe through the new Unity 2.0 Networking capabilities?
    Or what do i need to do, to include the libs for calling SOAP Services in the Webplayer version.

    Writing a small game server that listens to a tcpip port that i opened on my server would probably be an alternative, but that's not what i had in mind. If i can use a java web application to expose the necessary services without opening a port and writing an unsafe server, than that is much better, safer and would take less time to develop.

    So any help would really be appreciated.

    thanks
    Mike
     
  2. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    277
    The inbuilt Unity multiplayer networking is not general purpose so you can't use it for what you need.

    You can, however, deploy a .NET DLL with a webplayer project as well as a standalone. You should be able to just add System.Web.Services.dll from mono to your project and it will work everywhere.
     
  3. Valendhar

    Valendhar

    Joined:
    Sep 30, 2007
    Posts:
    41
    Thanks for the help larus.

    I may try that. There are different ways to call services on my web server so i may try that out.

    I have an architecture for round-based games i want to implement in mind using a combination of the Unity 2.0 network architecture and Web Services . I want to use SOAP or Hessian Web services to call an authoritative server for game logic written in java on a linux machine, and using my own unity masterserver and unity network features for communication purposes between game clients/server.

    That reminds me. I have a question concerning the Masterserver. How safe is the masterserver concerning server safety because of open ports? I want to install my own masterserver on a linux server and i don't know if my administrator will allow opening ports for it. But i see that UT has a masterserver installed on their server open to the public, so it should be safe, shouldn't it?

    thanks
    Mike
     
  4. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    277
    Its quite safe. You can create a separate user for it and run it under his privileges. It runs fine with SELinux enabled and enforcing. It's only vulnerable to DOS attacks much like other services with publicly open ports.
     
  5. pavees

    pavees

    Joined:
    Jan 1, 2009
    Posts:
    116
    Hi, I am also stuck up with the same situatuion and also we hav the unity3D pro licensed version. But the thing is we are not getting a response properly as expected and shows some internal stack up error while trying to call a Web service using the unity webplayer.
    It shows a SOAP exception. Can u send us a sample application wich uses the ASP.Net web services.

    Thanks In advance
     
  6. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    did you put crossdomain.xml in server root? does anybody get this work?