Skip to main content
Known Participant
July 2, 2011
Question

Could not generate stub objects for web service invocation in ColdFusion

  • July 2, 2011
  • 2 replies
  • 7938 views

I was able to call the services on the development box - windows server without any problem at all, everything was working fine but the moment i uploaded to a linux box production server I get this error. "Could not generate stub objects for web service invocation in ColdFusion"

What could be the cause of this problem, i have googled a lot but no solution yet any ideas.

    This topic has been closed for replies.

    2 replies

    Known Participant
    July 3, 2011

    thanks adam for your time

    Inspiring
    July 2, 2011

    Is it a case-sensitivity issue?  If you have /path/to/MyComponent.cfc, you need to always refer to it as path.to.MyComponent. "mycomponent" will work on Windows, but it will not work on case-sensitive file systems.

    --

    Adam

    Known Participant
    July 2, 2011

    Thanks for your response, I have checked the case sensitive issue, the url is in the required case. The entire error is:

    Cannot generate stub objects for web service invocation.

    Name: https://******/TransactionQueryWs.asmx?wsdl. WSDL: https://*********/TransactionQueryWs.asmx?wsdl. java.io.FileNotFoundException: /opt/coldfusion8/stubs/WS334836208/org/tempuri/TransactionQueryWSSoap.java (No such file or directory) It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.

    **Note i have used asterix to max the original url, i used a complete url

    Participating Frequently
    December 6, 2019

    Unfortunately, your attempt to share code is failing here in these new community forums. Even your second attempt below still failed.

     

    Note that when entering a reply, there are tool icons that appear at the top of the input box (at least in the web-based version of the site) , and  one of those shows a pair of brackets. Click that to enter code, which would appear then as this:

     

    <cfoutput>this is a code sample</cfoutput>

    Then we can better assess what's amiss about why you "can get only the description of the response, not the response." 


     

    I'm trying This:

     

    <cfscript> 
     ws = createObject("webservice", "http://timbrado.pade.mx:80/servicio/herramientas?wsdl"); 
     xlatstring = ws.ConsultaRfc("consultarRfc=RIMF701004EI8"); 
     </cfscript> 

     

     

    And This:

     

     

     <cfsavecontent variable="LlamadaSoap">
        <cfoutput>
    		<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    			<soapenv:Header/>
    			<soapenv:Body>
    				<rfc:consultarRfc>
    					<contrato>XXX</contrato>
    					<usuario>YYY</usuario>
                        <passwd>ZZZ</passwd>
                        <rfcObject>RIMF701004EI8</rfcObject>                    
    				</rfc:consultarRfc>
    			</soapenv:Body>
    		</soapenv:Envelope>
    	</cfoutput>
    </cfsavecontent>
    
        
    <cfhttp url="https://beta.ws.insigna.mx/services" method="post" result="Algo">
        <cfhttpparam type="header" name="content-type" value="text/xml">
        <cfhttpparam type="header" name="SOAPAction" value="">
        <cfhttpparam type="header" name="content-length" value="#len(LlamadaSoap)#">
        <cfhttpparam type="header" name="charset" value="utf-8">
    	<cfhttpparam name="SOAPAction" type="header" value="http://rfc.ws.pade.prodigia.mx/ConsultaRfc/"/>
        <cfhttpparam type="xml" name="message" value="#Trim(LlamadaSoap)#">
    </cfhttp>

     

     

    And the result is the same:

     

    Cannot generate stub objects for web service invocation.
    Name: http://timbrado.pade.mx:80/servicio/herramientas. WSDL: http://timbrado.pade.mx:80/servicio/herramientas. javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
     
    The error occurred in D:/Software/Apache/wamp/www/NSN/Timbrado/Timbrado.cfm: line 7
    5 : 
    6 : <cfscript> 
    7 :  ws = createObject("webservice", "http://timbrado.pade.mx:80/servicio/herramientas"); 
    8 :  xlatstring = ws.ConsultaRfc("consultarRfc=RIMF701004EI8"); 
    9 :  </cfscript>