|
From: Robert M. <rob...@gm...> - 2012-08-07 15:25:55
|
Hi Antia,
On Tue, Aug 7, 2012 at 1:10 PM, antia <ant...@gm...> wrote:
> Hi
> My code worked fine if I just use
>
> $endpoint=http://testmantis.server/api/soap/mantisconnect.php in the
> $client=new soapclient($endpoint);
>
> I can use service that mantis provide to update issue, add project ...etc
> etc..
>
> But If i add "?wsdl" in the end the url, that is
> =>$endpoint=http://testmantis.server/api/soap/mantisconnect.php?wsdl
>
> I just keep getting error msg like =>
>
> Array ( [faultcode] => SOAP-ENV:Client [faultactor] => [faultstring] =>
> method 'mc_version'('mc_version') not defined in service('' '') [detail] =>
> )
Adding '?wsdl' to the URL instructs the server-side code to generate
the WSDL file. So it's not for calling API methods.
>
> and the 'mc_version' can be replaced with anyother service I tried to call .
>
> However, others seem alwasys add "?wsdl" in their code and codes work fine
> still... does that mean something wrong with my code or my environment?
>
> Because now I put my code in other server and I got "Parsing WSDL: Couldn't
> load from 'http://mymantis server/api/soap/mantisconnect.php' " this type
> msg
>
> Sorry about it if the question sound stupid.... I tried to google around but
> I couldn't find why we have to add ?wsdl in the end but everyone seem have
> it =( but when I add it ... my code crash .
You have two use cases here:
1. Generate WSDL file for e.g. creating stubs using Apache Axis or
loading into a web service design tool. For this one append ?wsdl
2. Invoke API methods on Mantis. For this one do not append ?wsdl
Robert
>
> Thanks
>
> Antia
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mantisbt-soap-dev mailing list
> Man...@li...
> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev
>
--
Sent from my (old) computer
|