RE: BeanSerializer

2004-11-23 Thread tony . q . weddle
I don't think that the BeanSerializer, or any Axis serializer, can be used on its own. It works via callbacks from Axis, in a particular serialization context. I don't think it has an methods that can simply serialize an object to an XML string, or an XML document. Tony -Original

Re: hiding a property from Axis serializer?

2004-11-23 Thread tony . q . weddle
I don't think there is any way of hiding properties explicitly. If you use a BeanSerializer, all properties that follow the JavaBean convention will be picked up. One way is to not use JavaBean conventions for those properties that you want to hide. Take a look at the JavaBean specification and

RE: packaging a web service

2004-11-23 Thread tony . q . weddle
That sounds like the standard way to me, Satish. Tony Koney, Satish [EMAIL PROTECTED] 23-Nov-2004 04:53 Hi, I created the war file for the web service. In that service I placed the axis related jars. Then I configured web.xml such that the request goes to

Re: BeanSerializer

2004-11-23 Thread Michael Schuerig
On Tuesday 23 November 2004 09:27, [EMAIL PROTECTED] wrote: I don't think that the BeanSerializer, or any Axis serializer, can be used on its own. It works via callbacks from Axis, in a particular serialization context. I don't think it has an methods that can simply serialize an object to an

Re: BeanSerializer

2004-11-23 Thread tony . q . weddle
You live and learn! Thanks, Michael. But I guess this demonstrates that they're not really designed for stand-alone use, despite the fact that they can be used that way. I don't know if the SerializationContext constructor is a public API that won't change. Tony Michael Schuerig [EMAIL

Deplying Trust management service as a webservice

2004-11-23 Thread Kibaya E.
Hi members, Iam a newbie to WebServices, iam thinking of how to utilize the WebServices vantages to handle the Trust Management (TM) issues currently relegated to the application developers. Iam aware of some research going on in this area but still i hope we should be able to utilize the current

RE: Newbie Question on Security

2004-11-23 Thread Robin Mannering
That's great to know! Thanks for your help everyone who contributed. -Original Message- From: Greg Michalopoulos [mailto:[EMAIL PROTECTED] Sent: 22 November 2004 14:56 To: [EMAIL PROTECTED] Subject: RE: Newbie Question on Security Axis can call SSL encrypted web services as long as it

X509 Client Certificates

2004-11-23 Thread Ivan Venuti
Hi, I'd like to retrieve the X509 certificates from the client request. WIth the ServletRequest I simply get the attribute: X509Certificate[] cert = (X509Certificate[]) req.getAttribute(javax.servlet.request.X509Certificate); How can I do it in Axis? I'd like to develop an Handler to

Axis Newbie: I dont get it about JAXRPC

2004-11-23 Thread Robert Simmons Jr.
When I look at the examples for JAX RPC calls, I just dont get what is going on there. I tried to emulate the examples and call the Version service and I get something like the following: import java.net.URL; import javax.xml.namespace.QName; import javax.xml.rpc.Service; import

Axis is logging everything...

2004-11-23 Thread METIN ZAVRAK
Hi, I have a GUI calling some web services. I want both GUI and web services log their own exceptions. For example, if the GUI cannot call the web service, GUI should log it. But if the web service cannot accomplish its operation, web service should log it. Here comes the problem. Even I

Re: XSD2Java utility?

2004-11-23 Thread Paul Callahan
Leonard, For those tasks, I would recommend XMLBeans, JAXB, or Castor. Those all provide XML--Java serialization/deserialization. Any of these can be used with Axis to handle message style web service requests/responses. -pc On Mon, 22 Nov 2004 16:02:29 -0800 (PST), Leonard Harris [EMAIL

NoClassDefFoundError with axis 1.1 and Jboss 3.2.5

2004-11-23 Thread PANTA-RHEI GREEN
Hi, our prob is: We want to make an soap call (with axis 1.1) from an EJB (stateless session bean) hosted on jboss 3.2.5 to an third party web-service. Java runtime version is: 1.4.2.06. Every works fine in a standalone environment (without jboss and EJBs). If we integrate the axis-generated

Re: Using a serializer and deserializer

2004-11-23 Thread toby cabot
Don't know about any docs or tutorials but something like... void axisSerialize(Object report, Writer whereTo) throws IOException { SerializationContext ser = new SerializationContext(whereTo); ser.setPretty(true); ser.setSendDecl(true);

tcpmon with SSL/HTTPS

2004-11-23 Thread Doug
What I'd like to do is have a proxy that can accept a plain text request over http and proxy it to an https server. I'm guessing I can't do this with tcpmon, but then again, I could be wrong. Can anyone confirm or provide an alternate solution? Thanks. Doug

Re: NoClassDefFoundError with axis 1.1 and Jboss 3.2.5

2004-11-23 Thread matthew.hawthorne
PANTA-RHEI GREEN wrote: If we integrate the axis-generated stub classes to our archive, we get following error during the deployment process: INFO [main] (EJBDeployer.java:572) - Deployed: file:/C:/devel/jboss-3.2.5/server/default/tmp/deploy/tmp1456806-webshop.ear-content INFO [main]

RE: NoClassDefFoundError with axis 1.1 and Jboss 3.2.5

2004-11-23 Thread Cervi, Anthony \(PCLN-NW\)
i have experienced the same problem and have found a solution that seems to work consistently. the axis jars, for whatever reason, need to go in the deploy folder. i banged my head against this until it bled so i graciously offer this to you ;o) we're using the default server so i zipped up

RE: tcpmon with SSL/HTTPS

2004-11-23 Thread Hubble, Christopher
Why would you want to do something like this? Kinda defeats the point of https. -Original Message- From: Doug [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 9:29 AM To: [EMAIL PROTECTED] Subject: tcpmon with SSL/HTTPS What I'd like to do is have a proxy that can accept a

RE: Using a serializer and deserializer

2004-11-23 Thread Levy, Avi
This helps. Thanks. However, I'm stil vage on how to deserialize XML into java objects (predefined classes). Thanks, -- AV -Original Message- From: toby cabot [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 8:19 AM To: [EMAIL PROTECTED] Subject: Re: Using a serializer and

Axisfault

2004-11-23 Thread Bouche Paul
I am using Axis 1.2rc2 and am talking to a Web Service using Axis 1.1 final which I have no control over. I noticed that the detail information of the Axisfault was lost, not deserialized correctly by Axis 1.2rc2. The service is a RPC style service. Did anyone notice similiar behaviour? --

Re: Using a serializer and deserializer

2004-11-23 Thread Yves Langisch
Check the list. For example: Tom, Noel, Aoife, Try this with 1.2beta: /** * Deserializes an InputStream (i.e. a XML file) to the appropriate Java Class * generated by Axis. * * @param is is the InputStream for deserializing (without SOAP elements) * @param qname is the qualified name of

Unnable to redeploy axis application

2004-11-23 Thread Vy Ho
With an Axis application, I want to undeploy it, then redeploy the application. When I redeploy the application, I get an error. Is this a known problem with Axis? Is there a way to go around this? Or it's must the way I do it. Here's the error: - Illegal access: this web application

MessageContext's getOperation() return null

2004-11-23 Thread Vy Ho
In a request handler, MessageContext's getOperation() returns null if define the handler's request flow in the global scope. If move this inside a service, then it will return a non null. Is this by design? Thanks, vh.

RE: Using a serializer and deserializer

2004-11-23 Thread Mark Malinoski
I'm currently serializing/deserializing java objects...using doc/literal WSDL. Here are the steps I took. 1. Create a java class (should be just a container with getters and setters) that implements java.io.Serializable. 2. Client: Before calling the invoke method call the registerTypeMapping

RE: X509 Client Certificates

2004-11-23 Thread Brown, Mike
You can get a handle on the request object from the MessageContext. Anywhere within your service method you can call MessageContext mc = MessageContext.getCurrentContext(); ServletRequest req = (ServletRequest)mc.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

Getting service endpoint

2004-11-23 Thread Martin Craig
Hi, Is there a good way to get the endpoint URL of a service? Currently we are using: String url = (String)MessageContext.getCurrentContext().getProperty(transport.url); but this fails when the request has come through TCPmon. I have also tried other possibilities, e.g.

RE: hiding a property from Axis serializer?

2004-11-23 Thread Sheptunov, Bogdan
Thank you Tony. This is what I ended up doing yesterday - putting underscores in front of the methods. Don't like it though, as technically by doing this I am in violation of coding standards, and in general this isn't a clean solution. I actually thought I found a way to "tell" Axis

Changing the Client Side Transport and Adding a new one.

2004-11-23 Thread Robert Simmons Jr.
Greetings, I have a customer that wishes to deploy web services over their new custom sockets library. We would still like to use the HTTP protocol (and HTTPS) over the new socket library but what we want to have happen is that the clients connect using the new sockets to the server. The

Changing Transport while using JAXRPC.

2004-11-23 Thread Robert Simmons Jr.
Currently I have the following code: package com.bmw.candy.candiedServices.client; import org.apache.axis.version.VersionService; import org.apache.axis.version.VersionServiceLocator; public class CandiedServices { public static void main(final String[] args) { try {

Re: hiding a property from Axis serializer?

2004-11-23 Thread Adrian Perez Jorge
Sheptunov, Bogdan wrote: Thank you Tony. This is what I ended up doing yesterday - putting underscores in front of the methods. Don't like it though, as technically by doing this I am in violation of coding standards, and in general this isn't a clean solution. I actually thought I found a

RE: Axis is logging everything...

2004-11-23 Thread Wessel Alexander
Hmmm... Just guessing: Do you have a log4j.properties file somewhere in your $CLASSPATH, before the one you are trying to set/change? From: METIN ZAVRAK *EXTERN* [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 1:06 PMTo: [EMAIL PROTECTED]Subject: Axis is logging everything...

Re: XSD2Java utility?

2004-11-23 Thread Leonard Harris
Paul, thanks for your feedback! Since I have been using Axis only for the WebServices, I am not sure how to use XMLBeans or JAXB with Axis. Is it just a matter of defining the deserializer/serializer in the web service deployment descriptor? Regards, Leonard.Paul Callahan [EMAIL PROTECTED]

exposing only parts of a Java Bean

2004-11-23 Thread Tim Dev
Hello, I've just started looking into Axis and I couple of simple questions: 1) How can I expose only the Java Bean part of a complex type, in other words I have a Java Bean that has some extra methods also for use internally on the server side (e.g. one of the methods is getMap() *without* a

Re: tcpmon with SSL/HTTPS

2004-11-23 Thread Doug
We want the traffic between us (the client) and our customer (the server) encrypted so it can't be sniffed, but we still want to view the message contents. So HTTP from our application to a local tcpmon for message viewing, then HTTPS over the external network to our customer. (And, of

WSDL2JAVA

2004-11-23 Thread Levy, Avi
Hi all, Has anyone use WSDL2JAVA to generate a message style web service. I would like to generate code so that my service class will deall with the incoming SOAPRequest and write some xml back to SOAPResponse. Writing the code manualy is possible and not hard. However, I would prefer

Re: Call with different character encoding

2004-11-23 Thread Bernie Bernstein
I found a much easier way to do this by making only a minor modification to org.apache.axis.client.Call.java. I added a new property: public static final String CHARACTER_SET_ENCODING= SOAPMessage.CHARACTER_SET_ENCODING; and made the appropriate changes in the property checking code.

Re: exposing only parts of a Java Bean

2004-11-23 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Dev wrote: | Hello, | | I've just started looking into Axis and I couple of simple questions: | | 1) | How can I expose only the Java Bean part of a complex type, in other words | I have a Java Bean that has some extra methods also for use

WSDD file for Multiple PortType ?

2004-11-23 Thread Beytullah Yildiz
Hello, I am working on deploying a multiple port type service. I have manually created wsdl file and deployed it into an absolute path. I have correctly created client stubs. If I deploy folowing service element, PortTypeA is working: service name=MultiplePortTypes provider=java:RPC

Re: exposing only parts of a Java Bean

2004-11-23 Thread Tim Dev
1) How can I expose only the Java Bean part of a complex type, in other words I have a Java Bean that has some extra methods also for use internally on the server side (e.g. one of the methods is getMap() *without* a corresponding setMap() method). When I expose a method that uses this

RE: hiding a property from Axis serializer?

2004-11-23 Thread Sheptunov, Bogdan
A filter all those properties approach is to create a interface for each of those beans you would like to serialize, but just including getters and setters for those properties you really want to be serialized; then let your bean implement that interface (already does!) and alter

long vs. Long

2004-11-23 Thread Tim Dev
Hi, I have a simple test method: Long foo(Long bar) Java2WSDL maps the Long to xsd:long and the client stub contains the method as: long foo(long bar) 1) Is there a way to preserve the Long on the client side? 2) Is this done because of interop issues with .NET for example? 3) For best

Attachments - AXIS Server, .NET Client

2004-11-23 Thread John Walker
I have a spot of code I would like to contribute to the group. This class I developed can be used to detach or attach any file sent over web services. This class is intended for use on the server side, and will need just a little massaging to work in your environment. It took me several

Attachments - AXIS Server, .NET Client

2004-11-23 Thread John Walker
I have a spot of code I would like to contribute to the group. This class I developed can be used to detach or attach any file sent over web services. This class is intended for use on the server side, and will need just a little massaging to work in your environment. It took me several

attachments

2004-11-23 Thread Tim Dev
I am thinking of using attachments, but I have a few questions: 1) Given that the attachment sizes will be from 2KB to maybe 1GB or even more, can Axis deal with them in a performant way? 2) I have the option of retrieving/sending content via a plain HTTP servlet using GET/PUT and I could make

HashMap of HashMaps

2004-11-23 Thread Lyndon Tiu
Hello, I have a custom object I am trying to pass across the wire using AXIS wrapped style document-literal service. The complex object contains a HashMap of HashMaps (that is, the values of the HashMap, are HashMaps themselves). For reference, I have called this complex object

Re: exposing only parts of a Java Bean

2004-11-23 Thread Tim
| The best approach is to separate the bean from the extra methods, and | just have your server use the extra methods by calling the class that | would extend the bean class. That way, regardless of what happens, you | know what is going out as a webservice. The problem with this approach is

RE: exposing only parts of a Java Bean

2004-11-23 Thread Simon Fell
Is there such a thing in Axis as a descriptor file where one could list the classes/beans and also the methods that would like to be exposed? Or maybe the methods to be exposed can be annotated via custom javadoc tags. Can XDoclet be used to achieve this? I can't tell from briefly

Re: Call with different character encoding

2004-11-23 Thread Davanum Srinivas
Bernie, Looks like a useful change...can you please open a JIRA enhancement request? thanks, dims On Tue, 23 Nov 2004 13:55:32 -0500, Bernie Bernstein [EMAIL PROTECTED] wrote: I found a much easier way to do this by making only a minor modification to org.apache.axis.client.Call.java. I

Re: exposing only parts of a Java Bean

2004-11-23 Thread Tim
Is there such a thing in Axis as a descriptor file where one could list the classes/beans and also the methods that would like to be exposed? Or maybe the methods to be exposed can be annotated via custom javadoc tags. Can XDoclet be used to achieve this? I can't tell from

Multiple PortType Example ?

2004-11-23 Thread Beytullah Yildiz
Hello, Does anybody know a tutorial or an example about a service implementation which has multiple port types ? Thanks

Re: Call with different character encoding

2004-11-23 Thread Bernie Bernstein
I just submitted it to JIRA: http://nagoya.apache.org/jira/browse/AXIS-1682 thanks for the help. Bernie On Nov 23, 2004, at 6:58 PM, Davanum Srinivas wrote: Looks like a useful change...can you please open a JIRA enhancement request? dims On Tue, 23 Nov 2004 13:55:32 -0500, Bernie Bernstein

Re: tcpmon with SSL/HTTPS

2004-11-23 Thread Paco Nathan
sounds like socat might be a good approach: http://www.dest-unreach.org/socat/ Paco On 23 Nov 2004, at 12:40, Doug wrote: We want the traffic between us (the client) and our customer (the server) encrypted so it can't be sniffed, but we still want to view the message contents. So HTTP

TypeMappingRegistry is empty

2004-11-23 Thread Andrew Prunicki
Please excuse this message if it is too obvious, as I am a relative newbie to Axis. I am trying to leverage the built-in xml to object unmarshalling within a running web-service in Axis. From what I can gather, the best way would be to create a DeserializationContext, and use the already