Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 05/17/2019 in all areas

  1. 1 point
    Yes you can connect to the SOAP Endpoints via C#. Although u cant generate the WSDL, u can manually setup the Envelope XML yourself and send it as a normal web request. Below is some sample code I used to send money via mail to a specific account. You just need to look at the source on how the SOAP endpoint is reading the incoming stuff and then reverse engineer it. public async Task SendMoney(string charecter, long quanity) { var realm = await _forumnDB.Realms.FindAsync(_realmID); if (!string.IsNullOrWhiteSpace(realm.SoapIP) && realm.SoapPort > 0 && !string.IsNullOrWhiteSpace(realm.SoapUserName) && !string.IsNullOrWhiteSpace(realm.SoapPassword)) { XmlDocument soapEnvelopeXml = GetXMLDoc(string.Format("send money {0} \"Approved GM Request Money\" \"Attached is the money you requested\" {1}\n", charecter, quanity)); HttpWebRequest webRequest = CreateWebRequest(string.Format("http://{0}:{1}", realm.SoapIP, realm.SoapPort), realm.SoapUserName, realm.SoapPassword); InsertSoapEnvelopeIntoWebRequest(soapEnvelopeXml, webRequest); // begin async call to web request. IAsyncResult asyncResult = webRequest.BeginGetResponse(null, null); // suspend this thread until call is complete. You might want to // do something usefull here like update your UI. asyncResult.AsyncWaitHandle.WaitOne(); // get the response from the completed web request. string soapResult; using (WebResponse webResponse = webRequest.EndGetResponse(asyncResult)) { using (StreamReader rd = new StreamReader(webResponse.GetResponseStream())) { soapResult = rd.ReadToEnd(); } } } else { } } XmlDocument GetXMLDoc(string command) { XmlDocument soapEnvelopeDocument = new XmlDocument(); soapEnvelopeDocument.LoadXml(string.Format(@"<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:xsi=""http://www.w3.org/1999/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/1999/XMLSchema"" xmlns:ns1=""urn:MaNGOS""><SOAP-ENV:Body><ns1:executeCommand><command>{0}</command></ns1:executeCommand></SOAP-ENV:Body></SOAP-ENV:Envelope> ", command)); return soapEnvelopeDocument; } HttpWebRequest CreateWebRequest(string url, string username, string password) { HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url); webRequest.Credentials = new NetworkCredential(username, password); webRequest.ContentType = "text/xml;charset=\"utf-8\""; webRequest.Accept = "text/xml"; webRequest.Method = "POST"; return webRequest; } static void InsertSoapEnvelopeIntoWebRequest(XmlDocument soapEnvelopeXml, HttpWebRequest webRequest) { using (Stream stream = webRequest.GetRequestStream()) { soapEnvelopeXml.Save(stream); } }
  2. 1 point
    Your client does nothing because you didn't handle the connection step right. When the client is successfuly authenticated by the realm daemon, it is redirected to mangosd daemon and the first step, of course , is to establish a connection via TCP socket. When the connection is established, the server will send SMSG_AUTH_CHALLENGE packet. THIS IS THE FIRST PACKET YOU HAVE TO SEND AND IS MANDATORY!!! The client will respond to this packet with a CMSG_AUTH_SESSION packet, and this is where the miracle happens. The server has to handle this packet and has to create the so called session. If it succeeds, the server will send SMSG_AUTH_RESPONSE like yours. Because the intialization of Warden module is part of making the session, the server can send (but is not enforced to) various SMSG_WARDEN* packets, and this is what you already noticed. Hope this helps!
  3. 1 point
    Oh man you are brilliant. Thanks for the help it works.
  4. 1 point
    Just finished testing this and all working fine here
  5. 1 point
    A good thing to check is any page with the build status box on the top right on the website, you can click on the status images to see the build log etc. Those images update in real-time so if a build is working from the live github it will show as soon as it is Glad you got it working.
  6. 1 point
    Installing Mangos on Windows There are multiple ways of installing MaNGOS, this method will be using EasyBuild (a MaNGOS written tool) to simplify the process. 1) Although there are several pieces of third party software that are required to be installed, only two need to be installed prior to running Easybuild. Git (See HERE for the Install Guide) and Visual Studio (See HERE got the Install Guide) Both need to be installed before continuing. If you don't have them installed... go do that now !! The rest of the third party software required for MaNGOS are: Cmake (See HERE for the Install Guide). Only 32 or 64 Bit can be installed, not both. OpenSSL (See HERE for the Install guide). Both 32Bit and 64Bit can be installed together. You need the full rather than the lightweight version. MySQL (See HERE for the Install guide). Only 32 or 64 Bit can be installed, not both. 2) create a folder to hold all the source files i.e. Mangos_Files 3) Select the folder created above in explorer and right click on it, then select 'Git Bash here' 4) Clone the MaNGOS server and database GitHub repositories into folders in this folder (See HERE for a guide for cloning the repos) 5) Using explorer navigate to the server folder created above. 6) Navigate into the Win folder and double-click EasyBuild(If building MaNGOS three, run 'Patch_Easybuild_Mangos3' as the administrator before running EasyBuild). 7) Click CHECK NOW and let EasyBuild check for the MaNGOS dependencies. If your missing one, download and install it. 😎 Once MaNGOS finds everything it needs to build, click BUILD OPTIONS. If you want to change anything such as whether to build the extractions tools or not. The defaults are fine so we click on BUILD PROJECT. This will take a while so be patient. 16) Extract the client data using extractresources.sh (See HERE to a guide to extracting the client data) 17) Now it's time to set up the database. 18) Select the folder created above in step 2 and then select dbzero(for MangosZero). 19) Double-click on InstallDatabases.bat 20) The initial settings as defaulted for the typical settings required for a new server setup but you might not want to create a new user right now so you press O then press N to continue. 21) The next few prompts are ask you to supply some key information to connect to your MySQL server, the text in square brackets [] are the default values if nothing is typed. Some of the settings are: Server Name / Address Username Password Port Character Database Name World Database Name Realm Database Name 22) The script will then proceed to populate all the databases and finish up looking like the following 23) At this point the database is now fully loaded. 24) On the server where you copied the files earlier, rename the 4 .conf.dist files as .conf 25) Now it's time to start configuring the server, first stop is adjusting the settings in the .conf files as described HERE 26) Now we need to configure the Realm Database to use the correct IP addresses as described HERE 27) Now the moment of truth... 28) Double click realmd.exe from the server folder, you should see a screen like: 29) Double click mangosd.exe from the server folder, you should see lots of messages like: 30) You now need to create an account to allow you to login to your server from the client: Type: ACCOUNT CREATE username password expansion (Where expansion is one of the following: 0 = Classic, 1 = TBC, 2 = WOTLK, 3 = Cataclysm, 4 = MOP, 5 = WOD, 6 = Legion) - This is also the max allowed expansion this account can use! 31) and now for the the final step..... 32) One of the client files (realmlist.wtf) will need to be adjusted to point to your server, a description of how to do this is HERE 33) Start the your client(wow.exe),do NOT use the launcher, enter the account information created above and enjoy.
  7. 1 point
    I finally found this forum and couldn't be more excited! I've only been playing since 2015, but love the game and would like to set up my own private server at home, so here I am! Clearly a lot of work has gone into this, so from a newbie - thank you!
  8. 1 point
    Hello, I'm new here though I have dabbled a few times with Mangos Zero and One. I have recently setup a Mangos One server and am playing there with family. My wife and I played WoW from release for nearly 7 years. I'm looking to change as much as I can on my server, quests, npcs, factions, and I want to create new places, towns, hubs, etc. So I may be coming here to ask for some help and advice.
  9. 1 point
    Good morning, My name is Mauro in the real world and Guizza in the web, I write from Italy. I started two days ago to create my WoW Classic (Vanilla) server with a positive result. I have also created a site for creating accounts thanks to MaNGOSWebV4. I would like to thank the developers for the great work that allowed me to create my own little private server!

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • Create New...