[JBossWS] - SOAP Error- DefaultNamespace doesnot contain operation metad
by pshankar
anonymous wrote : Getting Metadata error with the default namespace. The WSDL is generated with Java2WSDL supplied by JBOSS IDE. The Webservice deploys but error when trying to access it
| <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <soapenv:Header/>
| <soapenv:Body>
| <ns1:setName xmlns:ns1='http://localhost:8080/MySpringService/' soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
| <String_1 xsi:type='xsd:string' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>Shankar-Web Service!!!</String_1>
| </ns1:setName></soapenv:Body></soapenv:Envelope>
| 2006-12-13 08:25:08,141 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] getDispatchDestination: null
| 2006-12-13 08:25:08,141 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] getDispatchDestination: null
| 2006-12-13 08:25:08,141 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new SOAPFaultException [code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=Endpoint {http://DefaultNamespace}MySpringService does not contain operation meta data for: {http://localhost:8080/MySpringService/}setName,actor=null,detail=null]
| 2006-12-13 08:25:08,141 ERROR [org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
| javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://DefaultNamespace}MySpringService does not contain operation meta data for: {http://localhost:8080/MySpringService/}setName
| at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
| at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
| at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993399#3993399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993399
17 years, 10 months
[JBossWS] - Upgrading 4.0.4 to 4.0.5
by prakah
Hello All,
I have an Medrec application running in JBoss 4.0.4 version. But the same application doesn't work in JBoss 4.0.5, even unable to compile medrec for this version.
I think, there might be some changes were done WebService part. The error is given below.
| genWSjava:
| [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/axis/wsdl/WSDL2Java
| [java] Java Result: 1
|
| compilewsejb:
| [javac] Compiling 14 source files to /disk1/jboss/4.0.5/demos/medrec/build/medrecEar/webServicesEjb
| [javac] /disk1/jboss/4.0.5/demos/medrec/build/medrecEar/webServicesEjb/com/bea/medrec/webservices/AddressWS.java:148: package org.jboss.axis.description does not exist
| [javac] private static org.jboss.axis.description.TypeDesc typeDesc =
| [javac] ^
|
| ..
| ..
| ..
| ..
I have already checked that there is no jar available in JBoss 4.0.5 which contains org.jboss.axis package.
Please give me an idea to solve the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993358#3993358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993358
17 years, 10 months
[JBossWS] - javax.xml.ws.soap.SOAPFaultException: Port does not contain
by ramkrishnatripathi
Hi guys,
I am using jboss4.0.4GA.
I have created a webservice to add Two numbers.
After deploying the project I get CalculatorService.wsdl
Now I want to consume the webservice by client program.
After running the client program I get the following Exception:-
So Please tell me Where I am wrong??
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Endpoint {http://hello/jaws}CalculatorPort does not contain operation meta data for: {http://hello/}add
at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:80)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:200)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:549)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy7.add(Unknown Source)
at hello.JAXWSClient.main(JAXWSClient.java:36)
Interface
=======
package hello;
import java.rmi.Remote;
import java.rmi.RemoteException;
import javax.ejb.Local;
import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
@Local
@WebService
@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
public interface CalculatorInf extends Remote{
@WebMethod(operationName="add", action="urn:add")
public String add(int i, int j) throws RemoteException;
}
implementaion class
====
package hello;
import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.ejb.Stateless;
@WebService
//(endpointInterface="hello.CalculatorInf")
@Stateless
public class Calculator implements CalculatorInf {
public Calculator() {}
@WebMethod(operationName="add", action="urn:add")
public String add(int i, int j) {
int k = i +j ;
System.out.println(i + "+" + j +" = " + k);
return String.valueOf(k);
}
}
Client Program
=========
package hello;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.rpc.*;
public class JAXWSClient {
static String host = "localhost";
static String portType = "Calculator";
static String serviceName = "hello-servlet";
static String serviceEndpointAddress = "http://" + host + ":8080/" + serviceName;
static String nameSpace = "http://hello/jaws";
public static void main(String[] args) throws Exception {
URL wsdlLocation = new URL(serviceEndpointAddress + "/" + portType + "?WSDL");
QName serviceNameQ = new QName( nameSpace, "CalculatorPort");
Service service = Service.create(wsdlLocation, serviceNameQ);
CalculatorInf first = (CalculatorInf) service.getPort(serviceNameQ,hello.CalculatorInf.class);
System.out.println("1: " + first.add(2, 2));
}
}
WSDL
===
<definitions name="CalculatorService" targetNamespace="http://hello/jaws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://hello/jaws" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <schema elementFormDefault="qualified" targetNamespace="http://hello/jaws" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://hello/jaws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
-
-
-
-
-
-
-
-
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
-
<soap:operation soapAction="" />
-
<soap:body use="literal" />
-
<soap:body use="literal" />
-
-
<soap:address location="http://RAM-KRISHNA:8080/hello-servlet/Calculator" />
=============
Thanks.........
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993338#3993338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993338
17 years, 10 months