[jboss-user] [JBossWS] - Re: how to publish my own wsdl

tpawankumar do-not-reply at jboss.com
Thu Nov 15 00:21:40 EST 2007


Hi Alessio,

Thanks for the reply.


I have tried but i didnt succeed.

This is my SEI
package com.covad.inter;
  | 
  | import java.rmi.Remote;
  | import java.rmi.RemoteException;
  | 
  | import javax.jws.WebService;
  | 
  | 
  | 
  | @WebService(name="Hello",targetNamespace = "http://Inter.covad.com/")
  | public interface Hello extends Remote {
  | 	
  | 	String echo(String value) throws RemoteException;
  | 
  | }

and following code is my implementation of SEI
package com.covad.impl;
  | 
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | 
  | @WebService(name="HelloImpl",targetNamespace = "http://Inter.covad.com/",wsdlLocation="WEB-INF/wsdl/HelloService.wsdl",portName="HelloPort")
  | //@SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class HelloImpl {
  | 	
  | 	public String echo(String value)
  | 	{
  | 		return "Hello"+value;
  | 	}
  | 
  | }
  | 

This is my HelloService.wsdl
<?xml version="1.0" encoding="UTF-8"?>
  | <definitions name='HelloService' targetNamespace='http://Inter.covad.com/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://Inter.covad.com/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  |  <types/>
  |  <message name='Hello_echo'>
  |   <part name='arg0' type='xsd:string'/>
  |  </message>
  |  <message name='Hello_echoResponse'>
  |   <part name='return' type='xsd:string'/>
  |  </message>
  |  <portType name='Hello'>
  |   <operation name='echo' parameterOrder='arg0'>
  |    <input message='tns:Hello_echo'/>
  |    <output message='tns:Hello_echoResponse'/>
  |   </operation>
  |  </portType>
  |  <binding name='HelloBinding' type='tns:Hello'>
  |   <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
  |   <operation name='echo'>
  |    <soap:operation soapAction=''/>
  |    <input>
  |     <soap:body namespace='http://Inter.covad.com/' use='literal'/>
  |    </input>
  |    <output>
  |     <soap:body namespace='http://Inter.covad.com/' use='literal'/>
  |    </output>
  |   </operation>
  |  </binding>
  |  <service name='HelloService'>
  |   <port binding='tns:HelloBinding' name='HelloPort'>
  |    <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
  |   </port>
  |  </service>
  | </definitions>

When i deployed in Jboss 4.2.1 GA.It is giving me the following exception

java.lang.IllegalStateException: Cannot find endpoint meta data for: JWeb
        at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM
etaData(UnifiedMetaDataDeploymentAspect.java:117)
        at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi
edMetaDataDeploymentAspect.java:86)
        at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
(DeploymentAspectManagerImpl.java:115)
        at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
loyerHook.java:97)
        at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
erceptor.java:90)
        at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
start(SubDeployerInterceptorSupport.java:188)
        at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
ptor.java:95)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy45.start(Unknown Source)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)


could you please let me know where i am doing wrong?

Thanks in Advance.
Pavan.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104836



More information about the jboss-user mailing list