Hi all, 
I'm trying to consume a remote .NET Web service. I've tried using <cfinvoke> 
and <cfhttp>, with bad results for both.

Using <cfinvoke>:
<cfinvoke webservice="http://companyname/webservice/service.asmx?wsdl"; 
method="GetAllInvoices" 
customerid="blahblah" username="blahblah" password="blahblah" domain="blahblah" 
returnvariable="Invoices">
</cfinvoke>

gives me:
Could not generate stub objects for web service invocation.  
org.xml.sax.SAXException: Fatal Error: URI=null Line=11: Expected "" to 
terminate element starting on line 3.

Using <cfhttp>:
<cfhttp method="post" url="http://companyname/webservice/service.asmx?wsdl"; 
resolveurl="true"> 
<cfhttpparam name="method" value="GetAllInvoices" type="formfield">
<cfhttpparam name="customerid" value="blahblah" type="formfield">
<cfhttpparam name="username" value="blahblah" type="formfield">
<cfhttpparam name="password" value="blahblah" type="formfield">
<cfhttpparam name="domain" value="blahblah" type="formfield">
</cfhttp>

gives me an IIS authentication error ("You are not authorized to view this page 
... etc. HTTP Error 401.2).

Apparently, the .NET developer is using some kind of windows authentication to 
allow remote access to this Web service. When I talked to him about it, he told 
me to "figure out how to consume Web servies using windows authentication" 
hence the username/password/domain crap in the cfhttp and cfinvoke.

My question: What does the error I'm getting with the cfinvoke mean, and how 
else should I be invoking a .NET Web service with windows authentication, 
because obviously the way I'm using doesn't work?

Many, many thanks!
Shawna

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209714
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to