Okay, I got 1 step further but I think this should really work now but I still 
see an exception. Below is my code:


  | 
  |  ServiceFactory factory = ServiceFactory.newInstance();
  |             QName sName = new QName("http://sidtest.com";, "SidTestService");
  |             URL wsdlURL = new 
URL("http://ny731-4w-324a:8080/sidtest-ejb/SidTestPort?wsdl";);
  |             Service service = factory.createService(wsdlURL, sName);
  |            QName pName = new QName("http://sidtest.com";, "SidTestPort");
  |             SidTest port = (SidTest)service.getPort(pName, SidTest.class);
  |             SayHello request = new SayHello();
  |             SayHelloResponse res = new SayHelloResponse();
  |             if(port == null)
  |                 System.out.println("Port is null");
  |             else
  |                 res = port.sayHello(request);
  | 
  | 


  | 
  | and here's the exception:
  | java.lang.NullPointerException
  |     at 
org.apache.axis.client.AxisClientProxy.proxyParams2CallParams(AxisClientProxy.java:123)
  |     at 
org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:185)
  |     at $Proxy0.sayHello(Unknown Source)
  |     at com.sidtestclient.SidDIIClient.main(SidDIIClient.java:36)
  | 
  | 
  | 
  | 
I belive the proxy is being created and I am also getting a reference to the 
port but when I call the method it throws a NullPointerException. 
Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875666#3875666

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875666


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to