I work on an application to test JBossWS

I have a web service which turns on a JBoss AS 4.0.5 server, which returns a 
complex type object, "Dmex"

I have this client:


  | try {
  | 
  |            ServiceFactoryImpl factory=new ServiceFactoryImpl();
  |            URL wsdlLocation = new URL("http://localhost:8080/DmexWs"; + 
"?wsdl");
  |            URL mappingUrl=new File("src/java/jaxrpc-mapping.xml").toURL();
  |            QName serviceName = new QName("urn:bsa.ws.test", "DmexWs");
  |            Service service = (Service)factory.createService(wsdlLocation, 
serviceName,mappingUrl);
  |            Call call = service.createCall();
  |          
  |            QName operationName = new QName("urn:bsa.ws.test", "getDmex");
  |            call.setOperationName(operationName);
  |      
  |            Integer id = new Integer(274);
  |            Object retObj = call.invoke(new Object[]{id});
  |            
  |            System.out.println(retObj);
  |             } catch (Exception e) {
  |                     e.printStackTrace();
  |             } 
  | 

and when I run the client, I have this error: 


  | [Fatal Error] :-1:-1: Premature end of file.
  | 

Any idea?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035346
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to