I have a problem with my web service client :

  | try {
  |                     //urn:bsa.ws.test
  |            ServiceFactory factory = ServiceFactory.newInstance();
  |            URL wsdlLocation = new URL("http://localhost:8080/DmexWs"; + 
"?wsdl");
  |            QName serviceName = new QName("urn:bsa.ws.test", "DmexWs");
  |            Service service = (Service)factory.createService(wsdlLocation, 
serviceName);
  |            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();
  |             } 
  | 

The return type is "Dmex" and when I run my client I have this error:


  | org.jboss.ws.WSException: Cannot obtain java type mapping for: 
{urn:bsa.ws.test.types}Dmex
  | 

I generated the jaxrpc-mapping.xml but it seems that my client doesn't use it.
What could I do for this problem?

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

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

Reply via email to