I Have a Interface which i have exposed through XFire and the WSDL is properly generated. One of the methods in the interface takes primitives. How do i handle primitvies with the Dynamic Client.

Interface method :
public OrganizationalUnitDTO getOrganizationalUnitById(long organizationalUnitId);

TestCase :
      Client client = new Client(new URL(" http://localhost:8088/myapp/ouservice?wsdl"));
      Object results = client.invoke("getOrganizationalUnitById", new Object[] { ???});

How do i pass the 'organizationUnitId'. I tried sending a 'java.lang.Long' but it didnt work. When i go directly to the http://localhost:8088/myapp/ouservice?wsdl url, the wsdl comes up nice.

any advice would be great.

regards
Ashok



Reply via email to