Title: Message
Hi all,
 
I have a web service that I created in .NET that I am consuming in java...
 
I have tested the service with a .NET client and all works well (no duplicates)
 
But when I test it with a java app,  I get normal results the first time, and with every test after that I get the last results + the results from this call.
 
Any ideas as to what I am doing wrong?
 
here is my test app code...
 
   myServiceSoapStub ws = new myServiceSoapStub(new java.net.URL("http://localhost/myService/myService.asmx"),null);
   ArrayOfAgentInfo aai = ws.getAgentList("012345");
   AgentInfo[] ai = aai.getAgentInfo();
   for (int i=0; i<ai.length; i++)
   {
    System.out.println("Agent Number: " + ai[i].getAgentNumber() + "  --  ");
    System.out.println("Business Code: " + ai[i].getBusinessCode() + "  --  ");
    System.out.println("Business Name: " + ai[i].getBusinessName() + "  --  ");
    System.out.println("Tier ID: " + ai[i].getTierID() + "  --  ");
    System.out.println("TierLevel: " + ai[i].getTierLevel() + "  --  ");
    System.out.println("Project: " + ai[i].getProject() + "  --  ");
    System.out.println("\n=========================================================\n");
   }
   ws = null;
   aai = null;
   ai = null;
Any suggestions are appreciated...
 
Thanks,
 
Keith

Reply via email to