ok, thanks, I'm gonna do it and comment you.

On Feb 18, 2008 3:22 AM, Gianluca Sforna <[EMAIL PROTECTED]> wrote:

> On Feb 18, 2008 3:48 AM, Cartman <[EMAIL PROTECTED]> wrote:
> > Yes, thanks...  I'm try to connect this webservice, but how i configure
> a
> > webservice client for php.  I try create a webservice client with
> netbeans
> > but don't work.  I want to know which is the xml file's structure for
> > consume the issue_add method. thanks for your help.
> >
>
> Most of what's needed for the methods can be inferred from the WSDL
> page you get browsing:
>
> http:/your.mantis.instance/api/soap/mantisconnect.php
>
> I created a client for basic operations (like creating a new bug) with
> few lines of python code, using SOAPpy; for instance:
>
> ==script==
> import sys
>
> from SOAPpy import SOAPProxy
> from SOAPpy.wstools import WSDLTools
>
> #url = 'http://www.mantisbt.org/bugs/api/soap/mantisconnect.php'
>
> # define the namespace
> namespace = 'http://futureware.biz/mantisconnect'
>
> server = SOAPProxy(url, namespace)
>
> # if you want to see the SOAP message exchanged
> # uncomment the two following lines
>
> #server.config.dumpSOAPOut = 1
> #server.config.dumpSOAPIn = 1
>
> username = 'developer'
> password = 'developer'
>
> print "Test 1: Create a new issue"
> project = { 'name' : 'Project A' }
> issue = { 'project' : '1' , 'category' : 'General', 'summary' : 'SOAP
> Test 1' , 'description' : 'SOAP Test 1'}
> '''
> try:
>    newid = server.mc_issue_add(  username=username,
> password=password, issue=issue )
> except Fault:
>    print ">>>Failed"
>    sys.exit()
> else:
>    print "Success: issue %s created" % newid
> '''
> ==endscript==
>
>
>
> HTH
>
> Gianluca
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> mantisbt-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mantisbt-help
>



-- 
Gracias.
Atentamente,
Carlos Arturo Trujillo Silva
Ingeniero de Sistemas
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mantisbt-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to