What are the design patterns used?

2004-09-08 Thread Mahen Perera
Hi ! I want to what are the design patterns used in Axis. Not the general stuff like Factory pattern, but more specific things such as Chain of Responsibility , Mediator etc. Specifically, I would like to know whether the Chain of Responsibility pattern is used in the Handler Architecture (invoca

Re: SOAPMonitor

2004-09-08 Thread Toshiyuki Kimura
Hi Markus, I think you might be correct. As you know, the SOAP messages are captured by SOAPMonitorHandler when you configure the server to use the SOAPMonitor. But, if you have an exception on your handler chain, SOAPMonitorHandler.invoke() method should not be called by the Axis runtime. i.

Problems generating Document / Literal wsdl using Java2Wsdl

2004-09-08 Thread Canham Michael
> I have successfully created a number of rpc/encoded web services using Axis 1.1 > > I need to provide these services as document/literal web services. > > I have loaded axis 1.2beta > > However when I run the wsdl2Java generator I get the following error : > > faultString: Please register

Re: Scope - Performance

2004-09-08 Thread Mahen Perera
Hi Patrick, I think u have used the wrong word, as in *local varibales*. Since ur Web Service does not maintain state, it is not appropriate to contain *instance variables* (not local variables). The following was quoted from the Axis user guide, "Axis supports scoping service objects (the actua

Re: Securing Axis Best Practices Time Estimate

2004-09-08 Thread Keast Ann
Hindsight is always 20/20 as they say - I was hoping to get a feel on what it took from people who had done it. Please assume low familiarity with Axis source code. Also assume that we're logging everything and we will not use Servlets2.3 filters. This is really an estimate on hardening the Axis

Re: Securing Axis Best Practices Time Estimate

2004-09-08 Thread matthew.hawthorne
Keast Ann wrote: How long does it typically take to secure Axis for a production environment? I"m not talking about securing my webservice code - but Axis itself for a production environment. This is in reference to the "Securing Axis" section located on: http://cvs.apache.org/viewcvs.cgi/~checko

Securing Axis Best Practices Time Estimate

2004-09-08 Thread Keast Ann
Hi All, How long does it typically take to secure Axis for a production environment? I"m not talking about securing my webservice code - but Axis itself for a production environment. This is in reference to the "Securing Axis" section located on: http://cvs.apache.org/viewcvs.cgi/~checkout~/ws-a

Re: changing HTTP header values from Axis

2004-09-08 Thread Paul Callahan
Take a look at the generated service factory... There should be a getService method that takes a string--which will give you the ability to send to a different endpoint. -pc On Wed, 8 Sep 2004 09:25:35 -0700, Samir Shaikh <[EMAIL PROTECTED]> wrote: > Hi, > > I have a (axis generated WSDL2JAVA

Re: Jibx, jaxb and webservices question

2004-09-08 Thread Paul Callahan
This sounds like a good candidate for XSL. If you were to use a message-style service, you could obtain the XML DOM directly, do the transformation via XSL to send to the remote system. To return, just transform back with XSL again and return the resulting Dom... might be worth thinking about--o

turning off xsi:types="xsd:string"

2004-09-08 Thread Mark Malinoski
I'm trying to turn off sending of xsi:types attribute in header elements of an AXIS service. On the service side I have change the server configuration file and do not get the expected behavior. See below. ... On the client side I ha

xsi:type="xsd:string"

2004-09-08 Thread Mark Malinoski
I'm trying to turn off sending of xsi:types attribute in header elements of an AXIS service. On the service side I have change the server configuration file and do not get the expected behavior. See below. ... On the client side I ha

RE: How to get one object per thread?

2004-09-08 Thread Branko Peteh
Yes, request will do it. It is just very expensive. What I would really need is per-thread instantiation, because the instantiation is, in this particular case, very expensive, so doing it repeatedly on every request is just wasteful (CPU, resources, memory etc.). How about creating a specialized

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
Well, you seem to be making progress, Jochen. I'm surprised that reusing the engine or service didn't work. I was looking at the 1.1. source, maybe you're using 1.2, which could be different. According to the "Building Web Services with Java" book, the session ID is stored in the Message Context,

RE: Jibx, jaxb and webservices question

2004-09-08 Thread Marco Mistroni
Have u tried castor with axis? There's an interesting article on ibm website about that.. http://www-106.ibm.com/developerworks/webservices/library/ws-castor -Original Message- From: Fergusson, Hamish [mailto:[EMAIL PROTECTED] Sent: 08 September 2004 16:17 To: [EMAIL PROTECTED] Cc: [EM

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi Tony, thanks for your investigation! Setting the Engine object did not work. Reusing the Service neither. But reusing the Call object works! It seems that all information about the session is stored in the Call object. Since I have not found a way to do this via a handler, I have to find out,

RE: changing HTTP header values from Axis

2004-09-08 Thread Samir Shaikh
Hi, I have a (axis generated WSDL2JAVA) java client that is calling a webservice. The default string that the client is populating the Host field with is the remote server's name, I want to change that to something else. Please help. Thanks, Samir -Original Message- From: [EMAIL PROTE

Scope - Performance

2004-09-08 Thread Patrick Herber
Hi, I'm implementing my first Web Service and I have a question regarding the "scope" of the Web Service and its influence on the performance: my Web Service won't have any state (local variables), will only perform read operations (therefore I don't have any locking problem) and is going to be us

Re: Jibx, jaxb and webservices question

2004-09-08 Thread tony . q . weddle
Hamish, I've just been made aware of Apache XML Beans. It seems one can compile XML Schema into Java classes that can access an underlying DOM in a Java friendly way. Maybe you can access the incoming SOAP body using XML Beans, create your new Java objects (with XML Beans generated from your othe

Jibx, jaxb and webservices question

2004-09-08 Thread Fergusson, Hamish
Hello All, I have the following situation and am wondering if any of you can offer any suggestions as to how to best handle it : 1) I have added a new method to the wsdl and this method basically accepts the given input and then has to transform/map the data into an xml structure ( not SOAP

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
OK, Jochen. Following your reply, I had a quick look at the Axis source and it seems as though a new AxisClient is created for each Service object. The session ID is stored in the AxisClient so I guess you'd need to use the same Service object for all service calls. This may not be normal behaviou

Re: NoSuchMethodException with Axis1.2

2004-09-08 Thread sandeep arshanapally
But I don't see this problem with Axis 1.1 final. Has there been a significant implementation change between 1.1 and 1.2? Sandeep On Wed, 08 Sep 2004 10:23:32 +0200, Fabien Marsaud <[EMAIL PROTECTED]> wrote: > I sent a message on this list on august 24th to say i had exactly the same > problem.

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi Tony, I think there is some misunderstanding. I'm requesting all services from the same JVM. First I create a Service and a Call object for the first service and then for the second. On the server-side I'm storing an object in the session and access it on each request. When accessing the sec

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
Jochen, I suspect that you would have to keep the client JVM alive and make all service calls from that JVM, in order to maintain the session across different service calls. Using the HTTP sessions might work better, though I doubt it. Other than that, you'd probably have to write your own sessio

RE: Axis webservices and Visual Basic

2004-09-08 Thread Bouche Paul
Hi, what exactly do you need to do? When you encode the AXIS service with DOC / lireral then that creates a lof of problems on the AXIS side, sometimes AXIS creates DOC / encoded types which is not valid (in a DOC/literal context) and .NET does not handle them. When you encode the AXIS servic

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Thanks for this tip. After copying the part from the default config file into my specific client-config.wsdd, the service does connect to the server again. The I added to each service entry (the handler is defined before ) Now I have the same effect

SOAPMonitor

2004-09-08 Thread in5y280
Hello, I tried the SOAPMonitor to trace my web service. Everythings works fine, but when the server answers with an remote exception, the response is never displayed in the soap monitor and the request status is still active. But my client gets the exception. What am I doing wrong? Markus

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
Jochen, Did you include the transport pivot handler that I think is specified in the default client-config.wsdd? That's the bit that actually sends your request. The client-config.wsdd default file is in the axis.jar file, in the org.apache.axis.client package. Tony Thats not the problem. The

Re: Sessions across different services

2004-09-08 Thread Mahen Perera
if u remove it (client- config.wsdd) from the class path, does it make a connection? On Wed, 08 Sep 2004 15:06:36 +0200, Jochen Schwörer <[EMAIL PROTECTED]> wrote: > Thats not the problem. The config file is used by axis, but it does not > make any connection. > > Jochen > > > > Mahen Perera

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Thats not the problem. The config file is used by axis, but it does not make any connection. Jochen Mahen Perera wrote: try this use the following java option when running the client , as in -Daxis.ClientConfigFile=\\client- config.wsdd Mahen On Wed, 08 Sep 2004 14:36:30 +0200, Jochen Schwörer <

Re: AW: Axis webservices and Visual Basic

2004-09-08 Thread Paul Callahan
Peter, You can also just use the WinHttpRequest to send and receive raw SOAP. I use this with a doc/literal style service I developed in Axis 1.1. Here is some sample code: Private Function SendRequest() As IXMLDOMNodeList Dim httpReq As New WinHttpRequest Dim responseDoc As New DOMDoc

Re: Sessions across different services

2004-09-08 Thread Mahen Perera
try this use the following java option when running the client , as in -Daxis.ClientConfigFile=\\client- config.wsdd Mahen On Wed, 08 Sep 2004 14:36:30 +0200, Jochen Schwörer <[EMAIL PROTECTED]> wrote: > Hi Mahen, > > > Joschen>> can u tell me how ur invoking the two services from the > > cl

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi Mahen, Joschen>> can u tell me how ur invoking the two services from the client side. R u using Call objects? or WSDL2Java generated proxy? for testing I am using a Service and a Call object at the moment. Later I want to use WSDL2Java generated proxies. I tried to use a client-config.wsdd fil

Axis 1.1 Errors - java.lang.NumberFormatException

2004-09-08 Thread m.higginbottom
I currently have two problems with Axis 1.1 running on a Solaris 9 box using Sun One Application Server. I have installed Axis and my service. The happy Axis page is OK and I can see it in the list of deployed services. The two problems I have are: 1. When my client hits my service I get an e

Re: Sessions across different services

2004-09-08 Thread Mahen Perera
Hi Jochen, Tony, Appreciate u guys ideas. yes, in the client-config.wsdd also we have to specify the SimpleSessionHandler in both request flows and response flows for the corresponding services, in order for the session management to work. this is similar to the server-config.wsdd file. using

response character encoding

2004-09-08 Thread Maurice Marrink
Hi, Is there a way to force axis to use a character encoding for the response. In the doGet from axisservlet the writer is "created" with response.getWriter(); The default encoding for this writer is latin 1, I need it to be utf-8 because my soap message contains characters like ë Thanks, Mauric

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
Hi Jochen, From the little I've read, you need to deploy the session handler on the client side also. I've never done this but I believe you can use a WSDD file on the client side to specify request and reponse handlers, so I guess this is where you need to do it. If it already works for one serv

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi Tony, yes, I did define the handler "session". Sessions are working for *one* service without problems. But I want to get the same session from another service. I think there must be some configuration on the client side to tell the axis engine to use the same sessionID for all services. Joc

Re: Sessions across different services

2004-09-08 Thread tony . q . weddle
Jochen, I've only read a little about sessions but I think you have to deploy the SimpleSessionHandler on the client's request and response flows. I don't know if you need to do this on the server. Also, did you define the handler type "session" before refering to it in your ? I think you can si

Re: NoSuchMethodException with Axis1.2

2004-09-08 Thread Fabien Marsaud
I sent a message on this list on august 24th to say i had exactly the same problem. I had no answer until now and it seems the client and server WSD files are the same for me. fm. - Original Message - From: "Mahen Perera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "sandeep arshanapally

AW: Axis webservices and Visual Basic

2004-09-08 Thread Thiele, Michael \(LDS\)
Peter, we have some clients here running successfully Visual Basic 6.0 (with PocketSOAP and/or MS SOAP Toolkit 3.0) and Visual Basic .NET against our Axis 1.1 Server. We are using RPC/encoded. Try to build a Web Service with a simple methods first. E.g.: - public void getString() deploy the ser

Re: Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi Mahen, my configuration on the server side looks like this for both services: ... When watching the request/responses with TcpMon, I see that when I query the 2nd service for the first time, the client does not pass the previous received session

WS Deployment changed from document/encoded to wrapped/literal -> Axis as Client doesn't work anymore

2004-09-08 Thread Frank-Ralph Reiser
In order to make a web service usable with e.g. nuSOAP (php), I changed the deployment of the web service from style="document" and use="encoded" to style="wrapped" and use="literal". But now I can't access that ws with a java client using axis anymore. I get some error like this: HTTP ERROR: 50

Re: Sessions across different services

2004-09-08 Thread Mahen Perera
Hi Jochen Have u put the SimpleSessionHandler in both request flows and response flows in both the services? If this is so , there will not be a problem I guess. And see whether ur sending the same session id from the client side when invoking both services , using tcpmon. Mahen On Wed, 08 S

Sessions across different services

2004-09-08 Thread Jochen Schwörer
Hi, I have successfully configured sessions for one service with the SimpleSessionHandler. Now I've noticed that the session is only valid for one service. Ie if I connect to one service (eg. AuthenticationService) which stores some objects in the session, these objects are not visible from the

Re: Axis webservices and Visual Basic

2004-09-08 Thread tony . q . weddle
Peter, I don't have any experience with VB for accessing Web services but others may be better able to answer your question if you report what the actual problems are. "It doesn't work" is not a useful symptom description. Tony

Axis webservices and Visual Basic

2004-09-08 Thread peter maas
Hi all, we are experimenting with accessing our Axis based webservices with a Visual Basic client. Alltough we have manage to use the VB client on non-axis webservices it doesn't work with any of the axis webservices. We have tried a some of the different (rpc/document/wrapped)* *encoding style

Re: How to get one object per thread?

2004-09-08 Thread tony . q . weddle
I wouldn't expect session scoped services to get created for each thread, since they need to stay around for the life of the user session (which may span multiple requests). Request scope seems to be the one you want. Servlets create a new thread for each request and, with request scope, each requ