|
From: Robert M. <rob...@gm...> - 2015-02-17 07:38:00
|
Hi Manuel,
On Mon, Feb 16, 2015 at 5:50 PM, Manuel Camacho
<mca...@gm...> wrote:
> Hi ,
>
> Is there any way to create a issue from soap api rest with attachment in one
> step ??
You should be able to create the issue and then add the attachment in
a separate call.
Is there any reason for which you want to create them in a single call?
Robert
>
>
>
> $issue = array(
> "project" => array("name" => $ini_array["project"]),
> "category" => $_POST["Category"],
> "summary" => $_POST["Summary"],
> "description" => $_POST["Description"],
> "additional_information" => $additionalInformation
>
> XXXXXXXXXXXXXXX=file
> );
> $request = array(
> "username" => $ini_array["userName"],
> "password" => $ini_array["password"],
> "issue" => $issue
> );
> try {
> $soapClient = new SoapClient($ini_array["mantisConnectUrl"] . "?wsdl");
> $result = $soapClient->__call("mc_issue_add", $request);
>
>
> Probably the response is not because create attachment needs a idUsue
>
> https://mantishub.mantishub.com/api/soap/mantisconnect.php?wsdl#op.id0xc2b06c0
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Mantisbt-soap-dev mailing list
> Man...@li...
> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev
>
--
http://robert.muntea.nu/
|