|
From: Robert M. <rob...@gm...> - 2013-01-12 22:48:47
|
(looping back the dev list) On Sat, Jan 12, 2013 at 11:09 PM, Sergei Matros <se...@ma...> wrote: > Ok. I can tell you how I tried. > > I saved my modified WSDL file, downloaded the latest dev version 1.2.13dev. > Installed on the server. Applied my patch with changes for SOAP API. Update > the mantis' wsdl file with mine. Tried to access to standart api methods -- > OK. Tried to access to my own methods -- "Function 'mc_account_add' doesn't > exist". Function mc_account_add located in mc_account_api.php Can you post a diff of your wsdl file? > > It is very strange for me. I tried to clean wsdl cache -- no result. I am > using SoapUI for my tests. Does SOAP UI recognize the new method? Robert > > Thx. > > 2013/1/12 Robert Munteanu <rob...@gm...> >> >> Hi Sergei, >> >> This error should go away if you use the soap extension and upgrade to >> a git version of MantisBT. >> >> Actually there's no way to generate the WSDL automatically, but you >> should be able to easily add data types and methods based on the >> actual WSDL. If you need specific answers, please ask. >> >> Robert >> >> On Sat, Jan 12, 2013 at 10:49 PM, Sergei Matros <se...@ma...> >> wrote: >> > Thank you very much. I decided to use version 1.2.12 with my changes >> > patch >> > for SOAP API. >> > >> > I updated PHP to 5.4 version and i've got an notice "Array to string >> > conversion". So, I decided to do hotfix, placing error_reporting(0) in >> > mantisconnect.php. I know that it is not very good (disabling error >> > reporting) but for now I don't know how to fix it in another way. >> > >> > Talking more detailed I should use PHP SOAP extension instead of Nusoap >> > library, but I don't know how to generate WSDL file. I don't want to >> > edit it >> > manually (nusoap lib could generate wsdl for me earlier). If you can >> > tell me >> > how to generate wsdl I'll rewrite my code for php extension. >> > >> > Thx a lot. >> > >> > >> > 2013/1/12 Robert Munteanu <rob...@gm...> >> >> >> >> Hi Sergei, >> >> >> >> On Thu, Jan 10, 2013 at 5:15 PM, Sergei Matros <se...@ma...> >> >> wrote: >> >> > Hi, people. >> >> > >> >> > I am using 1.2.13dev version of Mantis. >> >> > >> >> > How can I add some new api methods in Mantis' SOAP API? >> >> >> >> First of all you should define your new methods and data types in >> >> api/soap/mantisconnect.wsdl Then you should implement those methods in >> >> one of the mc_xxx_api.php files from the api/soap directory. >> >> >> >> Be careful though that this means that you are changing MantisBT core >> >> files and as such you will need to re-apply your changes everytime you >> >> upgrade. If your changes are something which can be contributed to >> >> MantisBT I'd be more than happy to guide the contribution. >> >> >> >> Thanks, >> >> >> >> Robert >> >> >> >> > >> >> > Thanx a lot. >> >> > >> >> > Sergei >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> >> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills >> >> > current >> >> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> >> > MVPs and experts. SALE $99.99 this month only -- learn more at: >> >> > http://p.sf.net/sfu/learnmore_122912 >> >> > _______________________________________________ >> >> > Mantisbt-soap-dev mailing list >> >> > Man...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev >> >> > >> >> >> >> >> >> >> >> -- >> >> Sent from my (old) computer >> > >> > >> >> >> >> -- >> Sent from my (old) computer > > -- Sent from my (old) computer |