I have a webservice as follows:

<cfcomponent>

<cffunction name="test" returntype="xml" access="remote">

<cfsavecontent variable="a">
<data><name>DK</name></data>
</cfsavecontent>
<cfreturn xmlparse(a)>

</cffunction>
</cfcomponent>

I am able to call it from ColdFusion but not from ASP.Net. When I try to add 
the web reference in Visual Studio, I get this error:

"Custom tool error: Unable to import WebService/Schema. Unable to import 
binding 'test.cfcSoapBinding' from namespace 'http://ws.mm_api'. Unable to 
import operation 'test1'. The datatype 'Document' is missing."

Basically looks like returntype "XML" from cffunction results in the wsdl to 
return "apachesoap: Document" (see below):
- <wsdl:message name="test1Response">
<wsdl: part name="test1Return" type="apachesoap: Document" /> 
</wsdl:message>

The wsdl definition defines apachesoap as:
xmlns:apachesoap = "http://xml.apache.org/xml-soap";


See wsdl below.

Still .Net is not able to resolve "Document" type.

Any ideas whats happening here?? Or how I could resolve this?

Thanks,

DK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213772
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