.NET and attachments to Axis....

2005-05-25 Thread Grimm_Clifford
Anyone have an example of how to send an attachment in a .NET client to send
to an Axis Server?

I don't care what .NET language since they are pretty much similar.

  Cliff

---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




RE: axis + vb .net

2005-05-24 Thread Grimm_Clifford
I am using Axis 1.2 and ran into a problem similar to this.

I figured out that Visual Studio .NET does not understand the Version 1.2
type mapping. What I found worked is to change the deploy.wsdd so that the
typeMappingVerison is 1.1.  For example.

  

I'm not sure if something else needs to change like the namespace to make
this truly "correct", but this worked for me.

  Cliff
 

> -Original Message-
> From: Pippo Plutone [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 24, 2005 4:29 AM
> To: axis-user@ws.apache.org
> Subject: axis + vb .net
> 
> Hi all,
> I have a problem when I using AXIS with client VB .Net.
> 
> I have a web service with AXIS (provider="java:RPC") and a 
> client VB .Net; 
> it works
> while when I have a web service with AXIS (provider="java:MSG" 
> style="document" use="literal") with a client VB .Net I have 
> a problem:
> 
> "An unhandled exception of type 
> 'System.InvalidOperationException' occurred 
> in system.xml.dll
> Additional information: There was an error generating the XML 
> document"
> 
> Can you help me?
> 
> Thanks Pasquy
> 
> _
> Comunica in tempo reale http://messenger.msn.com/beta
> 


Timeout for service request.

2005-05-20 Thread Grimm_Clifford
Is there a way to change the read timeout on the Client side?  I have an
operation that can take multiple minutes to complete.  The following is the
failure that I get:


Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 
 faultSubcode:
 faultString: java.net.SocketTimeoutException: Read timed out
 faultActor:
 faultNode:
 faultDetail:
 
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException
 :
 Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPS
ender.java:569)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:142)

at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.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)

---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




Questions about Scope in Axis 1.2.

2005-05-20 Thread Grimm_Clifford
In Application scope, are the requests to the service serialized to only one
running at a time? If not, I could use a little explanation of how the class
objects for the service are "shared" in a thread safe manner between
multiple sessions for any given service.

I am also assuming that the "Session" scope allows for multiple simultaneous
threads since each session will have it's own service object.

Also where can I find information about the "Factory" scope?  Is this fully
implemented in 1.2?

Thanks!!


---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




Configuring max sessions for a service...

2005-05-17 Thread Grimm_Clifford


Is it possible to configure axis to only allow a certain number of
concurrent sessions to a service?  If so how can it be configured.

What I'm thinking is like the MaxClients directive for Tomcat/Apache-HTTP.

Thanks!
  Cliff
---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




RE: config files

2005-05-13 Thread Grimm_Clifford
Put it in "axis\WEB-INF\classes".

Then use this.getClass().getResource("/myfile.conf"); 



> -Original Message-
> From: Nguyen Tuan Anh [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 13, 2005 10:03 AM
> To: axis-user@ws.apache.org
> Subject: config files
> 
> Hi,
> 
> I need to deploy a web service, but it needs to read some 
> configuration 
> files. I read from the log file that I did not find the config files. 
> Could anyone tell me where can I put the config files for my service.
> 
> Thanks,
> tuan anh
> 


Locating file from Axis Environment..

2005-05-12 Thread Grimm_Clifford
Looking for suggestion.

I'm running Axis 1.2 Final.  I have a Service that needs to locate a
configuration file that is special to itself.  Think of it as the equivalent
of server.xml for Tomcat.  

I need to put this file someplace, but obviously I don't want to hard code
it in the code.  I would like to keep it with the axis distribution just to
keep things local.  I would also like to make this platform independent.

The ultimate would be to place it in the axis WEB-INF directory, but I
suppose the lib directory with the service jar file would be ok.

Is there a way to obtain this directory at run time from the context of the
service method so that I can construct a java.io.File object to this file?

If not, anyone have any ideas how this might be done otherwise.

I don't was to depend on Tomcat configuration since I will want this service
to operate in other web servers.

  Thanks in advance.

Cliff


---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




Problems with WSDL2Ws tool in Axis C/C++ 1.5

2005-05-09 Thread Grimm_Clifford
On Windows, I am attempting to generate C/C++ client stubs for an interface
and am running into an error using the WSDL2Ws utility included with the
Axis C/C++ 1.5 distribution.

I am using Axis Java 1.2 (FINAL) as the run-time with JRE 1.5_02.

I believe my CLASSPATH is setup appropriately for this tool based on the
instructions and I can execute the Java Axis Clients just fine.

The following is the failure I am getting.

C:\>java -cp ".\wsdl2ws.jar;%CLASSPATH%"
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws CasWebServices.wsdl -o./ClientOut -lc++
-sclient
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis.wsdl.sym
bolTable.BindingEntry.getBindingStyle()Lorg/apache/axis/enum/Style;
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown
Source)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown
Source)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown
Source)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)



Any clues?

  Cliff



RE: Axis Sessions and Visual Studio .NET..

2005-05-09 Thread Grimm_Clifford
Pardon me if I answer my own question.  Second search for the answer found a
solution.

Figured I would share the answer.

Here is the answer I go from MSDN..



The problem is with the cookies. The Web service code does not see a valid
session ID with the request, so it creates a brand new HttpSessionState
object for each call, and returns the initial value of 1. The reason for
this is that the client proxy class, which inherits from the
System.Web.Services.Protocols.SoapHttpClientProtocol class does not have an
instance of the System.Net.CookieContainer class associated with it.
Basically, there is no place to store cookies that are returned. To fix this
problem, I changed my code as follows with the new code highlighted:

' Works with cookied ASP.NET sessions but NOT with 
' cookieless sessions.
Private Cookies As System.Net.CookieContainer

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim proxy As New localhost.Service1()
Dim ret As Integer
' Set the Cookie Container on the proxy
If Cookies Is Nothing Then
Cookies = New System.Net.CookieContainer()
End If
proxy.CookieContainer = Cookies
ret = proxy.IncrementSessionCounter()
Label1.Text = "Result: " & CStr(ret)
End Sub

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 09, 2005 11:09 AM
> To: axis-user@ws.apache.org
> Subject: Axis Sessions and Visual Studio .NET..
> 
> I have an Axis Service that is properly configured to 
> maintain a session.  
> 
> I have a java client application with a stub properly 
> generated so that it
> does maintain the session across calls by making the call:
> 
>  
> _call.setProperty(org.apache.axis.client.Call.SESSION_MAINTAIN
> _PROPERTY,
> Boolean.TRUE);
> 
> I know this works and am happy with it.
> 
> The problem I'm having is that when Using Visual Studio .NET 
> (Using Visual
> Basic at this point) for the client application, it doesn't 
> maintain the
> session between calls. 
> 
> Does anyone know how to configure .NET to maintain the 
> session with Axis
> 1.2.
> 
>   Thanks!!
> 
>   Cliff
> 
> 
> 
> 
> --
> -
> Clifford Grimm 
> Centera Integration Architect 
> EMC Centera Engineering 
> EMC²   
> Where Information Lives 
> * Office: 508-249-5159 (toll free 877-362-2887 x45159) 
> * Cell: 978-618-1336
> * Fax: 508-249-5495
> * E-mail: [EMAIL PROTECTED]  
> *  Instant Messaging: [EMAIL PROTECTED]
> 
> 


Axis Sessions and Visual Studio .NET..

2005-05-09 Thread Grimm_Clifford
I have an Axis Service that is properly configured to maintain a session.  

I have a java client application with a stub properly generated so that it
does maintain the session across calls by making the call:

 
_call.setProperty(org.apache.axis.client.Call.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);

I know this works and am happy with it.

The problem I'm having is that when Using Visual Studio .NET (Using Visual
Basic at this point) for the client application, it doesn't maintain the
session between calls. 

Does anyone know how to configure .NET to maintain the session with Axis
1.2.

  Thanks!!

  Cliff




---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




Data persistence and sessions...

2005-04-29 Thread Grimm_Clifford
I'm a bit new to Axis and Web Programming in general.  I have done the very
basics with Axis.

Looking for an example or pointers for something a bit more advanced than
the user's guide gives.

I need to create a service that is session oriented. The reason is that I
would like to have some data associated to a session so that I don't need to
recreate it each time I call a method from a client application. I did find
a hint about creating an interface with a "Session" scope (did that), and
there was something I saw about setting a property on the call that directs
it to maintain a session (I think, did that).

 
_call.setProperty(org.apache.axis.client.Call.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);

However, I honestly don't have a clue where to go from here or if these are
even close to being the start of what I need to do. 

If this is at all possible and these two things I did are even relevant, I
haven't a clue how to set and get session stuff in the Axis framework from
the context of the Server.

Any help would be greatly appreciated, but I like examples even better.
Even directing me to some place that explains this is great too.


  Cliff




---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




RE: Axis Log4j initialization failure...

2005-04-29 Thread Grimm_Clifford
Thanks. This was the problem. 

> -Original Message-
> From: Cameron Bromley [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 28, 2005 7:22 PM
> To: axis-user@ws.apache.org
> Subject: RE: Axis Log4j initialization failure...
> 
> You need to make sure the log4j.properties file is in the classpath of
> the client. There is one that ships with 1.2rc3 in the lib directory.
> Contents as follows:
> 
> # Set root category priority to INFO and its only appender to CONSOLE.
> log4j.rootCategory=INFO, CONSOLE
> #log4j.rootCategory=INFO, CONSOLE, LOGFILE
> 
> # Set the enterprise logger category to FATAL and its only appender to
> CONSOLE.
> log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
> 
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> log4j.appender.CONSOLE.Threshold=INFO
> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
> 
> # LOGFILE is set to be a File appender using a PatternLayout.
> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
> log4j.appender.LOGFILE.File=axis.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.Threshold=INFO
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x -
> %m%n
> 
> 
> You will probably run into other output complaining about missing
> classes which can be solved by getting the java activation 
> framework and
> javamail from the Sun site and making sure those too are in 
> your client
> classpath
> 
> http://java.sun.com/products/javabeans/glasgow/jaf.html 
> 
> http://java.sun.com/products/javamail/downloads/index.
> 
> Cam.
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 29 April 2005 3:52 AM
> To: axis-user@ws.apache.org
> Subject: Axis Log4j initialization failure...
> 
> Back in February someone reported a problem with the Axis 1.2 always
> reporting the following. 
> 
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> 
> This occurs when trying to execute any client SOAP application.
> There is no follow on e-mail thread and I need to solve the same
> problem.
> 
> Does anyone have an idea what I need to do to get this to stop?
> 
> I am running Java 1.5 with Axis 1.2 RC3.  Not that the server side
> should
> matter, but I'm running Tomcat 5.5.
> 
>   Cliff
> 
> 


Axis Log4j initialization failure...

2005-04-28 Thread Grimm_Clifford
Back in February someone reported a problem with the Axis 1.2 always
reporting the following. 

log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.

This occurs when trying to execute any client SOAP application.
There is no follow on e-mail thread and I need to solve the same problem.

Does anyone have an idea what I need to do to get this to stop?

I am running Java 1.5 with Axis 1.2 RC3.  Not that the server side should
matter, but I'm running Tomcat 5.5.

  Cliff




RE: Exception in thread "main" java.lang.NoClassDefFoundError

2005-04-26 Thread Grimm_Clifford
Looks like you need to put quotes around the specification of classpath.


java -cp "%AXISCLASSPATH%" ... 


> -Original Message-
> From: Plorks mail [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 26, 2005 6:18 AM
> To: axis-user@ws.apache.org
> Subject: Exception in thread "main" java.lang.NoClassDefFoundError
> 
> 
> 
> Hello
> 
> I am following the Axis installation instrunction from here
> 
> http://ws.apache.org/axis/java/install.html#Step5InstallingNew
> WebServices
> 
> I get to step 6 set my classpath then i try to run the admin 
> client using 
> this
> 
> java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
>  -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
> 
> 
> But i get this error -
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> Files\AXIS\axis-1_1\lib\axis/jar
> 
> 
> checked my classpath and it looks correct
> 
> C:\Program Files\AXIS\axis-1_1\lib\axis.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\commons-discovery.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\commons-logging.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\jaxrpc.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\saaj.jar;  C:\Program 
> Files\AXIS\axis-1_1\lib\log4j-1.2.8.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\xml-apis.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\xercesImpl.jar;C:\Program 
> Files\AXIS\axis-1_1\lib\activation.jar
> 
> 
> Can anybody help
> 
> _
> It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! 
> http://messenger.msn.co.uk
>