Forum ‹ C# ‹ System.Web.Services
9 posts
• Page 1 of 1
System.Web.Services
I need to connect to a SOAP server from my game server. Two simple calls... however apparently I can't use System.Web.Services?
Is there an alternate to building a SOAP client that doesn't use System.Web.Services?
:/
Is there an alternate to building a SOAP client that doesn't use System.Web.Services?
:/
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
Re: System.Web.Services
azuanagames wrote:I need to connect to a SOAP server from my game server. Two simple calls... however apparently I can't use System.Web.Services?
Is there an alternate to building a SOAP client that doesn't use System.Web.Services?
:/
SOAP is just web requests, you can use the PlayerIO.Web api to call the SOAP methods manually.
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
Re: System.Web.Services
I've tried but maybe I'm missing something obvious.
How do I set the content type to application/soap+xml?
How do I manually set what you actually post? I don't want to post variables, I only want the body of the http request to be xml...
Help
How do I set the content type to application/soap+xml?
How do I manually set what you actually post? I don't want to post variables, I only want the body of the http request to be xml...
Help
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
Re: System.Web.Services
Another related question: Are you restricting ports? Am I allowed to use non-standard http ports?
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
Re: System.Web.Services
azuanagames wrote:Another related question: Are you restricting ports? Am I allowed to use non-standard http ports?
I still haven't received an answer to this and I feel it's the thing that's preventing me from using the Web API.
If there is a restriction, how can we get it removed?
Thanks
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
Re: System.Web.Services
Hello Azuana,
We currently don't support adding calling web services from multiplayer code (as you have discovered by yourself). We probably won't add direct support for referencing a webservice via visual studio, since the webservice stuff that is built into .net adds a fair bit of overhead.
What I will do however, is put down a feature request for extending the Web API such that you can call SOAP by posting XML yourself. However, I can't promise that it's going to be built, because there could be some security concerns about allowing arbitrary headers and post content to any webserver from our systems.
Best,
Oliver
We currently don't support adding calling web services from multiplayer code (as you have discovered by yourself). We probably won't add direct support for referencing a webservice via visual studio, since the webservice stuff that is built into .net adds a fair bit of overhead.
What I will do however, is put down a feature request for extending the Web API such that you can call SOAP by posting XML yourself. However, I can't promise that it's going to be built, because there could be some security concerns about allowing arbitrary headers and post content to any webserver from our systems.
Best,
Oliver
-

Oliver - .IO
- Posts: 1136
- Joined: January 12th, 2010, 8:29 am
Re: System.Web.Services
I should just post a new topic, since I'm not concerned about using the System.Web.Services. I am ok with building the soap messages by hand and using the PlayerIO.Web class that you provide. However I'm thinking that the problem I'm encountering is just a matter of the port? Am I totally wrong on that? Should I be able to hit any port? Or do you restrict it to only port 80?
Thanks
Thanks
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
Re: System.Web.Services
What happens when you try a different port than 80? The port is part of the URL, so I don't see any reason why it shouldn't work.
However, depending on the webservice you're connecting to you might need to set some HTTP headers, and there's no support for that in the current Multiplayer API. But in the meantime, just try it out and see how far you get.
However, depending on the webservice you're connecting to you might need to set some HTTP headers, and there's no support for that in the current Multiplayer API. But in the meantime, just try it out and see how far you get.
-

Henrik - .IO
- Posts: 570
- Joined: January 4th, 2010, 1:53 pm
Re: System.Web.Services
Unfortunately that web server is configured to a certain port 8081 in this case. I can't really change there server. It's been quite frustrating...
Note sure what else to try at this point.
Maybe it is the headers.. I have no way of verify what is going on on the server. I have been interacting with the server using php on my site, however I'd rather not have to pay for separate hosting just to act as a translator.
Note sure what else to try at this point.
Maybe it is the headers.. I have no way of verify what is going on on the server. I have been interacting with the server using php on my site, however I'd rather not have to pay for separate hosting just to act as a translator.
- azuanagames
- Paid Member
- Posts: 138
- Joined: April 29th, 2010, 10:59 pm
9 posts
• Page 1 of 1