RE: trying to access ServletContext within axis webservice

2005-01-20 Thread Keith Hatton
Title: trying to access ServletContext within axis webservice File destination = new File(context.getInitParameter("TREND_JDBC_FAULT")); If you are getting parameters from the ServletContext, they need to be defined as context-params in web.xml, which precede any servlet elements. To

RE: trying to access ServletContext within axis webservice

2005-01-20 Thread John McCosker
Title: RE: trying to access ServletContext within axis webservice Thanks a million Keith, that works for me. -Original Message- From: Keith Hatton [mailto:[EMAIL PROTECTED]] Sent: 20 January 2005 09:17 To: [EMAIL PROTECTED] Subject: RE: trying to access ServletContext within axis

Does Axis support list enumeration?

2005-01-20 Thread jayachandra
Dominik and all, As on date, does Axis support list enumeration? WSDL2Java is succeeding in producing some code for list enumeration in wsdl, but the generated code is incomplete (no enumeration specific variables/fields are found in the code). Am I missing something, or does it have to do with

RE: Trust in any certificate

2005-01-20 Thread Joaco
Thank Tim for replay my message ! Second , sorry for de double post Your solution works very good ! But with this solution I must modify axis.jar, and I can?t. Have you got another solution for my problem ? Tks again ! Regards, Joaco -- Mensaje original -- Reply-To: [EMAIL PROTECTED]

Re: Free 2 Way SSL Web Service Providers

2005-01-20 Thread Chris
I want to write an AXIS Web Service java client program that uses AXIS stubs on a doc/lit web service wsdl that is provided by third party like netmethods.com However I am interested only in 2 way SLL implementing web services (I guess netmethods.com web services are not 2 way ssl enabled) and

Unable to connect to SSL Web Service

2005-01-20 Thread babloosony
Hi All, Say I need to access a third party web service url https://www.mycom.myc/net/WS whose server implements 2 way SSL authentication. I wrote java web service client program that uses Apache AXIS generated stubs to connect to this web service. Now my question is what are the steps that need

WSDL2Java: Missing classes

2005-01-20 Thread Michael Müller
Hi,I created a simple wsdl file with gSoap and wanted to create the java classes with WSDL2Java. But WSDL2Java does not create the method. What´s wrong with the WSDL file? Regards,Alex ?xml version="1.0" encoding="UTF-8"?definitions

Re: apachesoap namespace is not found

2005-01-20 Thread Anne Thomas Manes
The namespace is valid, but there's no schema associated with it. Therefore other SOAP implementations aren't able to resolve elements or attributes from that namespace. On Wed, 19 Jan 2005 15:42:08 -0700, Steven Dahlin [EMAIL PROTECTED] wrote: In using the Java2WSDL app or by handcoding I am

XML -- object

2005-01-20 Thread Csaba Nemeti
Hello. I'm very new in SOAP and I have a big question. I have a simple SOAP client that suppose to call a method like public MyMessage processMessage(MyMessage x) Unfortunately I'm not able use the server side of the SOAP. This means that call is going to a servlet where it should be processed

Re: How to create a private UDDI registry with Axis?

2005-01-20 Thread Anne Thomas Manes
UDDI.org provides a hosted v3 test registry. IBM, Microsoft, SAP, and NTT all supply replicated nodes in that registry. See http://www.uddi.org/register.html for the URLs of these registry nodes. Systinet also provides a hosted test registry. See http://www.systinet.com/uddi/web. But if your

Re: Question about session scope

2005-01-20 Thread Shantha Kumar
Hi, if the client doesn't call setMaintainSession(true) the JSessionID cookie doesn't get transported to the server. The server keeps creating a new session and also a new bean. thanks, sk - Original Message - From: Wiener, Zach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: Question about session scope

2005-01-20 Thread Tim K. (Gmane)
The scope (session, application, request) on the server side tells Axis how many instance of the server implementation classes to create, it doesn't have much to do with the session on the client side. The client is not aware of the session scope on the server side. So you can for example use

Re: Question about session scope

2005-01-20 Thread Shantha Kumar
thanks Tim. I was of the opinion that the implementation was done for statelessness. thanks for the eye-opener. SK - Original Message - From: Tim K. (Gmane) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 20, 2005 11:49 PM Subject: Re: Question about session scope The

Re: Maintain session when using stubs generated by WSDL2Java

2005-01-20 Thread Tim K. (Gmane)
On the generated FooServiceLocator call setMaintainSession(true) Or you can cast the generated Stub to javax.xml.rpc.Stub and then call stub._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE) which is the JAX-RPC way. Both work in Axis, but the first one is Axis specific while the

Re: Maintain session when using stubs generated by WSDL2Java

2005-01-20 Thread Praveen Peddi
Thanks. But I have multiple services. On teh server side, I have 4 SOAP services and each has itw own WSDL. When I generated the code for each WSDL, it generated XXXServiceLocator for each service. Calling setMaintainSession(true) on all service locations maintains the same session? I need to

Re: Maintain session when using stubs generated by WSDL2Java

2005-01-20 Thread Tim K. (Gmane)
Btw, for the first case you need to call setMaintainSession(true) on the Service _before_ you get any Stubs from it. Something like this (assuming AxisTest is my web service): AxisTestServiceLocator ats = new AxisTestServiceLocator(); ats.setMaintainSession(true); // Axis specific AxisTest stub

Re: Maintain session when using stubs generated by WSDL2Java

2005-01-20 Thread Tim K. (Gmane)
I have the same problem. Unfortuantely it's not possible without patching the Axis code. I will be working on that in the next couple of weeks because I need it for my project. I will submit the patch to Axis once completed, but that doesn't guarantee it will be accepted. You can contact me in

OutOfMemory in org.apache.axis.utils.ByteArrayOutputStream

2005-01-20 Thread Chapoor Chapoor
Hi after tracing the Axis source code I can tell this: When the AxisClient call the .invoke method I receive an OutOfMemory exception (while the message I try to send is big one). AxisClient.invoke() - SimpleChain - HTTPSender - Message - SOAPPart - ByteArray - ByteArrayOutputStream. The

Adding serializers and deserializers dynamically using generated stubs

2005-01-20 Thread Praveen Peddi
I have a service method that takes java.lang.Object. In WSDL it is mapped as xsd:anyType. This can be either byte[], DataHandler or AttachmentPart. When I call this method using the generated stubs and pass in byte[] it works fine. But when I call the same method by passing AttachmentPart

Re: turn off _any parsing? (workaround)

2005-01-20 Thread toby cabot
On Wed, Jan 19, 2005 at 03:52:38PM -0500, toby cabot wrote: Even if they were serializable they're big and I don't need the _any stuff so I'm wondering if there's some way to turn the _any parsing off and tell Axis to ignore elements that aren't in the schema. Still haven't found what I was

Recommended way to create deply

2005-01-20 Thread Abdullah Jibaly
Hi all, I'm new to Axis and have looked through the documentation and the mail archives for the recommended way to create and deploy Java web services, but cannot come to complete solution. I would like to start with a Java class web service implementation and be able to deploy it automatically

Recommended way for validation in web services Environment

2005-01-20 Thread Jaswinder Kaur
Title: Recommended way for validation in web services Environment Hi I am creating a service to insert a row in table. Before inserting, the data need to be validated. So how the service should communicate all the missing data elements or other validation issue, back to the "requestor of the

WS-I compliancy problem for generated wrapped WSDL

2005-01-20 Thread Eugene Shershnev
Hi All, The WSDL generated from a simple class does not go though SOAPscope WS-I test. It fails in 3 different points: Assertion: WSI2102 Message: An XML schema import element references something other than an XML schema definition: the referenced element does not have "schema" from XML

RE: WS-I compliancy problem for generated wrapped WSDL

2005-01-20 Thread Simon Fell
The first one is a false assertion from the WS-I tools, if you read the WS-I BP erata, you'll see that it wasn't suposed to make inline schemas illegal. The second one is because you have an rpc/encoded service, which uses that arrayType, you'll need to change your service to be doc/literal

Re: Arrays: .NET client -- AXIS server

2005-01-20 Thread Bill Keese
After looking into the code, I found out that deserialization for arrays (Bworks automatically in rpc/encoded mode, but not in document/literal (Bmode. The workaround is to register a serializer/deserializer in the (BWSDD file like this: (B (BtypeMapping

Re: How to automatically generate a list of beanMapping entries?

2005-01-20 Thread Bill Keese
Doesn't WSDL2JAVA generate beanMapping tags? If you ran that tool you could grab the beanMapping entries from the generated deploy.wsdd and stick them into your custom service-config.wsdd. PS: it seems that you are starting from java classes and generating your WSDL rather than vice-versa. I

Standalone Java web services server

2005-01-20 Thread Douglas Kunzman
Hi, I am looking for a java based web services server that does not need tomcat or an http server to be hosted but could be easily integerated into an existing java application. thanks, Douglas Kunzman Sensor Systems Work 703-437-7651 x693 Mobile 571-228-1048

Re: Standalone Java web services server

2005-01-20 Thread Tim K. (Gmane)
Axis has a built-in minimal HTTP server from what I read, but I never used it so I don't know the details. Look into it a little bit and see if it will work for you. Tim Douglas Kunzman wrote: Hi, I am looking for a java based web services server that does not need tomcat or an http server to

Re: Standalone Java web services server

2005-01-20 Thread Peter Smith
I think previous email is referring to http://wiki.apache.org/ws/SimpleAxisServer Peter Tim K. (Gmane) wrote: Axis has a built-in minimal HTTP server from what I read, but I never used it so I don't know the details. Look into it a little bit and see if it will work for you. Tim Douglas

Need extended Message Services Example

2005-01-20 Thread John Menke
I am trying to use the message type service - i can get the basic example working (it returns the input) but I can't seem to get a service doing anything with the Document instance working. Service method public Document testService (Document doc){ // do something with doc besides return it }

RE: Need extended Message Services Example

2005-01-20 Thread Nathan Wardle
I tried to do this too. I spent ages trying to get it working, but it didn't. The MsgProvider has a switch statement that checkes the method type. The problem I had was that the value being tested was never set in the OperationDesc. Therefore, I'd just get an error message saying that it was

Re: Does Axis support list enumeration?

2005-01-20 Thread jayachandra
Hi Paul, that seems more like plain enumeration. I was asking about enumerations wrapped inside a list element, something like xsd:simpleType name=foo xsd:list xsd:simpleType xsd:restriction base=s:string xsd:enumeration value=bar1/