CommonsHttpSender compression ..

2005-06-24 Thread vivek saraogi
Hi, I am trying to use the CommonsHttpSender as a transport handler. I am wondering how can I turn on compression (gzip) using this. I've done this on HttpSender (by making changes to invoke and readFromSocket methods), but not sure what methods and what needs to be changed to turn on compression

passing parameters to a JAX-RPC message handler

2005-06-24 Thread Mike Woinoski
Is there a clean way to pass parameters to a JAX-RPC message handler? For example, I have a JAX-RPC client that uses stubs generated by WSDL2Java to create a message. However, the service WSDL doesn't describe the message format completely (e.g., an element in the schema has a child), so I nee

RE: where to put server-config.wsdd

2005-06-24 Thread Janos Mucsi
Hi Merten Thanks for replying. That's what I thought too. Does this conflict with the servlet specification which says that web applications can only access for writing the directory provided by the container, not WEB-INF or WEB-INF/attachments. See Servlet Specification 2.4 section SRV.3.7.1, wher

how to preserve bean package names when generating stubs from wsdl?

2005-06-24 Thread Nikita Tovstoles
In short: wsdl2java produces duplicate copies of my JavaBean classes, but using a generated (different) package name. Hi, In an effort to learn web services + axis, I wrote a simple standalong java-client - to - web service app. The idea is that Client uses JavaBean classes to display some in

RE: deserializing error

2005-06-24 Thread Ferruh Zamangör
Hi Patrick, you have a generated stub class. look at your stub class if this code segement exists qName = new javax.xml.namespace.QName("urn:[yourpacckagename]" "ProvidentResponse"); cachedSerQNames.add(qname); cls = yourpackagename.ProvidentResponse.class; cachedSerClasses.add(cls); cachedSerFa

article on Web Services Interoperability between J2EE and .NET

2005-06-24 Thread Carolyn Vo
http://www.developerfusion.co.uk/show/4694/3/   Basically, the summation is that RPC SOAP encoding is one of major roadblocks for Web services interoperability.  Is this a valid statement?  I have used rpc/encoded for my web services, and I haven’t had problems yet with Java and .NET inte

RE: .Net and Axis interoperability

2005-06-24 Thread bjmallow
Willie, Found my problem. Thought I would pass it on. I thought the error was occurring on the client during deserialization but it was actually occurring on the on the server on my return statement. Didn't see it earlier because it was after my logging statements. Anyway my return used to be:

RE: deserializing error

2005-06-24 Thread Patrick Quinn
Thanks for the tip. The registerTypeMapping call is already made in the stub, as part of createCall(): synchronized (this) { if (firstCall()) { // must set encoding style before registering serializers _call.setEncodingStyle(nul

Re: deserializing error

2005-06-24 Thread mmalinos
Try this... QName qn = new QName("somenamespace","somequalifiedname"); call.registerTypeMapping(yourbean.class, qn, new BeanSerializerFactory(yourbean.class, qn), new BeanDeserializerFactory(yourbean.class, q

One class and multiple classes

2005-06-24 Thread Mark Lin
Hi, I ever used visual studio.net to generate C# class from wsdl. The result is one service class plus all the helper classes in one .cs file. When I use WSDL2Java to generate java classes from wsdl, I got the service class, plus all the heler classes as separate java files. Is this correct? Mark

org.apache.axis.AxisFault: Premature end of file.

2005-06-24 Thread Eric Scott
What does this error mean? org.apache.axis.AxisFault: Premature end of file. I am calling a web service on a remote server, that I don't control, and I keep getting the following error when I call it, and nothing else. If anyone has an idea what the cause of this type of error might be I'd appr

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
Well, not entirely, John! Do you want the client to set the endpoint of the target machine by calling an endpoint-setting method on X? Jeff - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 6:21 AM Subject: Re: Dynamic Endpoints > I think t

problem with TCPMonitor configuration

2005-06-24 Thread Thibaut Lassalle
hi, I use axis as a client for a .net webservice. The client is on localhost (i use eclipse), and the webservice is https://X.X.X.X:8443/bgwBroker The client side call webservice on the url "localhost:8080" and i try to do a proxy with the TCPMonitor to redirect to https://X.X.X.X:8443/bgwBroke

deserializing error

2005-06-24 Thread Patrick Quinn
Title: Message Hi   Has anyone seen an error like this before, or know what needs to be done to cure it?   org.xml.sax.SAXException: Deserializing parameter 'ProvidentResponse':  could not find deserializer for type {http://ProvidentConnector.ProvidentResponseToOrch}ProvidentResponse   Th

RE: using proxy to connect to server with ssl and arrays

2005-06-24 Thread Jairam, Roopnaraine
Has no one seen this problem before? -Original Message- From: Jairam, Roopnaraine Sent: Thursday, June 23, 2005 2:41 PM To: axis-user@ws.apache.org Subject: using proxy to connect to server with ssl and arrays i am getting the following error when trying to send an array with more than o

RE: how can i see xml exange between client and server

2005-06-24 Thread Tysnes Are Thobias
TCPMonitor (supplied with axis) is the tool you want Cheers, Are T. Tysnes -Original Message- From: Thibaut Lassalle [mailto:[EMAIL PROTECTED] Sent: 24. juni 2005 14:53 To: axis-user@ws.apache.org Subject: how can i see xml exange between client and server hi, i use the wsdl2java pro

how can i see xml exange between client and server

2005-06-24 Thread Thibaut Lassalle
hi, i use the wsdl2java program to generate a stub to access webservices. Therefore i only manipulate java object. How can i see xml exange between client and server ? Because i have to see if they are well formed. Thanks

RE: .net client issue for session management

2005-06-24 Thread Rajesh Patel
Also I don't see any JSESSIONID in cookie area while watching under tcpmon. Am I doing something wrong? Java client runs fine and behaves as expected but .net client raises issue on second method call. -Raj From: Rajesh Patel [mailto:[EMAIL PROTECTED] S

RE: Bug with Arrays as Return Types

2005-06-24 Thread Duarte Marques Moreira
Hello, I'm also not familiar with Axis internals... When migrating an application from Axis 1.1 to 1.2.1, the .Net started to throw an exception with the array parameters. After some tries of making "manual" soap requests (with the soap packets generated by Axis1.1 and 1.2) to .Net I found that

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
I think the answer to my question is: http://blah.com"; /> So I can define this in the wsdd, but I wish to set it at runtime. I am doing the following: - Using wsdl2java to create Java stubs, with a deploy.wsdd, - Altering the deploy.wsdd to deploy the Stub, - Deploying to Axis server (we'll cal

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Ok. Can I start by asking, given this: http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> Can you tell me how to add the XML declaration to set the endpoint? John

Re: second call to ws hangs on client side.

2005-06-24 Thread Ian van der Neut
On 6/23/05, Ian van der Neut <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm having a problem with obtaining a PDF from a webservice as an > attachment. The first time I call the web service, everything works as > it is expected, but the second time, the client side seems to hang on > reading the

global serializer definition?

2005-06-24 Thread Harald Pollak
is it possible to define a serializer globaly? If written a serializer for serialize none bean-conform objects with Xstream. this works. MyClasses with no standard-consturctor defined ( like java2wsdl to this ) as xsd:anyType now i want do use my serialiezer for this type. Is it possible

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
Sorry, John, my little brain need more input! Please given a comprehensive explanation of exactly how you want you software to behave. - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 4:58 AM Subject: Re: Dynamic Endpoints > I am specificall

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
I am specifically talking about setting wsdd parameters/service-locators programatically. I.e I have a wsdd which defines a service, and I want to alter the service-locator through some other random part of a web app :) On Thu, Jun 23, 2005 at 04:43:35PM -0400, Jeff wrote: > It depends on how dyna

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
It depends on how dynamic you want things to be. If you are talking about server-side wsdd then you could just as well declare parameters in web.xml and retrieve values using the standard servlet API. - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24,

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Well you can specify a soap:locator in the wsdd file. That's loaded into the internal Port instances. But how does one look them up programatically? On Thu, Jun 23, 2005 at 04:25:25PM -0400, Jeff wrote: > Not too sure about 'stuff' either :-) > > Each service has an endpoint which is, presumably

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
Not too sure about 'stuff' either :-) Each service has an endpoint which is, presumably, better than a name. Where do you anticipate getting the names/endpoints from? I just re-read your original posting, John. Suppose there are three computers, A, B and C. Suppose too that A runs the simple c

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Well I assume each Service has a name, so looking it up by name would be nice. I assume that the deploy.wsdd is parsed and 'stuff' is created internally... On Thu, Jun 23, 2005 at 04:12:54PM -0400, Jeff wrote: > Dunno about clean. Dunno about looking up instances of a service. What > criteria are

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
Dunno about clean. Dunno about looking up instances of a service. What criteria are you using for choosing between the different service instances? - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 4:09 AM Subject: Re: Dynamic Endpoints > Yep.

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Yep. I appreciate I could use a static method, but this doesn't seem very 'clean'... And I'm quite intrigued to how one looks up instances of a service (or rather, the factory that creates them) through Axis.. John On Thu, Jun 23, 2005 at 04:09:20PM -0400, Jeff wrote: > Do you mean two or three

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
Do you mean two or three different instances of the same service? - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 4:06 AM Subject: Re: Dynamic Endpoints > > That's one way. But I may wish to deploy the same class on two or three > different

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
That's one way. But I may wish to deploy the same class on two or three different services and set some parameters differently, hence I'm wondering how to look it up by service/port ..? On Thu, Jun 23, 2005 at 04:02:59PM -0400, Jeff wrote: > I cannot see the problem! Just create a static method f

Re: Dynamic Endpoints

2005-06-24 Thread Jeff
I cannot see the problem! Just create a static method for your stub and use it to initialize the endpoint. Jeff - Original Message - From: "John Baker" <[EMAIL PROTECTED]> To: Sent: Friday, June 24, 2005 3:19 AM Subject: Re: Dynamic Endpoints > Quite, but this isn't precisely what I

Re: [Axis2] how to invoke automatic wsdl export from deployed services

2005-06-24 Thread Deepal Jayasinghe
Hi Joerg The capability of getting wsdl for a deployed service is not there in axis2 yet , it will definitely be there in next version . Because when we release Axis2 M2 we did not have implemented Java2WSDL so you can not get the wsdl for a deployed service. We are very sorry for the mistak

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Quite, but this isn't precisely what I meant. I'm generating a deploy.wsdd file and deploying the Stub itself. So when Axis creates instances of the Stub, the cachedEndpoint variable (inherited from Stub.java) is null. I'd like to set this programatically from another part of the web application (A