Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send structure of array parameter from asp.net page to web service

Status
Not open for further replies.

joeatsatachi

Programmer
Sep 15, 2005
5
GB
(Type your message here)

--------------------------------
From: zhou yu
hi
I am working on consume coldfusion service in asp.net page. the web service has a required parameter of structure of array.I did the follow code
<script language="c#" runat="server">
struct param {
public string action;
public string @class;
public string target;
}
void cfSetSandBox(object sender, EventArgs e){
CF7SandBox aCF7SandBox;
param [] rules=new param[1];
rules[0].action="read";
rules[0].@class="java.util.PropertyPermission ";
rules[0].target="*";
Object aObject = aCF7SandBox.setSecuritySandbox(/*adminpassword*/"password", /*String*/"e:\\ /*Object[]*/rules);

}
</script>

but i got this error message Compiler Error Message: CS1502: The best overloaded method match for 'CF7SandBox.setSecuritySandbox(string, string, object[])' has some invalid arguments


the error line is
Object aObject = aCF7SandBox.setSecuritySandbox(/*adminpassword*/"password", /*String*/"e:\\ /*Object[]*/rules);


any guru know where is problem is ?
 
yep. you're asking the wrong forum.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top