Try just returning 'string'.  The 'document' type probably isn't
supported by .NET, but the string type should be equivalent enough. 
Differences include a little extra work on both ends to
seriealize/deserialize the XML, and the inability to access the
inner-document as XML while the SOAP packet is in transit, but those
probably won't matter.

cheers,
barneyb

On 8/4/05, dk @ realmagnet. com dk @ realmagnet. com <[EMAIL PROTECTED]> wrote:
> 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
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213773
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to