Hi
I am trying to send data to Bugzilla from my Coldfusion Application..and
Bugzilla uses XML-RPC, i only worked with SOAP before and havn't had any idea
on XML-RPC and tried to browse thru in google but unable to find the exact
info. needed. of how to connect to Bugzilla and Create a Bug using Bugzilla
API.. from Coldfusion.
here is my code below of how am using.
Bugzilla API Documentation is here
[b]
http://www.bugzilla.org/docs/tip/html/api/Bugzilla/WebService/Bug.html
[/b]
I am using a [b]Create[/b] Method to Create a Bug.
[b]
<cfinvoke webservice="http://157.238.223.201/bugzilla/xmlrpc.cgi"
method="create"
returnvariable="rpcCall"
data="#bugdata#"
type="responsefault">
<cfoutput>response is: [B]#rpcCall#[/B] <br>
did you see anything for now.. testing this script. thanks
</cfoutput>
[/b]
JR "Bob" Dobbs - 06 May 2008 22:41 GMT
ColdFusion expects the URL value of the wsdl attribute to point to a WSDL for the service. Browsing to http://157.238.223.201/bugzilla/xmlrpc.cgi does not return a WSDL file.
scorpionn_king - 06 May 2008 23:07 GMT
but how do i use a XML-RPC service using coldfusion to use that webservice, [b]"which means is not possible"[/b].
i know there could be a solution for this.but it's hard to find..
Ian Skinner - 06 May 2008 23:23 GMT
> but how do i use a XML-RPC service using coldfusion to use that webservice, [b]"which means is not possible"[/b].
>
> i know there could be a solution for this.but it's hard to find..
Can you show the relevant sections of the 'bz_webservice_demo.pl' file?
I suspect therein lies the hints you need.
scorpionn_king - 07 May 2008 00:23 GMT
this is one example in php
http://fedoraproject.org/wiki/AutomatingBugzilla
pretty good example though but.. am not getting any response when i used the
URL directly.. into
<cfinvoke webservice="http://157.238.223.201/bugzilla/xmlrpc.cgi"
i found other links but those doesn't seem to work too..
http://www.fusionteam.co.uk/blog/2008/02/19/xml-rpc-using-coldfusion-and-microso
ftxmlhttp-com-object/
http://www.alagad.com/go/blog-entry/the-pain-and-agony-of-xml-rpc-blog-publishin
g
http://support.journurl.com/users/admin/index.cfm?mode=article&entry=362
Ian Skinner - 07 May 2008 14:33 GMT
> http://support.journurl.com/users/admin/index.cfm?mode=article&entry=362
I dug into this last link a bit. The link to the CFC on the page you
linked to did not work, but I found a another post which and working links.
http://support.journurl.com/users/admin/?keyword=ColdFusion+MX
http://support.journurl.com/users/admin/cfmx/xmlrpc.zip
http://support.journurl.com/users/admin/cfmx/xmlrpcservice.zip
These look fairly straight forward, but I did not try to make use of them.