[JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service
by palin
"bernhard_pauler" wrote : I'm somewhat lost. I don't know what artifacts/descriptors are needed for a >JAX-WS< web service...
|
| I start with a handwritten WSDL file and use the wsconsume tool to generate the annotated Java source code. I know I have to put the classes in the 'classes' directory and the WSDL file in the 'wsdl' directory under WEB-INF. What descriptors need to go into the WAR file for deployment, which can be generated and how do they need to look like?
|
| I couldn't find any thorough/step-by-step tutorial on this topic (the "JBossWS 2.0.GA - JAX-WS User Guide" is fairly incomplete in my opinion).
See section 2.1 (POJO endpoints) and 2.2 (SLSB endpoints); anyway the full documentation is coming back soon on the wiki (as soon as the its host is fixed or replaced).
anonymous wrote : jaxrpc-mapping.xml, jboss-web.xml, web.xml, webservices.xml?
You only need web.xml if using pojo endpoints, none of them is using ejb3 slsb endpoints.
Bye
Alessio Soldano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084726#4084726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084726
17 years, 3 months
[JBossWS] - JBossWS 2.1 not installed properly on JBoss 4.05.GA
by ansantharam
Our app is built using JDK 1.4, during the installation of JBossWS on 4.05GA version using the script ant deploy-jboss40
prepare:
undeploy-jboss40:
[delete] Deleting directory C:\jboss-4.0.5.GA\server\default\deploy\jbossws14.sar
deploy-jboss40-ejb3:
[unzip] Expanding: C:\jbossws-native-2.0.1.GA\lib\jbossws-core-scripts.zip into C:\jboss-4.0.5.GA\bin
[copy] Copying 17 files to C:\jboss-4.0.5.GA\client
[copy] Copying 1 file to C:\jboss-4.0.5.GA\lib
[copy] Copying 5 files to C:\jboss-4.0.5.GA\server\default\lib
[mkdir] Created dir: C:\jboss-4.0.5.GA\server\default\deploy\jbossws.sar
[unjar] Expanding: C:\jbossws-native-2.0.1.GA\lib\jbossws-native40.sar into C:\jboss-4.0.5.GA\server\default\deploy\jbossws.sa
r
[mkdir] Created dir: C:\jboss-4.0.5.GA\server\default\deploy\juddi-service.sar
[unzip] Expanding: C:\jbossws-native-2.0.1.GA\lib\juddi-service.sar into C:\jboss-4.0.5.GA\server\default\deploy\juddi-service
.sar
[unzip] Expanding: C:\jbossws-native-2.0.1.GA\lib\jbossws-framework-scripts.zip into C:\jboss-4.0.5.GA\bin
[copy] Copying 3 files to C:\jboss-4.0.5.GA\client
[copy] Copying 3 files to C:\jboss-4.0.5.GA\server\default\lib
deploy-jboss40-no-ejb3:
[move] Moving 1 file to C:\jboss-4.0.5.GA\server\default\deploy\jbossws.sar\META-INF
BUILD FAILED
C:\jbossws-native-2.0.1.GA\build\build-deploy.xml:79: The following error occurred while executing this line:
C:\jbossws-native-2.0.1.GA\build\macros-deploy-native.xml:298: Warning: Could not find file C:\jboss-4.0.5.GA\server\default\deploy\jbossws.sar\META-INF\jboss-service-no-ejb3.xml to copy.
Appreciate any help on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084524#4084524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084524
17 years, 3 months
[JBossWS] - Port does not contain operation meta data for: operationName
by itrahulsoni
I have created One webservice using the JBossws tool
Tools I am using :
JBoss 4.0.5 GA Application Server
JBossws Class
and Ant to build and deploy the webservice on the AppServer
Interface is:
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface math extends Remote
{
public int add(int a,int b) throws RemoteException;
}
And My Class is
import java.rmi.RemoteException;
public class mathClass implements math{
public int add(int a, int b) throws RemoteException {
return a+b;
}
}
and I have created config.xml as well as web.xml and uploaded the webservice on the JBoss Appplication server.
It will also displays the service when I am tying that using
http://localhost:8080/jbossws/services
but when I am creating a client using ther org.apache.axis api
My Client code is :
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Service;
import org.apache.axis.client.Call;
import org.apache.axis.encoding.XMLType;
public class MathClientAxis {
public MathClientAxis()
{
getData();
}
public void getData()
{
try {
Service service = new Service();
Call call = (Call) service.createCall();
String endpoint = "http://localhost:8080/mathservice/MathWs?WSDL";
call.setTargetEndpointAddress(endpoint);
call.setOperationName("add");
call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
call.setUseSOAPAction(false);
System.out.println(org.apache.axis.Constants.URI_SOAP11_ENC);
call.addParameter("int_1",XMLType.XSD_INT, ParameterMode.IN);
call.addParameter("int_2",XMLType.XSD_INT, ParameterMode.IN);
call.setReturnType(XMLType.XSD_INT);
Object temp;
temp = call.invoke(new Object[] {new Integer(4),new Integer(5)});
System.out.println("output"+temp); }
catch(Exception e) { e.printStackTrace(); } }
public static void main(String args[])
{
new MathClientAxis();
}
}
When I invoke the client it will display the following error:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Endpoint {http://math.ws.jboss.org/}mathPort does not contain operation meta data for: add
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084468#4084468
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084468
17 years, 3 months