[ http://jira.codehaus.org/browse/XFIRE-345?page=all ] Dan Diephouse closed XFIRE-345: -------------------------------
Resolution: Won't Fix Fix Version: (was: 1.1-beta-1) 1.1 This is a duplicate of XFIRE-331 and is fixed currently in SVN. > Dynamic Client can not send the second parameter when calling J# web service > method > ------------------------------------------------------------------------------------ > > Key: XFIRE-345 > URL: http://jira.codehaus.org/browse/XFIRE-345 > Project: XFire > Type: Bug > Versions: 1.1-beta-1 > Environment: Visual Studio 2005 (J# as web service server) > Jbuilder X ( Java as web service client) > Reporter: grand_zou > Assignee: Dan Diephouse > Fix For: 1.1 > > Original Estimate: 3 days > Remaining: 3 days > > J# code: > import System.Web.*; > import System.Web.Services.*; > import System.Web.Services.Protocols.*; > /** @attribute WebService(Namespace = "http://tempuri.org/") */ > /** @attribute WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1) */ > public class Service extends System.Web.Services.WebService { > public Service () { > > //如果使用设计的组件,请取消注释以下行 > > //InitializeComponent(); > } > /** @attribute WebMethod() */ > public String HelloWorld() { > return "Hello World"; > } > > /** @attribute WebMethod() */ > public String IntAdd(String a, String b) > { > System.out.println("a="+a+" b="+b); > return a + b; > } > } > Java code: > package test; > import java.net.URL; > import org.codehaus.xfire.client.*; > public class XfireTest { > public XfireTest() {} > public static void main(String[] args) { > XfireTest xfire = new XfireTest(); > try { > xfire.testCurrencyConverter(); > } > catch (Exception e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > > /** > * > * @throws Exception > */ > public void testCurrencyConverter() throws Exception { > try { > URL testURL = new > URL("http://localhost:1126/WebSite5/Service.asmx?WSDL"); > Client client = new Client(testURL); > Object[] results = client.invoke("IntAdd", new Object[] {"bbbb", > "aaa"}); > // Service returns a double of the currency conversion rate. > System.out.println( (String) results[0]); > } > catch (Exception ex) { > ex.printStackTrace(); > } > } > } > The return value is ok when Java client call HelloWorld. But when call IntAdd > , we encounted a problem, J# server can not get the correct second parameter > value. The value is always the same as the first parameter. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira