[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-03 Thread nycos62
i ve read the wiki another time and i've generated rpc/literal files with 
wscompile but the customer class still send back me a NPE on 
Call.GetTypeMapping.


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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-03 Thread nycos62
I hope that one day JBoss will be able to compete with Dotnet about webservices.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-02 Thread nycos62
(i m using JbossWS, jaxrpc, wscompile, Jboss 4.0.1 sp1)

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-02 Thread nycos62
perhaps it s depend of the SOAP version because i read somewhere that Soap 1.1 
can only process atomic variable like char and not string.
May I perhaps make a new type string (an array of char) ?
or specify that i want using SOAP 1.2 but i don't know how.

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-02 Thread nycos62
when i use the client class :


  | public static void main(String[] args) throws MalformedURLException, 
ServiceException, RemoteException {
  | 
  | String urlstr="http://localhost:9001/mywebservices/HelloWorldService?wsdl";;
  | System.out.println("Contacting webservice at " + urlstr);
  | URL url =  new URL(urlstr);
  | QName qname = new QName("urn:HelloWorldService","HelloWorldService");
  | 
  | ServiceFactory factory = ServiceFactory.newInstance();
  | Serviceservice = factory.createService(url, qname);
  | 
  | HelloWorld  hello   = (HelloWorld) 
service.getPort(HelloWorld.class);
  | System.out.println("Service found");
  | System.out.println("hello.getHello(truc)");
  | System.out.println(hello.getHello("truc")); <=== return an error
  | 

** error stack **
anonymous wrote : 
  | 
  | java.lang.NullPointerException
  | at org.apache.axis.client.Call.getTypeMapping(Call.java:2402)
  | at org.apache.axis.client.Call.setReturnType(Call.java:1230)
  | at org.apache.axis.client.Call.setOperation(Call.java:1412)
  | at 
org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:369)
  | at $Proxy0.getHello(Unknown Source)
  | at utils.locator.WSLocator.main(WSLocator.java:64)
  | Exception in thread "main" 
  | 

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-02 Thread nycos62
*** the Endpoint Interface ***

 
  | package helloworld.ejb;
  | 
  | import java.rmi.Remote;
  | import java.rmi.RemoteException;
  | 
  | public interface HelloWorldEndpoint extends Remote {
  | 
  | public String getHello(String nom) throws RemoteException;
  | 
  | }

*** the wsdl file ***

  | 
  | 
  | http://schemas.xmlsoap.org/wsdl/"; 
  | xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
  | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
  | 
  |   
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; />
  | http://schemas.xmlsoap.org/wsdl/"; />
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  |   
  | http://schemas.xmlsoap.org/soap/http"; 
style="rpc"/>
  | 
  |   
  |   
  | http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" 
namespace="urn:HelloWorldService"/>
  |   
  | http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" 
namespace="urn:HelloWorldService"/>
  |   
  | 
  |   
  | 

*** the jaxprc-mapping file ***

  | 
  | http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";>
  | 
  | 
  | helloworld.ejb
  | urn:HelloWorldService
  | 
  | 
  | 
  | 
helloworld.ejb.HelloWorldService
  | serviceNS:HelloWorldService
  | 
  | HelloWorldEndpointPort
  | HelloWorldEndpointPort
  | 
  | 
  | 
  | 
  | 
helloworld.ejb.HelloWorldEndpoint
  | portTypeNS:HelloWorldEndpoint
  | bindingNS:HelloWorldEndpointBinding
  | 
  | 
  | getHello
  | getHello
  | 
  | 
  | 0
  | java.lang.String
  | 
  | wsdlMsgNS:HelloWorldEndpoint_getHello
  | 
String_1
  | IN
  | 
  | 
  | 
  | 
  | 
java.lang.String
  | wsdlMsgNS:HelloWorldEndpoint_getHelloResponse
  | 
result
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
*** the webservices.xml ***

  | 
  | http://java.sun.com/xml/ns/j2ee";
  |xmlns:impl="http://com.myapp/ws4ee";
  |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  |  
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd";
  |version="1.1">
  | 
  |   
  |  
HelloWorldService
  |  META-INF/wsdl/HelloWorldService.wsdl
  |  
META-INF/jaxrpc-mapping.xml
  |  
  | port component description
  | HelloWorldService
  | HelloWorldEndpointPort
  | 
helloworld.ejb.HelloWorldEndpoint
  | 
  | helloworld   
  | 
  |  
  |   
  | 
  | 

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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Problem with typeMapping when turning an EJB into a WebS

2005-05-02 Thread nycos62
*** The Endpoint Interface :

package helloworld.ejb;

import java.rmi.Remote;
import java.rmi.RemoteException;


public interface HelloWorldEndpoint extends Remote {

public String getHello(String nom) throws RemoteException;

}

*** the wsdl file :



http://schemas.xmlsoap.org/wsdl/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>

  

http://schemas.xmlsoap.org/soap/encoding/"; />
http://schemas.xmlsoap.org/wsdl/"; />

  
  

  

  

  
  
  
http://schemas.xmlsoap.org/soap/http"; style="rpc"/>

  
  
http://schemas.xmlsoap.org/soap/encoding/"; 
use="encoded" namespace="urn:HelloWorldService"/>
  
http://schemas.xmlsoap.org/soap/encoding/"; 
use="encoded" namespace="urn:HelloWorldService"/>
  

  

*** the jaxrpc-mapping file :

http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";>


helloworld.ejb
urn:HelloWorldService




helloworld.ejb.HelloWorldService
serviceNS:HelloWorldService

HelloWorldEndpointPort
HelloWorldEndpointPort





helloworld.ejb.HelloWorldEndpoint
portTypeNS:HelloWorldEndpoint
bindingNS:HelloWorldEndpointBinding


getHello
getHello


0
java.lang.String

wsdlMsgNS:HelloWorldEndpoint_getHello

String_1
IN





java.lang.String
wsdlMsgNS:HelloWorldEndpoint_getHelloResponse

result








*** the webservices.xml file


http://java.sun.com/xml/ns/j2ee";
   xmlns:impl="http://com.myapp/ws4ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
 http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd";
   version="1.1">

  
 
HelloWorldService
 META-INF/wsdl/HelloWorldService.wsdl
 META-INF/jaxrpc-mapping.xml
 
port component description
HelloWorldService
HelloWorldEndpointPort

helloworld.ejb.HelloWorldEndpoint

helloworld   

 
  


*** the EJB-jar.xml file


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>





helloworld
helloworld

helloworld.ejb.HelloWorldEndpoint
helloworld.ejb.HelloWorldHome
helloworld.ejb.HelloWorld
helloworld.ejb.HelloWorldLocalHome
helloworld.ejb.HelloWorldLocal
helloworld.ejb.HelloWorldBean
Stateless
Container

 



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

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


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user