Re: Webservices for EJB on Weblogic 8.1

2005-05-30 Thread Anne Thomas Manes
Build the wrapper class.

On 5/29/05, Chandu Koppella [EMAIL PROTECTED] wrote:
  
 HI
 Here is my situation please advice me how to go about it...
 
 I have to expose EJB as a webservices...That EJB is already packed in jar
 file it has nearly 20 methods or so and the application server that i need
 to use is weblogicThe problem is many of the methods return
 java.util.Map and java.util.Collection...and the contents of the all the
 Maps are not of the same type all the time i mean if Method1 returns Map
 whose key is String and Values is user defined data type (for instance
 dataType1)...Method2 also returns a Map whose key is a String and values is
 another User Defined data type(for instance dataType2)..
 I tried with weblogic servicegen and WSEE 109 manually building it but that
 did not work outRight now my idea is to write wrapper class which has
 all the 20 methods but return user defined data type(which i have to
 write).Internally each method will be calling the corresponding method in
 EJB..If this is the case for each method i have to create different User
 defined data typeIs this feasible or is there better way of doing it
 
 Thanks for sparing some time to go through my problem
 
  
 Do You Yahoo!?
  Yahoo! Small Business - Try our new Resources site! 
 



jaxrpc 2.0

2005-05-30 Thread robert rowntree
what is the upgrade path on rpc if u are using axis.

do you have to wait for the implementation of these
newer rpc things in an organic AXIS releasse.

OR 

can u just mix the jars from the jaxrpc 2.o into Axis
1.2 RC3 ?

robert rowntree 
Borneo Consulting Inc
415 642 4162
415 335 5539 M


JAX-RPC and Axis

2005-05-30 Thread Abel
Hi,  I am starting with Axis 1.2 and I have found that there is a tinny 
difference in the implemantation of an JSE with what JAX-RPC mandates.
As far as I know JAX-RPC says you must have an interface that extends Remote 
and every method must throw RemoteException,...etc
But in Axis It's enough to code a POJO to implement a JSE (neither 
interfaces nor RemoteException throwing)...


Am I losing something  or in fact that difference exists? Why? Has any pro 
or cons?


thanks in advance
Abel






Re: R: showing dialog / message box to client

2005-05-30 Thread Edoardo Causarano
just return the current expiry time and do a check in the client side  
right after the proxy returns. If diff  so many minutes call renew  
proxy method.


e

--
Le montagne sono così: devi assecondarle anche se ti sputano in  
faccia fiele e veleno.

Perdi se pensi di essere più forte.
Vinci se pensi che non c'è nessuna battaglia.
- Hans Kammerlander

Il giorno 19/mag/05, alle ore 15:41, Plorks mail ha scritto:



The code i have doesn't work.  I realised i was testing both  
service and client on the same pc - whoops !!!



2) with the expire time reult, ask the user if he wants to renew  
it; if

yes call the new created operation that renews it



This is where i'm stuck.  How do i tell a user to renew it?





Weblogic8.1 and Axis 1.2 (Final) :: NullPointerException

2005-05-30 Thread Kiran Kumar


Hello, I wanted to use 
document style webservices so I moved to Axis 1.2 (Final). I built a simple 
webservice (RPC style) to see how Axis 1.2 works.. It did go well with Tomcat 
4.1. I deployed the same war file in weblogic8.1 SP4. It was deployed 
successfully but when I try to call from the client it was giving the following 
error. 

org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on 
DocumentBuilderjava.lang.NullPointerExceptionat 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)


I attached the detailed stack trace in the 
attached txt file. I did following thing to resolve this but could not get 
through this..

1. I kept the jar files saaj.jar, 
xercesImpl.jar, xml-apis.jar, jax-rpc.jar in the weblogic classpath before 
webservices.jar 

Based on stack trace, apache.utils.XMLUtils 
is probably sending some XML which is not being able to get through the weblogic 
document builder. 

If you guys have any idea please throw some 
light on this..


Thanks for your time
Kiran
-
Ph: 312 742 9630
Email: [EMAIL PROTECTED]

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
?xml version=1.0 encoding=UTF-8?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:Bodyindividual 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;in0 
xsi:type=xsd:string50 w washington st/in0in1 href=#id0/in2 
href=#id1//individualmultiRef id=id0 soapenc:root=0 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xsi:type=xsd:int 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;1/multiRefmultiRef 
id=id1 soapenc:root=0 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xsi:type=xsd:boolean 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;true/multiRef/soapenv:Body/soapenv:Envelope
2005-05-30 18:43:44,328 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
HTTP/1.1 500 Internal Server Error
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Date Mon, 30 May 2005 23:43:43 GMT
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Content-Type text/xml; charset=utf-8
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - 
Connection Close

 * HERE IS THE ERROR * 
===
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.utils.XMLUtils - Failed to set 
EntityResolver to null on DocumentBuilder
java.lang.NullPointerException
at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
at 
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
at 
org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
at 
org.apache.axis.message.SOAPDocumentImpl.init(SOAPDocumentImpl.java:70)
at org.apache.axis.SOAPPart.init(SOAPPart.java:1013)
at org.apache.axis.Message.setup(Message.java:366)
at org.apache.axis.Message.init(Message.java:232)
at 
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:767)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at 

Re: Axis 1.2FINAL support for HTTP1.1 and Keep-Alive

2005-05-30 Thread Chris Averia
Hello Davanum,

How do I set Axis to use CommonsHTTPSender instead of the default HTTPSender? Which java source file I need to modify for that?

The reason I want a keep-alive support is that I make a sequence of SOAP calls to a Web Server (I use the stub classes generated by WSDL2Java for that). So for thoughput to be faster, I want my HTTP connection to be persistent. But lets say after I make my last SOAP call, I want the HTTPSender to close the connection. How do I do that?

Thanks a lot!
ChrisDavanum Srinivas [EMAIL PROTECTED] wrote:
You can use CommonsHTTPSender with Jakarta commons HTTPClient library.-- dimsOn 5/30/05, Carolina Morais <[EMAIL PROTECTED]>wrote: Hi Chris,  The Axis implementation don't support Keep-Alive. Axis always closes the connection. See the HttpSender class.  Ana Carolina.  On 5/29/05, Chris Averia <[EMAIL PROTECTED]>wrote:  Hi,   How do I use HTTP 1.1 and Keep-Alive in my axis client? Im using the  classes compiled by wsdl2java. Im using Axis1.2final.   Thanks!  Chris   __  Do You Yahoo!?  Tired of spam? Yahoo! Mail has the best spam protection around  http://mail.yahoo.com -- Davanum
 Srinivas - http://webservices.apache.org/~dims/
		Do You Yahoo!? Yahoo! Small Business - Try our new Resources site!