Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Could not generate stub objects for web service invocation.

New Here ,
Jul 29, 2008 Jul 29, 2008
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
TOPICS
Advanced techniques
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 30, 2008 Jul 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 30, 2008
Thanks For your reply

still no effect, getting same error

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 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(
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 30, 2008 Jul 30, 2008
Hi,

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


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 30, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 31, 2008 Jul 31, 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 01, 2008 Aug 01, 2008
'Does your webservice have windows integrated authentication?... Because Coldfusion doesn't support windows integrated authentication while consuming the webservices.'

Hi ,

My Webservice have the window integrated authentication checked and it is having anonymous access .

Thanks
Rajesh
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 01, 2008 Aug 01, 2008
Could Any One Please Tell me How Can consume webservice dataset in cold Fusion using <cfinvoke> Tag ?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Aug 01, 2008 Aug 01, 2008
Chapter 25 of "Advanced Macromedia ColdFusion MX 7 Application Development" by Ben Forta contains a code sample that converts a .NET web service dataset to a ColdFusion struct. I don't own the ColdFusion 8 version of this book, but it might contain a sample as well.

http://www.forta.com/books/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2008 Aug 04, 2008
LATEST
Hi Bob , Thanks For ur support .

I have successfull to consume the webservice dataset by using cold Fusion component .

Thanks ,
Rajesh
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2008 Jul 31, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources