[axis 2] how to invoke automatic wsdl export from deployed services

2005-06-24 Thread Joerg Buchberger
Hi. The user guide says, that axis2 can automatically export wsdl of deployed services. Unfortunately I couldn't find any documentation how to do it. So, I tried it the way it used to be in axis1 (webservice-url?wsdl), but that didn't work. I'd appreciate any hints. --Joerg

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

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: axis-user@ws.apache.org Sent: Friday, June 24, 2005 3:19 AM Subject: Re: Dynamic Endpoints Quite, but this

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

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: axis-user@ws.apache.org 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

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: axis-user@ws.apache.org Sent: Friday, June 24, 2005 4:09 AM Subject: Re:

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 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
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: axis-user@ws.apache.org

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

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: axis-user@ws.apache.org Sent: Friday, June 24, 2005 4:58 AM Subject: Re: Dynamic Endpoints

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 file.

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
Ok. Can I start by asking, given this: deployment name=test xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; service name=Example provider=java:RPC parameter name=className value=com.blah.Example/ parameter

Re: Dynamic Endpoints

2005-06-24 Thread John Baker
I think the answer to my question is: soap:service location=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

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: .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]

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: 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

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

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 The

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/bgwBroker

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: axis-user@ws.apache.org Sent: Friday, June 24, 2005 6:21 AM Subject: Re: Dynamic

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

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?

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,

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

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:

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 havent had problems yet with Java and .NET

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);

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

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 writingthe directory provided by the container, not WEB-INF or WEB-INF/attachments. See ServletSpecification 2.4 section SRV.3.7.1, where

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