[JBossWS] - Re: Webservice Client consumer
by nean
sorry it seems there is somes mod for xml ...
i put it again :
?
| <definitions name="wsSiteBeanService" targetNamespace="http://wsSite/">
| <types/>
| ?
| <message name="wsSite_getDelaiProduitResponse">
| <part name="return" type="xsd:int"/>
| </message>
| ?
| <message name="wsSite_getPrixProduit">
| <part name="arg0" type="xsd:string"/>
| </message>
| ?
| <message name="wsSite_getPrixProduitResponse">
| <part name="return" type="xsd:double"/>
| </message>
| ?
| <message name="wsSite_getDelaiProduit">
| <part name="arg0" type="xsd:string"/>
| </message>
| ?
| <portType name="wsSite">
| ?
| <operation name="getDelaiProduit" parameterOrder="arg0">
| <input message="tns:wsSite_getDelaiProduit"/>
| <output message="tns:wsSite_getDelaiProduitResponse"/>
| </operation>
| ?
| <operation name="getPrixProduit" parameterOrder="arg0">
| <input message="tns:wsSite_getPrixProduit"/>
| <output message="tns:wsSite_getPrixProduitResponse"/>
| </operation>
| </portType>
| ?
| <binding name="wsSiteBinding" type="tns:wsSite">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
| <operation name="getDelaiProduit">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </output>
| </operation>
| ?
| <operation name="getPrixProduit">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://wsSite/" use="literal"/>
| </output>
| </operation>
| </binding>
| ?
| <service name="wsSiteBeanService">
| ?
| <port binding="tns:wsSiteBinding" name="wsSiteBeanPort">
| <soap:address location="http://localhost:8080/SiteMarchand-ejb/wsSiteBean"/>
| </port>
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029165#4029165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029165
17 years, 9 months
[JBossWS] - Webservice Client consumer
by nean
Hello i have some problems to built a client which can use web services deployed...
My config is like :
- eclispe jboss IDE 2.0.0 beta
- jboss 4.0.5 EJB3 config
- jdk 1.5_11
i deploy normaly an EJB3.0 webservice on jboss, and my wsdl is like :
anonymous wrote : ?
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
|
|
| ?
|
| ?
|
|
|
|
| ?
|
|
|
|
|
| ?
|
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
|
| <soap:operation soapAction=""/>
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
|
| ?
|
| <soap:operation soapAction=""/>
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
| ?
|
| <soap:body namespace="http://wsSite/jaws" use="literal"/>
|
|
|
| ?
|
| ?
|
| <soap:address location="http://localhost:8080/SiteMarchand-ejb/wsSiteBean"/>
|
|
|
my client is like :
import java.net.MalformedURLException;
| import java.net.URL;
| import java.rmi.RemoteException;
|
| import javax.xml.namespace.QName;
| import javax.xml.rpc.Call;
| import javax.xml.rpc.Service;
| import javax.xml.rpc.ServiceException;
| import javax.xml.rpc.ServiceFactory;
|
| public class testWS {
|
| /**
| * @param args
| * @throws MalformedURLException
| */
| public static void main(String[] args) {
| // TODO Auto-generated method stub
| String urlstr="http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl";
| URL url=null;
| try {
| try {
| url = new URL(urlstr);
| } catch (MalformedURLException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
| System.out.println("Contacting webservice at " + urlstr);
| String ns = "http://wsSite/jaws";
|
| QName qname = new QName(ns,"wsSiteService");
| QName port = new QName(ns, "wsSitePort");
| QName operation = new QName(ns, "getPrixProduit");
|
| ServiceFactory factory = ServiceFactory.newInstance();
| Service service = factory.createService(url, qname);
| Call call = service.createCall(port, operation);
| try {
| Double d = (Double) call.invoke(new Object[]{"ezekiel"});
| } catch (RemoteException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| } catch (ServiceException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
| }
i imported these libraries in my classpath :
anonymous wrote :
| jre system library 1.5_11
| JbossAOP 1.3 libraries (sdk 1.5)
| J2EE 1.4 Libraries (JBoss-IDE)
| jboss ejb3 libraries
| jbossws-client.jar
And my error returned :
anonymous wrote : Contacting webservice at http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl
| Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106)
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
| at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
| at testWS.main(testWS.java:37)
ligne 37 of testWS.java is "Service service = factory.createService(url, qname);"
So is there someone who can give me a solution or my error ?
Or maybe a tips to create automaticaly the client with my configuration...
Thanks for responses, please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029164#4029164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029164
17 years, 9 months
[JBossWS] - Re: is it safe to pack keystore file in my application and s
by PeterJ
I have also been contemplating something similar, but came up with several reasons why this would not be a good idea.
First, using keytool to generate a certificate is fine for development, test and even perhaps internal use. But if the application will be interacting with users outside of the company then you will want to get a certificate from a valid certificate authority such as VeriSign. That of course costs money, though if you charge for your product you could always include the cost of the certificate in the cost of the product.
Second, each customer needs its own certificate. That is, you cannot generate a single certificate and use it for every customer. This then becomes a packaging issue - you cannot simply generate a stack of CDs and give one to each customer - each CD has to be custom made.
Third, the certificate has a public and private key. The more people who handle the private key the more likely it is to be compromised. As a business concerned about maintaining privacy, both of my own information and that of my customers (since violating customer privacy can result in various government-imposed penalties), I would not want anyone else to have access to my private key.
These are the ones I have thought of so far. My current thought is to offer to generate a certificate using keytool as part of the installation of my product, or allow the customer to provide information about the keystore that the customer has set up (presumably with a certificate from an authority such as VeriSign) and have the installer hook up to that keystore. While this might not be as convenient, it is more secure.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028879#4028879
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028879
17 years, 9 months
[JBossWS] - JAX-WS servlet initializing error during deployment of jaxws
by trivedikumar_mca@yahoo.com
Hi,
I am trying to deploy the jaxws webservices on jboss 4.0.4GA. During deployment, I was getting the following errors for this webservices:
===========================================
12:01:07,247 INFO [TomcatDeployer] deploy, ctxPath=/jboss404jaxws, warUrl=.../tmp/deploy/tmp5099jboss404jaxws-exp.war/
12:01:07,466 ERROR [STDERR] Mar 16, 2007 12:01:07 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate init
INFO: WSSERVLET14: JAX-WS servlet initializing
12:01:07,466 ERROR [STDERR] Mar 16, 2007 12:01:07 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate warnMissingContextInformation
WARNING: WSSERVLET16: missing context information
============================================
My project name is jboss404jaxws, I am using SUN jaxws jars. Is that something causing issue? pls help me.
Thanks in advance
Trivedi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028682#4028682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028682
17 years, 9 months