Skip to main content
May 6, 2008
Question

XML-RPC with Coldfusion and Bugzilla

  • May 6, 2008
  • 5 replies
  • 1326 views
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

http://www.bugzilla.org/docs/tip/html/api/Bugzilla/WebService/Bug.html

I am using a Create Method to Create a Bug.

<cfinvoke webservice=" http://157.238.223.201/bugzilla/xmlrpc.cgi"
method="create"
returnvariable="rpcCall"
data="#bugdata#"
type="responsefault">


<cfoutput>response is: <strong>#rpcCall#</strong> <br>
did you see anything for now.. testing this script. thanks
</cfoutput>


when i execute the above code, i do get the error below.

Could not generate stub objects for web service invocation.
Name: http://157.238.223.201/bugzilla/xmlrpc.cgi. WSDL: http://157.238.223.201/bugzilla/xmlrpc.cgi. java.net.ConnectException: Connection timed out: connect It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors.
This topic has been closed for replies.

5 replies

Inspiring
May 7, 2008
scorpionn_king wrote:
>
> 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.
May 6, 2008
Inspiring
May 6, 2008
scorpionn_king wrote:
> but how do i use a XML-RPC service using coldfusion to use that webservice, "which means is not possible".
>
> 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.
May 6, 2008
but how do i use a XML-RPC service using coldfusion to use that webservice, "which means is not possible".

i know there could be a solution for this.but it's hard to find..
Inspiring
May 6, 2008
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.