|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello! I have a problem:
I have a webservice in c# that have an array of string as parameter. I want to call it with a coldfusion page, but I can't. I don't know how do it. I put in my coldfusion page the following code: <cfscript> firstName = ArrayNew(1); ArrayAppend(firstName, "Clara"); ArrayAppend(firstName, "Maria"); ArrayAppend(firstName, "Carlos"); ws = CreateObject("webservice","http://mymachine/WebService1/Service1.asmx?wsdl"); ws.setArray(firstName); </cfscript> This code, generate a java.lang.IllegalArgumentException The webservice has the following code: [WebMethod] public void setArray(string[] firstname) { for (int i =0;i<firstname.Length; i++) { string newName = (String)(firstname.GetValue(i))+"1"; } } Thank you very much. Daniela |
|
#2
|
|||
|
|||
|
Can you post the WSDL of the web service in question?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Web services |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|