AXIS Castor newbe question

2005-05-19 Thread Krishnendu Kunti
Hi

I tried out the axis castor article by IBM
(http://www-106.ibm.com/developerworks/webservices/library/ws-castor/
). But when I tried to run wsdl2java on the wsdl below, I got the
error:

java.io.IOException: Element {http://w3.ibm.com/schemas/services/2002/11/15/stoc
kquote}getStockQuote is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:527)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422
)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:408)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:393)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\clas
ses\axisCastor>




I have tried changing the schemaLocation to local  directory and
setting the classpath accordingly but it still throws the same error.





I am including my wsdl and xsd file . Please help
Thanks in advance
Krish


wsdl file:
xx

http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:types="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl/importtypes";>
  http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
 schemaLocation="http://localhost:8080/StockQuote.xsd"; />
 
   
   
 
   
   
 
   
   

 
 

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

   
   

   
  
 
 
  
   http://localhost:8080/axis/services/StockQuoteService"; />
  
 


schema file:
xxx

http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>









































RE: running out of sockets???

2005-05-19 Thread Ebert, Chris

Does the browser have a limit on the number of open connections it can
keep?
Also, you might try some of the tools at www.sysinternals.com (they're
free!) which will show you nice lists of open sockets on your machine
and traffic between them.

HTH

Chris
 

-Original Message-
From: Ephemeris Lappis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 12:10 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: running out of sockets???

When the application close a socket, the system may delay the actual
release for a defined time that you can configure. During this time, the
socket is in "close wait" state until the communication resources are
fully released.
I don't remember which registry key defines this for windows, but the
value default may be minutes. In fact, 8 invocations don't seem to be
enough to consume all the numbers. I have experienced this kind of
problem with some performance testing clients that can quickly use all
the port numbers...
In your case, more probably, the problem cause will be in your http
server or client... and for that i have no idea...
Sorry.

>>> -Original Message-
>>> From: John Windberg [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, May 18, 2005 8:05 PM
>>> To: axis-user@ws.apache.org
>>> Subject: RE: running out of sockets???
>>>
>>>
>>> If my client app calls web services one at a time, shouldn't the 
>>> previous socket be closed before the next socket is open?
>>> And in this case, I'm only managing to get around 8 web service 
>>> calls before it starts failing.
>>>
>>> 8 is not very many.
>>>
>>> -j
>>>
>>>
>>>
>>> --- Ephemeris Lappis <[EMAIL PROTECTED]>
>>> wrote:
>>> > Are you sure the problem is the http connections ?
>>> > I remember, long time ago, a problem with sockets on windows 
>>> > workstation systems (NT and 2000) which source was the limited 
>>> > socket numbers. If i remember well, unlike server versions, 
>>> > workstation configurations limit socket number up to 5000. In a 
>>> > typical case when both your server and your client run on the same

>>> > system, you can quickly consume all your accepted numbers. If you 
>>> > want more, you have to change some key in the registry (sorry, i 
>>> > don't remember which one). The problem comes when many connections

>>> > are open in a short time. You must also adjust the time the stack 
>>> > keeps the socket in close-wait state before the number can be used

>>> > again... You can check it with a netstat or a similar tools.
>>> > I hope this can help you.
>>> >
>>> >
>>> > >>> -Original Message-
>>> > >>> From: John Windberg [mailto:[EMAIL PROTECTED]
>>> > >>> Sent: Wednesday, May 18, 2005 3:44 AM
>>> > >>> To: axis-user@ws.apache.org
>>> > >>> Subject: running out of sockets???
>>> > >>>
>>> > >>>
>>> > >>> I'm writing client code against Autodesk Vault
>>> > web
>>> > >>> services which are .Net code within an IIS
>>> > instance.
>>> > >>> After a series of calls I start getting "out of sockets" or 
>>> > >>> "access denied" errors, which seem
>>> > to be
>>> > >>> caused because IIS on this XP instance has a
>>> > limited
>>> > >>> number of available connections.
>>> > >>>
>>> > >>> I'm only calling one at a time. Why would my connections not 
>>> > >>> be getting closed?
>>> >
>>> >



RE: running out of sockets???

2005-05-19 Thread Ebert, Chris

Sorry, my mistake. Saw IIS and somehow thought IE.

I'll bet you can configure axis to use HTTP 1.0 (or at least not to
keep-alive). There's a note here
http://wiki.apache.org/old/AxisProjectPages/KeepAlive that talks about
how to use the commons-httpclient package for HTTP in Axis. You should
be able to tweak just about anything if you do that (HttpClient allows
you to set 1.0, if nothing else does. Or just turn off keep-alive.)

Chris

-Original Message-
From: John Windberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 19, 2005 1:19 PM
To: axis-user@ws.apache.org
Subject: RE: running out of sockets???

Browser?
Client is java code running within eclipse based on axis/wsdl2java &
commonsHttpSender.
Server is local, Autodesk Vault app, running within IIS 5.2 on XP pro.


--- "Ebert, Chris" <[EMAIL PROTECTED]> wrote:
> 
> Does the browser have a limit on the number of open connections it can

> keep?
> Also, you might try some of the tools at www.sysinternals.com (they're
> free!) which will show you nice lists of open sockets on your machine 
> and traffic between them.
> 
> HTH
> 
> Chris
>  
> 
> -Original Message-
> From: Ephemeris Lappis
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 18, 2005 12:10 PM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: RE: running out of sockets???
> 
> When the application close a socket, the system may delay the actual 
> release for a defined time that you can configure.
> During this time, the
> socket is in "close wait" state until the communication resources are 
> fully released.
> I don't remember which registry key defines this for windows, but the 
> value default may be minutes. In fact, 8 invocations don't seem to be 
> enough to consume all the numbers. I have experienced this kind of 
> problem with some performance testing clients that can quickly use all

> the port numbers...
> In your case, more probably, the problem cause will be in your http 
> server or client... and for that i have no idea...
> Sorry.
> 
> >>> -Original Message-
> >>> From: John Windberg [mailto:[EMAIL PROTECTED]
> >>> Sent: Wednesday, May 18, 2005 8:05 PM
> >>> To: axis-user@ws.apache.org
> >>> Subject: RE: running out of sockets???
> >>>
> >>>
> >>> If my client app calls web services one at a
> time, shouldn't the
> >>> previous socket be closed before the next socket
> is open?
> >>> And in this case, I'm only managing to get
> around 8 web service
> >>> calls before it starts failing.
> >>>
> >>> 8 is not very many.
> >>>
> >>> -j
> >>>
> >>>
> >>>
> >>> --- Ephemeris Lappis
> <[EMAIL PROTECTED]>
> >>> wrote:
> >>> > Are you sure the problem is the http
> connections ?
> >>> > I remember, long time ago, a problem with
> sockets on windows
> >>> > workstation systems (NT and 2000) which source
> was the limited
> >>> > socket numbers. If i remember well, unlike
> server versions,
> >>> > workstation configurations limit socket number
> up to 5000. In a
> >>> > typical case when both your server and your
> client run on the same
> 
> >>> > system, you can quickly consume all your
> accepted numbers. If you
> >>> > want more, you have to change some key in the
> registry (sorry, i
> >>> > don't remember which one). The problem comes
> when many connections
> 
> >>> > are open in a short time. You must also adjust
> the time the stack
> >>> > keeps the socket in close-wait state before
> the number can be used
> 
> >>> > again... You can check it with a netstat or a
> similar tools.
> >>> > I hope this can help you.
> >>> >
> >>> >
> >>> > >>> -Original Message-
> >>> > >>> From: John Windberg
> [mailto:[EMAIL PROTECTED]
> >>> > >>> Sent: Wednesday, May 18, 2005 3:44 AM
> >>> > >>> To: axis-user@ws.apache.org
> >>> > >>> Subject: running out of sockets???
> >>> > >>>
> >>> > >>>
> >>> > >>> I'm writing client code against Autodesk
> Vault
> >>> > web
> >>> > >>> services which are .Net code within an IIS
> >>> > instance.
> >>> > >>> After a series of calls I start getting
> "out of sockets" or
> >>> > >>> "access denied" errors, which seem
> >>> > to be
> >>> > >>> caused because IIS on this XP instance has
> a
> >>> > limited
> >>> > >>> number of available connections.
> >>> > >>>
> >>> > >>> I'm only calling one at a time. Why would
> my connections not
> >>> > >>> be getting closed?
> >>> >
> >>> >
> 
> 


Issue with wsdl2JAVA witxmldsig-core-schema.xsd

2005-05-19 Thread Kasi, Anand
Title: Issue with wsdl2JAVA witxmldsig-core-schema.xsd 






Hi everyone,


I am having an issue with Axis 1.2 Final release. I get the following error when I try to generate the client proxy using wsdl2Java. The error I see is the IOException below. I tried using the –W option with wsdl2Java. It still does not work. Is there any work around for this problem? Any suggestions are welcome.

Regards and thanks,
Anand

 [java] java.io.IOException: Type {http://www.w3.org/2000/09/xmldsig#}Refere
nce is referenced but not defined.
 [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefine
d(SymbolTable.java:663)
 [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.
java:543)
 [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolT
able.java:516)
 [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolT
able.java:493)
 [java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:
360)




RE: running out of sockets???

2005-05-19 Thread John Windberg
Browser?
Client is java code running within eclipse based on
axis/wsdl2java & commonsHttpSender.
Server is local, Autodesk Vault app, running within
IIS 5.2 on XP pro.


--- "Ebert, Chris" <[EMAIL PROTECTED]> wrote:
> 
> Does the browser have a limit on the number of open
> connections it can
> keep?
> Also, you might try some of the tools at
> www.sysinternals.com (they're
> free!) which will show you nice lists of open
> sockets on your machine
> and traffic between them.
> 
> HTH
> 
> Chris
>  
> 
> -Original Message-
> From: Ephemeris Lappis
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 18, 2005 12:10 PM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: RE: running out of sockets???
> 
> When the application close a socket, the system may
> delay the actual
> release for a defined time that you can configure.
> During this time, the
> socket is in "close wait" state until the
> communication resources are
> fully released.
> I don't remember which registry key defines this for
> windows, but the
> value default may be minutes. In fact, 8 invocations
> don't seem to be
> enough to consume all the numbers. I have
> experienced this kind of
> problem with some performance testing clients that
> can quickly use all
> the port numbers...
> In your case, more probably, the problem cause will
> be in your http
> server or client... and for that i have no idea...
> Sorry.
> 
> >>> -Original Message-
> >>> From: John Windberg [mailto:[EMAIL PROTECTED]
> >>> Sent: Wednesday, May 18, 2005 8:05 PM
> >>> To: axis-user@ws.apache.org
> >>> Subject: RE: running out of sockets???
> >>>
> >>>
> >>> If my client app calls web services one at a
> time, shouldn't the 
> >>> previous socket be closed before the next socket
> is open?
> >>> And in this case, I'm only managing to get
> around 8 web service 
> >>> calls before it starts failing.
> >>>
> >>> 8 is not very many.
> >>>
> >>> -j
> >>>
> >>>
> >>>
> >>> --- Ephemeris Lappis
> <[EMAIL PROTECTED]>
> >>> wrote:
> >>> > Are you sure the problem is the http
> connections ?
> >>> > I remember, long time ago, a problem with
> sockets on windows 
> >>> > workstation systems (NT and 2000) which source
> was the limited 
> >>> > socket numbers. If i remember well, unlike
> server versions, 
> >>> > workstation configurations limit socket number
> up to 5000. In a 
> >>> > typical case when both your server and your
> client run on the same
> 
> >>> > system, you can quickly consume all your
> accepted numbers. If you 
> >>> > want more, you have to change some key in the
> registry (sorry, i 
> >>> > don't remember which one). The problem comes
> when many connections
> 
> >>> > are open in a short time. You must also adjust
> the time the stack 
> >>> > keeps the socket in close-wait state before
> the number can be used
> 
> >>> > again... You can check it with a netstat or a
> similar tools.
> >>> > I hope this can help you.
> >>> >
> >>> >
> >>> > >>> -Original Message-
> >>> > >>> From: John Windberg
> [mailto:[EMAIL PROTECTED]
> >>> > >>> Sent: Wednesday, May 18, 2005 3:44 AM
> >>> > >>> To: axis-user@ws.apache.org
> >>> > >>> Subject: running out of sockets???
> >>> > >>>
> >>> > >>>
> >>> > >>> I'm writing client code against Autodesk
> Vault
> >>> > web
> >>> > >>> services which are .Net code within an IIS
> >>> > instance.
> >>> > >>> After a series of calls I start getting
> "out of sockets" or 
> >>> > >>> "access denied" errors, which seem
> >>> > to be
> >>> > >>> caused because IIS on this XP instance has
> a
> >>> > limited
> >>> > >>> number of available connections.
> >>> > >>>
> >>> > >>> I'm only calling one at a time. Why would
> my connections not 
> >>> > >>> be getting closed?
> >>> >
> >>> >
> 
> 


Re: wsdl2java

2005-05-19 Thread Jyrki Saarinen
On Thursday 19 May 2005 14:43, Anne Thomas Manes wrote:
> Does your WSDL specify the appropriate namespace in the transport
> attribute in your binding?
> It should be "http://www.w3.org/2003/05/soap/bindings/HTTP/"; rather
> than "http://schemas.xmlsoap.org/soap/http";.

Yes, this was the reason. Thank you!

Jyrki


showing dialog / message box to client

2005-05-19 Thread Dan O'Neill
-- Forwarded message --From: Dan O'Neill <[EMAIL PROTECTED]>Date: May 19, 2005 10:44 AM
Subject: Re: showing dialog / message box to clientTo: Plorks mail <[EMAIL PROTECTED]>Is the client on the same machine as the service? I could be wrong but
Im pretty sure that its nearly impossible to open a java pop-up on
someone elses machine without them running itOn 5/19/05, Plorks mail <
[EMAIL PROTECTED]> wrote:
Unfortuately i have no control over the client - joe public calls one of web
service so can be anywhere
In my web servce i expose a method, in that method do some validating andjust use this code server-sideint answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,JOptionPane.YES_NO_OPTION

);if (answer == JOptionPane.YES_OPTION){// clicked yes}else if (answer == JOptionPane.NO_OPTION){// clicked no}The dummy client i ccreated i just call that method..
Service service2 = new Service();Call call2 = (Call)service2.createCall();call2.setTargetEndpointAddress(endpoint);call2.setOperationName("test");call2.addHeader(tokenHeader);call2.invoke

(new Object[]{});>From: Dan O'Neill <[EMAIL PROTECTED]>>Reply-To: Dan O'Neill <
[EMAIL PROTECTED]
>>To: Plorks mail <[EMAIL PROTECTED]>>Subject: Re: showing dialog / message box to client
>Date: Thu, 19 May 2005 10:31:54 +0100>>I had that too... but I'm sorry to say I never got around it... It was very
>annoying but Only had limited time so had to ignore it...>>Sorry I could be of more help>>Dan>>p.s. how did you get the GUI to pop up client side without having client

>code? Have to say I was trying for a long time before I had to resort to>client-side code?>>On 5/19/05, Plorks mail <
[EMAIL PROTECTED]> wrote:
> >> >> > Thanks Dan> >> > My problem is this> >> > Every call a client makes (the client can be anything vb, c# web app> > etc...)> > I need to check a token value within the soap header
> >> > Once i get the value my web service will validate it with a db table.>The> > db table also holds an expiry date/time for the token value. The token> > value has 7 days until it expires. What i want to achieve is when the
> > token> > value is checked with the db table and it has <= 60 minutes until it> > expires> > i want to throw up a message box to the client informing them the token> > has
> > so miany minutes leff until it expires, do they want to renew it (yes/no> > button)> >> > I've done this in my web serice> > int answer = JOptionPane.showConfirmDialog

(new JFrame(), message, title,> > JOptionPane.YES_NO_OPTION);> >> > if (answer == JOptionPane.YES_OPTION)> > {> > // clicked yes> > }> > else if (answer == 
JOptionPane.NO_OPTION)> > {> > // clicked no> > }> >> > I've created a simple client to test this. The message displays> > correctly,.> > but what i'm finding is if i leave the message on the screen for a
>couple> > of> > minutes i get this error -> >> > java.net.SocketTimeoutException: Read timed out> >> >> > Thanks for any help> >
> >
> >> >> >> >> >> >> >> > >From: Dan O'Neill <
[EMAIL PROTECTED]>> > >Reply-To: Dan O'Neill <
[EMAIL PROTECTED]>> > >To: 
axis-user@ws.apache.org> > >Subject: Re: showing dialog / message box to client
> > >Date: Thu, 19 May 2005 09:45:01 +0100> > >> > >Hi,> > >> > >I don't fully understand your method but I had to do something very> > >similar.
> > >> > >> > >In my application I used a client side handler to recognise when a> > response> > >was recieved by the client. Then that handler started a thread -
> > >DisplayGUI.java for example. This was being run on the client side. The> > >displayGUI.java took in the information and then sent this information> > back> > >to my application for processing
> > >> > >Now I don't whether you have control of the client or whether you>can> > >ask them to download handlers, extra classes, etc. Now this imposes a> > >question on interoperability but if thats not a problem then this kind
>of> > >idea should work?> > >> > >Dan> > >On 5/19/05, Plorks mail <
[EMAIL PROTECTED]> wrote:> > > >
> > > >> > > >> > > > Dear All> > > >> > > > I'm writing a server-side web service. During one exposed amethod I> > need> > > > to
> > > > show a dialog/message box to the client asking them a question.> > > >> > > > The clients clicks yes or no button and that determines which code> > gets

> > > > executed.> > > >> > > > Can anyone advise on how i should so this?> > > >> > > > If i use this> > > > int answer = JOptionPane.showConfirmDialog

(new JFrame(), message,> > title,> > > > JOptionPane.YES_NO_OPTION);> > > >> > > > Then i'll be showing a dialog box and waiting for user input while>in

> > >the> > > > middle of a remote socket call - which will be wrong> > > >> > > > Does anyone have any suggestions on how i should do this> > > >

> > > > Many thanks for any advice> > > >> > > > _> > > > Winks & nudges are here - download MSN Messenger 
7.0 today!> > > > http://messenger.msn.co.uk> > > >> > > >
>

RE: R: showing dialog / message box to client

2005-05-19 Thread Plorks mail

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?
Thanks

From: "I.Venuti" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: 
Subject: R: showing dialog / message box to client
Date: Thu, 19 May 2005 13:35:53 +0200
I'm quite surprised about your implementation. DOes your showDialog is in
the server part??
If so I really don't understand how it can be shown at the client side!
Maybe you are testing client and server in your local PC? ;)
I propose to use 2 different operations.
1) do your current operation and let the Web Service return the expire time
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
> -Messaggio originale-
> Da: Plorks mail [mailto:[EMAIL PROTECTED]
> Inviato: giovedì 19 maggio 2005 11.26
> A: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Oggetto: Re: showing dialog / message box to client
>
>
>
> Thanks Dan
>
> My problem is this
>
> Every call a client makes (the client can be anything vb, c# web
> app etc...)
>   I need to check a token value within the soap header
>
> Once i get the value my web service will validate it with a db
> table.  The
> db table also holds an expiry date/time for the token value.  The token
> value has 7 days until it expires.  What i want to achieve is
> when the token
> value is checked with the db table and it has <= 60 minutes until
> it expires
> i want to throw up a message box to the client informing them the
> token has
> so miany minutes leff until it expires, do they want to renew it (yes/no
> button)
>
> I've done this in my web serice
> int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,
> JOptionPane.YES_NO_OPTION);
>
> if (answer == JOptionPane.YES_OPTION)
> {
> // clicked yes
> }
> else if (answer == JOptionPane.NO_OPTION)
> {
> // clicked no
> }
>
> I've created a simple client to test this.  The message displays
> correctly,.
> but what i'm finding is if i leave the message on the screen for
> a couple of
> minutes i get this error -
>
> java.net.SocketTimeoutException: Read timed out
>
>
> Thanks for any help
>
>
>
>
>
>
>
>
>
> >From: Dan O'Neill <[EMAIL PROTECTED]>
> >Reply-To: Dan O'Neill <[EMAIL PROTECTED]>
> >To: axis-user@ws.apache.org
> >Subject: Re: showing dialog / message box to client
> >Date: Thu, 19 May 2005 09:45:01 +0100
> >
> >Hi,
> >
> >I don't fully understand your method but I had to do something very
> >similar.
> >
> >
> >In my application I used a client side handler to recognise when
> a response
> >was recieved by the client. Then that handler started a thread -
> >DisplayGUI.java for example. This was being run on the client side. The
> >displayGUI.java took in the information and then sent this
> information back
> >to my application for processing
> >
> >Now I don't whether you have control of the client or whether you 
can
> >ask them to download handlers, extra classes, etc. Now this imposes a
> >question on interoperability but if thats not a problem then this kind 
of
> >idea should work?
> >
> >Dan
> >On 5/19/05, Plorks mail <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Dear All
> > >
> > > I'm writing a server-side web service. During one exposed
> amethod I need
> > > to
> > > show a dialog/message box to the client asking them a question.
> > >
> > > The clients clicks yes or no button and that determines which
> code gets
> > > executed.
> > >
> > > Can anyone advise on how i should so this?
> > >
> > > If i use this
> > > int answer = JOptionPane.showConfirmDialog(new JFrame(),
> message, title,
> > > JOptionPane.YES_NO_OPTION);
> > >
> > > Then i'll be showing a dialog box and waiting for user input while 
in
> >the
> > > middle of a remote socket call - which will be wrong
> > >
> > > Does anyone have any suggestions on how i should do this
> > >
> > > Many thanks for any advice
> > >
> > > _
> > > Winks & nudges are here - download MSN Messenger 7.0 today!
> > > http://messenger.msn.co.uk
> > >
> > >
> >
> >
> >--
> >"I swear, the next bastard that kisses the ground in front of me is 
gonna
> >get
> >kicked in the antique chicken coops." - Cohen the Barbarian
>
> _
> FREE pop-up blocking with the new MSN Toolbar – get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>


_
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
http://messenger.msn.co.uk



Data-binding in Axis 1.2

2005-05-19 Thread Tysnes Are Thobias

Hello!

Axis 1.1's data-binding framework did miss some features which made room
for other
tools like Castor to be used instead. (validation ++)

Has this changed in Axis 1.2 !?

Is the data-binding in Axis 1.2 as good as Castor !? Maybe better !? :o)

Cheers,
Are T. Tysnes


Changing URL in ServiceLocator Class

2005-05-19 Thread Ferruh Zamangoer








Hi,

 

I want to know if it’s conform to web service
standard, if I create a web service for example Service A. The service A is available
on several servers (server1, server2, server 3). The Client use the services on
the several servers for example first he use the server1 after that he want use
again the service on server 2. We want to build a kind of load balancing. 

 

For example the client holds a list of available
servers. On every request he uses one of the several servers. I have generate
the stubs with wsdl2Java . Then I see that in the code that the url is
hardcoded. Our client stubs and server stubs are generated once and is never changed.
What I want to do is that I use on every invocation a another URL of a server
where the service is available. I’ am write a set method for the address see
below in the Locator Class. 

 

// Use to get a proxy class for CUserService

    private java.lang.String
CUserService_address =
"http://localhost:8080/axis/services/CUserService";

 

    public java.lang.String
getCUserServiceAddress() {

    return
CUserService_address;

    }

    

    public void
setCUserServiceAddress(String adress) {

   
CUserService_address = adress;

    }

    

 

 

But is this Web service conform possible it is?

 

Thanks in advance

Ferruh








duplicate attribute in applicationsListReturn with 1999/XMLSchema

2005-05-19 Thread Arnost Stedry
hi all,
i use Axis in my project and i observe strange bahavior.
wsdd of my service is:

http://xml.apache.org/axis/wsdd/"; 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   
   
   
   
   
   
   http://central.sfzp.cz/ws/"/>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
   
   
   
   
   
   

   http://central.sfzp.cz/ws/";
   qname="ns:cz.sfzp.central.demo.ApplicationBean"
   type="java:cz.sfzp.central.demo.ApplicationBean"
   serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
   deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
/>

and i use pair of soap request:
first --

http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
 http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://central.sfzp.cz/ws/"/>
  

and second:
http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";
   env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
   xmlns:xs="http://www.w3.org/1999/XMLSchema";
   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";>
   
   http://central.sfzp.cz/ws/"/>
   

in the first case i obtain correct result, by in the second one there 
are the elements with the duplicate attributes:

http://www.w3.org/2001/XMLSchema";
   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
etc
version of Axis i use is 1.2 (final)
thanks for any help
arnost stedry
media atelier



R: showing dialog / message box to client

2005-05-19 Thread I.Venuti
I'm quite surprised about your implementation. DOes your showDialog is in
the server part??
If so I really don't understand how it can be shown at the client side!
Maybe you are testing client and server in your local PC? ;)

I propose to use 2 different operations.

1) do your current operation and let the Web Service return the expire time
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


> -Messaggio originale-
> Da: Plorks mail [mailto:[EMAIL PROTECTED]
> Inviato: giovedì 19 maggio 2005 11.26
> A: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Oggetto: Re: showing dialog / message box to client
>
>
>
> Thanks Dan
>
> My problem is this
>
> Every call a client makes (the client can be anything vb, c# web
> app etc...)
>   I need to check a token value within the soap header
>
> Once i get the value my web service will validate it with a db
> table.  The
> db table also holds an expiry date/time for the token value.  The token
> value has 7 days until it expires.  What i want to achieve is
> when the token
> value is checked with the db table and it has <= 60 minutes until
> it expires
> i want to throw up a message box to the client informing them the
> token has
> so miany minutes leff until it expires, do they want to renew it (yes/no
> button)
>
> I've done this in my web serice
> int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,
> JOptionPane.YES_NO_OPTION);
>
> if (answer == JOptionPane.YES_OPTION)
> {
> // clicked yes
> }
> else if (answer == JOptionPane.NO_OPTION)
> {
> // clicked no
> }
>
> I've created a simple client to test this.  The message displays
> correctly,.
> but what i'm finding is if i leave the message on the screen for
> a couple of
> minutes i get this error -
>
> java.net.SocketTimeoutException: Read timed out
>
>
> Thanks for any help
>
>
>
>
>
>
>
>
>
> >From: Dan O'Neill <[EMAIL PROTECTED]>
> >Reply-To: Dan O'Neill <[EMAIL PROTECTED]>
> >To: axis-user@ws.apache.org
> >Subject: Re: showing dialog / message box to client
> >Date: Thu, 19 May 2005 09:45:01 +0100
> >
> >Hi,
> >
> >I don't fully understand your method but I had to do something very
> >similar.
> >
> >
> >In my application I used a client side handler to recognise when
> a response
> >was recieved by the client. Then that handler started a thread -
> >DisplayGUI.java for example. This was being run on the client side. The
> >displayGUI.java took in the information and then sent this
> information back
> >to my application for processing
> >
> >Now I don't whether you have control of the client or whether you can
> >ask them to download handlers, extra classes, etc. Now this imposes a
> >question on interoperability but if thats not a problem then this kind of
> >idea should work?
> >
> >Dan
> >On 5/19/05, Plorks mail <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Dear All
> > >
> > > I'm writing a server-side web service. During one exposed
> amethod I need
> > > to
> > > show a dialog/message box to the client asking them a question.
> > >
> > > The clients clicks yes or no button and that determines which
> code gets
> > > executed.
> > >
> > > Can anyone advise on how i should so this?
> > >
> > > If i use this
> > > int answer = JOptionPane.showConfirmDialog(new JFrame(),
> message, title,
> > > JOptionPane.YES_NO_OPTION);
> > >
> > > Then i'll be showing a dialog box and waiting for user input while in
> >the
> > > middle of a remote socket call - which will be wrong
> > >
> > > Does anyone have any suggestions on how i should do this
> > >
> > > Many thanks for any advice
> > >
> > > _
> > > Winks & nudges are here - download MSN Messenger 7.0 today!
> > > http://messenger.msn.co.uk
> > >
> > >
> >
> >
> >--
> >"I swear, the next bastard that kisses the ground in front of me is gonna
> >get
> >kicked in the antique chicken coops." - Cohen the Barbarian
>
> _
> FREE pop-up blocking with the new MSN Toolbar – get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>




Re: wsdl2java

2005-05-19 Thread Anne Thomas Manes
Does your WSDL specify the appropriate namespace in the transport
attribute in your binding?
It should be "http://www.w3.org/2003/05/soap/bindings/HTTP/"; rather
than "http://schemas.xmlsoap.org/soap/http";.

Anne

On 5/18/05, Jyrki Saarinen <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> how can I make wsdl2java to emit (I need SOAP 1.2 for fault sub codes):
> 
> 
> _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS);
> 
> instead of
> 
> 
> _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
> 
> This happens in the binding stubs that wsdl2java generates. I can of course
> change SOAP11_CONSTANTS to SOAP12_CONSTANTS manually, but those changes will
> get overwritten when my Ant build script invokes wsdl2java.
> 
> Jyrki
>


Re: showing dialog / message box to client

2005-05-19 Thread Plorks mail
Thanks Dan
My problem is this
Every call a client makes (the client can be anything vb, c# web app etc...) 
 I need to check a token value within the soap header

Once i get the value my web service will validate it with a db table.  The 
db table also holds an expiry date/time for the token value.  The token 
value has 7 days until it expires.  What i want to achieve is when the token 
value is checked with the db table and it has <= 60 minutes until it expires 
i want to throw up a message box to the client informing them the token has 
so miany minutes leff until it expires, do they want to renew it (yes/no 
button)

I've done this in my web serice
int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title, 
JOptionPane.YES_NO_OPTION);

if (answer == JOptionPane.YES_OPTION)
{
// clicked yes
}
else if (answer == JOptionPane.NO_OPTION)
{
// clicked no
}
I've created a simple client to test this.  The message displays correctly,. 
but what i'm finding is if i leave the message on the screen for a couple of 
minutes i get this error -

java.net.SocketTimeoutException: Read timed out
Thanks for any help




From: Dan O'Neill <[EMAIL PROTECTED]>
Reply-To: Dan O'Neill <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Subject: Re: showing dialog / message box to client
Date: Thu, 19 May 2005 09:45:01 +0100
Hi,
I don't fully understand your method but I had to do something very 
similar.

In my application I used a client side handler to recognise when a response
was recieved by the client. Then that handler started a thread -
DisplayGUI.java for example. This was being run on the client side. The
displayGUI.java took in the information and then sent this information back
to my application for processing
Now I don't whether you have control of the client or whether you can
ask them to download handlers, extra classes, etc. Now this imposes a
question on interoperability but if thats not a problem then this kind of
idea should work?
Dan
On 5/19/05, Plorks mail <[EMAIL PROTECTED]> wrote:
>
>
>
> Dear All
>
> I'm writing a server-side web service. During one exposed amethod I need
> to
> show a dialog/message box to the client asking them a question.
>
> The clients clicks yes or no button and that determines which code gets
> executed.
>
> Can anyone advise on how i should so this?
>
> If i use this
> int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,
> JOptionPane.YES_NO_OPTION);
>
> Then i'll be showing a dialog box and waiting for user input while in 
the
> middle of a remote socket call - which will be wrong
>
> Does anyone have any suggestions on how i should do this
>
> Many thanks for any advice
>
> _
> Winks & nudges are here - download MSN Messenger 7.0 today!
> http://messenger.msn.co.uk
>
>

--
"I swear, the next bastard that kisses the ground in front of me is gonna
get
kicked in the antique chicken coops." - Cohen the Barbarian
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



SOAP/JMS question

2005-05-19 Thread Jan Delannoy
Hi,

I'm a bit confused about sending SOAP messages over JMS using Axis.  I
have a WSDL file describing a web service with a SOAP over JMS
binding, and I specified the address like in the JMS example included
with Axis 1.2, something like jms:/MyQ?myParams. I generated stubs
using WSDL2Java and now I'm trying to make a call using these.  What I
would expect is to see a nice readable SOAP message appearing on MyQ,
but instead I'm getting a bytes message... Can anybody explain what's
happening here?

I must say that I was quite confused by the included JMS example,
especially the part with the SimpleJMSListener.  Is that just a simple
implementation of a JMS queue?  Or do I really need this to be able to
send SOAP over JMS?

Many thanks,
Jan


Re: showing dialog / message box to client

2005-05-19 Thread Dan O'Neill
Hi,

I don't fully understand your method but I had to do something very similar. 

In my application I used a client side handler to recognise when a
response was recieved by the client. Then that handler started a thread
- DisplayGUI.java for example. This was being run on the client side.
The displayGUI.java took in the information and then sent this
information back to my application for processing

Now I don't whether you have control of the client or whether you
can ask them to download handlers, extra classes, etc. Now this imposes
a question on interoperability but if thats not a problem then this
kind of idea should work?
DanOn 5/19/05, Plorks mail <[EMAIL PROTECTED]> wrote:
Dear AllI'm writing a server-side web service.  During one exposed amethod I need toshow a dialog/message box to the client asking them a question.The clients clicks yes or no button and that determines which code gets
executed.Can anyone advise on how i should so this?If i use thisint answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,JOptionPane.YES_NO_OPTION);Then i'll be showing a dialog box and waiting for user input while in the
middle of a remote socket call - which will be wrongDoes anyone have any suggestions on how i should do thisMany thanks for any advice_
Winks & nudges are here - download MSN Messenger 7.0 today!http://messenger.msn.co.uk-- "I swear, the next bastard that kisses the ground in front of me is gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian


showing dialog / message box to client

2005-05-19 Thread Plorks mail

Dear All
I'm writing a server-side web service.  During one exposed amethod I need to 
show a dialog/message box to the client asking them a question.

The clients clicks yes or no button and that determines which code gets 
executed.

Can anyone advise on how i should so this?
If i use this
int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title, 
JOptionPane.YES_NO_OPTION);

Then i'll be showing a dialog box and waiting for user input while in the 
middle of a remote socket call - which will be wrong

Does anyone have any suggestions on how i should do this
Many thanks for any advice
_
Winks & nudges are here - download MSN Messenger 7.0 today! 
http://messenger.msn.co.uk