Click here to Skip to main content
15,887,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
How to use xfire client to pass more than one parameter?Now I can only pass one parameter.My code is here,and it runs well.But if I want to pass two parameter named "paraone" and "paratwo" String which value is "p1" and "p2" in the other service,How to change my code? 

     
	 Client c=new Client(new URL("http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx?wsdl"));
	  Object[] o=c.invoke("toTraditionalChinese", new String[]{  
				        		 "冯小刚"	 
				        		});
			 System.out.print(o.length+o[0].toString());


What I have tried:

C#
I try to change it,but it seems wrong.
        Client c=new Client(new URL("http://www.webxml.com.cn/WebServices/otherService.asmx?wsdl"));
	  Object[] o=c.invoke("mutiparaMethod", new String[]{  
	  "paraone":"p1",
	 "paratwo":"p2"});
	 System.out.print(o.toString());
Posted
Updated 6-Dec-16 21:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900