Skip to main content
Participating Frequently
July 30, 2008
Question

Could not generate stub objects for web service invocation.

  • July 30, 2008
  • 3 replies
  • 1545 views
Hi I am new in the Consuming ASP.Net webservices from ColdFusion . I am using this Code to invoke a webservices
<cfinvoke webservice=" http://127.0.0.1/EZCardService/EZCardWebservice.asmx?wsdl"

method="HelloWorld"

returnvariable="result">

<cfinvokeargument name="strUsername" value="a"/>
<cfinvokeargument name="strPassword" value="b"/>

</cfinvoke>
But i am getting above mentioned error .Please help me to get solution for this error ,

Web Service is running on my system successfully and it is also generting wsdl on the local server .but when i am invoking it from cold fusion .i am getting this error .

Looking forword for your suppost...

Thanks ,
Rajesh Kumar
India
This topic has been closed for replies.

3 replies

Participating Frequently
August 1, 2008
Hi All,

After a long googling and Debugging i come to this solution . I have changes the config file in the webservice on system.web section . I am realy glad to see that my webservice is accessible from my cold fusion Page .Here is the code that i am updated on the system.web section on web.config file of ASP.Net .

<webServices>

<protocols>



<remove name="HttpSoap12" />

<remove name="HttpGet" />

<remove name="HttpPost" />

<remove name="HttpPostLocalhost" />

</protocols>

</webServices>


Cheers & Happy Programming .

Thanks & Regards
Rajesh Kumar
S/W Engineer
India
Inspiring
July 30, 2008
Hi,

Since the webservice seems involving SOAP headers, Try it like this,


Participating Frequently
July 31, 2008
Hi,

Since the webservice seems involving SOAP headers, Try it like this,

I try but i am not successfull to call webservice .

Still getting error.

Can some body help me . as i am using Cold Fusion 6.1 version and want to access ASP.net Webservices using <cfinvoke> Or <CreateObject> Tag . but i am getting error as mentioned above .


Thanks
Rajesh
Inspiring
August 1, 2008
Hi Rajesh,

Does your webservice have windows integrated authentication?... Because Coldfusion doesn't support windows integrated authentication while consuming the webservices.

Please refer
this thread.
Inspiring
July 30, 2008
Hi,

You need to refresh your webservice stubs in the server, you can do it like this,

<cfobject type="JAVA"
action="Create"
name="factory"
class="coldfusion.server.ServiceFactory">

<cfset RpcService = factory.XmlRpcService>

<cfset RpcService.refreshWebService(" http://127.0.0.1/EZCardService/EZCardWebservice.asmx?wsdl"
)>

then have a retry..

HTH
Participating Frequently
July 30, 2008
Thanks For your reply

still no effect, getting same error

Participating Frequently
July 30, 2008
quote:

Originally posted by: RajeshKr127
Thanks For your reply

still no effect, getting same error




Error is this :
Could not perform web service invocation "Authenticate" because AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}VersionMismatch faultSubcode: faultString: System.Web.Services.Protocols.SoapException: Possible SOAP version mismatch: Envelope namespace http://www.w3.org/2002/12/soap-envelope was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/. at System.Web.Services.Protocols.SoapServerProtocol.CheckHelperVersion() at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() faultActor: faultNode: faultDetail: { http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}VersionMismatch faultSubcode: faultString: System.Web.Services.Protocols.SoapException: Possible SOAP version mismatch: Envelope namespace http://www.w3.org/2002/12/soap-envelope was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/. at System.Web.Services.Protocols.SoapServerProtocol.CheckHelperVersion(