[jboss-user] Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header!

Koxkorrita koxkorrita at laudio.info
Fri Jun 19 12:13:36 EDT 2009


Hello
i have made one webservice for deploing into my jbosss using jaxws and also
i have made  one client for this.

when i execute the client appears this error:

Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type
in the header!
      at
com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransport
Pipe.java:163)
      at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:118)
      at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:1
15)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      at com.sun.xml.ws.client.Stub.process(Stub.java:248)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
      at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:10
9)
      at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89
)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
      at $Proxy34.getLineasDeSubvencionRequest(Unknown Source)
      at EkirolTramitacionWSCliente.main(EkirolTramitacionWSCliente.java:35)


the code of the client is:
            ServicioWS service = new ServicioWS();
              Servicio portType = service.getServicioPort();
              LineasRequestType p = new LineasRequestType();
              p.setCodigo("entidad");
              p.setDescripcion("la desc");
              
portType.getLineasRequest(p);

can you help me?





More information about the jboss-user mailing list