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!

post structure of array from asp.net page to external 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(/*String*/"atari2600", /*String*/"e:\\ /*Object[]*/rules);

any guru know where is problem is ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top