Hi Michael,
I recently ran into what I believe is the same problem that you are. The 
problem is that CF is weakly-typed, and the WSDL is describing complex data 
types that CF cannot figure out what to do with. The bottom line is that CF 
*can't* consume that web service using CFML, you must do it using Java (or .NET 
if on BD.NET).

Rob Munn (giving credit where it's very much due) answered the same question 
for me as so (check out the CFDJ link, the article shows how to get around the 
problem):

CF isn't good at invoking complex web services. The best way to deal with
this problem is to use WSDL2Java to create the Java libraries to invoke the
web service, then write a wrapper class in Java to use them. You can then
call the Java wrapper class from CF. There is a learning curve the first
time you tackle it, but after that it gets easier. I wrote an article on it
that you can find here:

http://cfdj.sys-con.com/read/86131.htm


The key is making sure you build the libraries and your wrapper class with
the same versions of the Java Axis classes that CFMX uses.
Rob

So there you go, probably not the news you were looking for though. Hope that 
helps!
-Scott

> I've got the following error:
> 
> Attempt to instantiate an abstract class "AutoTelephoneNumber". .
> 
> It means to me that CF tried to create an object from this class, 
> however there is a C# utility demonstrates how to consume the ws works 
> fine.
> I have also downloaded WTP (Web tool platform for eclipse) and it 
> works well enough.
> 
> Can oneone give me an advice what the problem would be and how to get 
> arround of it?
> 
> My codes:
> 
> <cfscript>
  
> ws = CreateObject("webservice", "http://www.tracking.edi.com.
> au/webservice/shipmentservice.asmx?wsdl");
> addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
> "CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, "http://www.edi.
> com.au/EnterpriseService/", "UserName", "[EMAIL PROTECTED]
> au"); addSOAPRequestHeader(ws, "http://www.edi.com.
> au/EnterpriseService/", "Password", "mike"); 
> </cfscript>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to