SOAP error when trying to invoke an WebService

Hello.

I have an ejb 3.0 as a WebService. I deployed it on Jboss 4.05GA, all ok.

But when i try to call the service from an application it does't work.

XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]

Message: Premature end of file.

at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:249)

and in Jboss i have:

16:43:50,835 ERROR [StandardEndpointServlet] Error processing web service request

javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subclasses of SOAPMessage

at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)

here is the source of my application:

public class Down {

@WebServiceRef(wsdlLocation="http://localhost.localdomain:8080/EJBModule1/NewWebService?WSDL")

static public App.NewWebServiceService service;

/** Creates a new instance of Down */

public Down() {

try {

App.NewWebService we=new NewWebServiceService().getNewWebServicePort();

//if (service == null) System.err.println("service e null");

//else we = service.getNewWebServicePort();

if (we != null) System.out.println(we.add(2,3));

else System.out.println("E null!!");

} catch (Exception ex) {ex.printStackTrace();}

}

public static void main(String[] args) {

Down dd = new Down();

}

}

If I use the @WebServiceRef, service is null and i can't do anything. NewWebServiceService is generated (I used a new WebService/Web Service Client) and it added it as a WebServiceReference in NetBeans). Thanks a lot!

[1850 byte] By [Powerhouse_ba] at [2007-11-26 22:16:59]
# 1
Hi!This error occurs if you run jboss on SDK 1.6. Using JDK 1.5, it works fine. See http://www.jboss.org/?module=bb&op=viewtopic&p=4020868 for more information concerning this bug.Best regards,Thilo
thilo_sa at 2007-7-10 11:10:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...