tracker issue : CF-3784419

select a category, or use search below
(searches all categories and all time range)

Error acess the WEBSERVICE

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Jose Eduardo Castilho / Jose Eduardo Castilho (ze_tbte)

Created: 07/02/2014

Components: Web Services

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Error acess the WEBSERVICE:

Cannot generate stub objects for web service invocation. Name: WSDL: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 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 on line 109. 

I am using this code:

<cfinvoke webservice="" returnvariable="retorno1" method="GERA_OP_PRD_WF">
	<cfinvokeargument name="ARMAZEM" value="01"> 
	<cfinvokeargument name="CODIGOFILIAL" value="01"> 		
	<cfinvokeargument name="CODIGOPRODUTO" value="#codigo#"> 		
	<cfinvokeargument name="DTEMISSAO" value="#DateFormat(GetOSPendentes.OSDataInicio,"MMDDYYYY")#">
	<cfinvokeargument name="DTPREVFIM" value="#DateFormat(GetOSPendentes.OSDataPrevista,"MMDDYYYY")#">
	<cfinvokeargument name="DTPREVINICIO" value="#DateFormat(GetOSPendentes.OSDataInicio,"MMDDYYYY")#">								
	<cfinvokeargument name="DTPRODUCAO" value="#DateFormat(GetOSPendentes.OSDataOK,"MMDDYYYY")#">	
	<cfinvokeargument name="DTREALFIM" value="#DateFormat(GetOSPendentes.OSDataOK,"MMDDYYYY")#">																
	<cfinvokeargument name="ITEMOP" value="01">	
	<cfinvokeargument name="NUMERODOCUMENTO" value="#NumberFormat(GetOSPendentes.OSNum,"000000")#">	
	<cfinvokeargument name="NUMEROOP" value="#NumberFormat(GetOSPendentes.Osnum,"000000")#">	
	<cfinvokeargument name="PARCIALOUTOTAL" value="T">	
	<cfinvokeargument name="QUANTIDADE" value="#GetOSPendentes.OSQtdeSolicitada#">	
	<cfinvokeargument name="QUANTIDADEPRODUZIDA" value="#GetOSPendentes.OSQtdeProduzida#">	
	<cfinvokeargument name="SEQUENCIAOP" value="001">																																												
</cfinvoke>	<cfdump var="#retorno1#">

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3784419

External Customer Info:
External Company:  
External Customer Name: ze_tbte
External Customer Email:  
External Test Config: My Hardware and Environment details:



Comment by External U.
11721 | July 02, 2014 09:14:05 AM GMT
Have you verified that the mentioned URL is valid and the server is able to access it? You can first try to access the same from your browser and then you can check it by using cfhttp for this URL.
Comment by Rupesh K.
11722 | July 03, 2014 12:56:25 AM GMT
Can you also provide the full stack trace? If possible share the WSDL also with us. Thanks, Paul
Comment by Paul N.
11723 | July 03, 2014 01:04:12 AM GMT
Dears, In attachment the code of WSDL: <?xml version="1.0" encoding="UTF-8"?> <!-- Generated 20140715 11:10:10 by ADVPL WSDL Server 1.110216 / Protheus 7.00.121227P-20131106 --> -<definitions xmlns="" targetNamespace="*" xmlns:mime="" xmlns:tm="" xmlns:soapenc="" xmlns:s0="*" xmlns:s="" xmlns:soap="" xmlns:http=""> -<types> -<s:schema targetNamespace="*" elementFormDefault="qualified"> -<s:element name="GERA_PRD_WF"> -<s:complexType> -<s:sequence> <s:element name="PRODUCAO" type="s0:STPRODUCAO" maxOccurs="1" minOccurs="1"/> </s:sequence> </s:complexType> </s:element> -<s:element name="GERA_PRD_WFRESPONSE"> -<s:complexType> -<s:sequence> <s:element name="GERA_PRD_WFRESULT" type="s:string" maxOccurs="1" minOccurs="1"/> </s:sequence> </s:complexType> </s:element> -<s:complexType name="STPRODUCAO"> -<s:sequence> <s:element name="ARMAZEM" type="s:string" maxOccurs="1" minOccurs="1"/> <s:element name="CODIGOPRODUTO" type="s:string" maxOccurs="1" minOccurs="1"/> <s:element name="DTEMISSAO" type="s:string" maxOccurs="1" minOccurs="1"/> <s:element name="NUMEROOP" type="s:string" maxOccurs="1" minOccurs="1"/> <s:element name="PARCIALOUTOTAL" type="s:string" maxOccurs="1" minOccurs="1"/> <s:element name="QUANTIDADEPRODUZIDA" type="s:float" maxOccurs="1" minOccurs="1"/> </s:sequence> </s:complexType> </s:schema> </types> -<message name="GERA_PRD_WFSOAPIN"> <part name="parameters" element="s0:GERA_PRD_WF"/> </message> -<message name="GERA_PRD_WFSOAPOUT"> <part name="parameters" element="s0:GERA_PRD_WFRESPONSE"/> </message> -<portType name="WFEEL_GERA_PRODUCAOSOAP"> -<operation name="GERA_PRD_WF"> <documentation>Método responsável pela geração de PRODUÇÃO no Protheus a partir de PRODUÇÃO originada no W-Feel.</documentation> <input message="s0:GERA_PRD_WFSOAPIN"/> <output message="s0:GERA_PRD_WFSOAPOUT"/> </operation> </portType> -<binding name="WFEEL_GERA_PRODUCAOSOAP" type="s0:WFEEL_GERA_PRODUCAOSOAP"> <soap:binding style="document" transport=""/> -<operation name="GERA_PRD_WF"> <soap:operation style="document" soapAction="*/GERA_PRD_WF"/> -<input><soap:body use="literal"/></input> -<output><soap:body use="literal"/></output> </operation> </binding> -<service name="WFEEL_GERA_PRODUCAO"> <documentation>Serviço responsável pela geração da PRODUÇÃO no Protheus a partir de PRODUÇÃO originada no W-Feel.</documentation> -<port name="WFEEL_GERA_PRODUCAOSOAP" binding="s0:WFEEL_GERA_PRODUCAOSOAP"> <soap:address location=""/> </port> </service> </definitions>
Comment by External U.
11724 | July 15, 2014 08:45:39 AM GMT
New Error, need a help! C:\ColdFusion10\cfusion\stubs\WS164371308_2\src\*\ (The filename, directory name, or volume label syntax is incorrect)
Comment by External U.
11725 | July 15, 2014 02:20:30 PM GMT C:\ColdFusion10\cfusion\stubs\WS164371308_2\src\*\ (The filename, directory name, or volume label syntax is incorrect) at Method) at<
Comment by External U.
11726 | July 15, 2014 02:21:06 PM GMT
In the WSDL, the target namespace is specified as "*". When generating the stub, the namespace is used as the package name (folder structure where the stub class is generated) of the classes. But you cannot have * as a folder name. That is why the error is coming. Will you able able to ask your service provider to change the namespace from "*" to something else?
Comment by Paul N.
11727 | November 25, 2014 03:39:22 AM GMT
Please let us know about this issue if you are still facing it. Thanks.
Comment by Akhila K.
11728 | December 03, 2014 12:40:55 AM GMT
We are closing this bug. Incase if user is still facing the issue, please let us know. We will look into it.Thanks.
Comment by Akhila K.
11729 | December 08, 2014 03:57:16 AM GMT