Skip to main content
Inspiring
July 7, 2008
Answered

Web service invokation problem

  • July 7, 2008
  • 11 replies
  • 1309 views
Hi,
I am having problem when consuming .net web service. This web service expects xmlobject which I create using <cfxml> tag. I have used <cfinvoke> and CreateObject without any success.
First I get following error message: java.lang.IllegalArgumentException: argument type mismatch
After I refresh few times (15 or so) I get following error message: java.lang.IllegalArgumentException: java.lang.ClassCastException@1645559. I am not sure wher is the problem.

Thanks,
Mark
This topic has been closed for replies.
Correct answer BKBK
Just realized we've been thrashing around for nothing. There are as yet no universal standards for passing XML as arguments to Web service methods. Coldfusion has its own, as do .NET and Java.

The common currency among all web services is SOAP. Hence, one universal way of passing XML, from any client to a web service on any platform, is as a SOAP document.

In your case, you would construct a SOAP document which includes your XML. You could then pass it to the web service using <cfhttp>. I googled and found a fully worked out example in houseOfFusion.

11 replies

Inspiring
July 7, 2008
Can you post the WSDL and your code?