users@glassfish.java.net

Web Service test Error

From: <glassfish_at_javadesktop.org>
Date: Wed, 04 Jul 2007 02:00:53 PDT

Hello everybody !
I'm french, so excuse me for my possible lang faults ! :)

I've created an EJB Session Bean and deployed it as Web service.

Here is the wsdl :

<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://webs.cdam.clemessy.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://webs.cdam.clemessy.com/" name="CallTotoBeanService">
- <types>
- <xsd:schema>
  <xsd:import namespace="http://webs.cdam.clemessy.com/" schemaLocation="http://BTH509425WXP.intra-clemessy.fr:8080/CallTotoBeanService/CallTotoBean/__container$publishing$subctx/META-INF/wsdl/CallTotoBeanService_schema1.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
  </xsd:schema>
  </types>
- <message name="callToto">
  <part name="arg0" type="xsd:string" />
  <part name="arg1" type="xsd:string" />
  </message>
- <message name="callTotoResponse">
  <part name="return" type="tns:toto" />
  </message>
- <portType name="CallTotoRemote">
- <operation name="callToto" parameterOrder="arg0 arg1">
  <input message="tns:callToto" />
  <output message="tns:callTotoResponse" />
  </operation>
  </portType>
- <binding name="CallTotoBeanPortBinding" type="tns:CallTotoRemote">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
- <operation name="callToto">
  <soap:operation soapAction="" />
- <input>
  <soap:body use="literal" namespace="http://webs.cdam.clemessy.com/" />
  </input>
- <output>
  <soap:body use="literal" namespace="http://webs.cdam.clemessy.com/" />
  </output>
  </operation>
  </binding>
- <service name="CallTotoBeanService">
- <port name="CallTotoBeanPort" binding="tns:CallTotoBeanPortBinding">
  <soap:address location="http://BTH509425WXP.intra-clemessy.fr:8080/CallTotoBeanService/CallTotoBean" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
  </port>
  </service>
  </definitions>

When i try to test it in the Application Server Console, the following error comes :

Exceptions details : java.lang.RuntimeException: Service Class not generated as expected

--------------------------------------------------------------------------------
javax.servlet.ServletException: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:546) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doGet(WebServiceTesterServlet.java:158) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:104) at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:102) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:101) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:521) ... 24 more

Someone has a clue to solve the problem ?

Thanks in advance !

Best regard.
[Message sent by forum member 'mehdib' (mehdib)]

http://forums.java.net/jive/thread.jspa?messageID=225168