Re: XML signature format issue in request?

2004-03-30 Thread Dimuthu Leelarathne.
Hi Peter, Are you using wss4j? Dimuthu. - Original Message - From: pacow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 29, 2004 8:00 AM Subject: XML signature format issue in request? I'm having trouble getting my signature verified by the host server (who is remote

Re: Questions Regarding Security example ClientSigningHandler

2004-03-30 Thread Dimuthu Leelarathne.
Hi Peter, 1) Can I verify that the handler has actually been deployed? When I run the command java org.apache.axis.utils.Admin client samples/security/clientsecuritydeploy.wsdd, I get no feedback, though no Exceptions either. You can check wheather Client-Config.wsdd has been created, if it

Re: Integrating JAXB with Axis

2004-03-23 Thread Dimuthu Leelarathne.
Hi Wei, Most probablly there will be aAxis version that usesJAXMEXsinparsing schema in the WSDL document.It will not completey use JAXB's features. HoweverJAXMEXs is expected to improve WSDL2Java tool. We can only wait and see :-). Dimuthu - Original Message - From: Wei

Re: TCPMon

2004-02-10 Thread Dimuthu Leelarathne
Hi Tony, You have to set the target endpoint address as; call.setTargetEndpointAddress(new java.net.URL(http://127.0.0.1:1234/axis/services/service_Name)); BTW are you the Tony Blair in Cricket ;-)? Best Regards, Dimuthu. -- Lanka Software Foundation http://www.opensource.lk There are

Re: Axis and Document Style RPC

2004-02-02 Thread Dimuthu Leelarathne
Hello Ben, Following is a WSDL for a doc\literal style web service. Hope this helps. :-). Regards, Dimuthu. definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:s0=urn:Notification xmlns=http://schemas.xmlsoap.org/wsdl/;

Re: Subject lines prepended with '[AXIS-USERS] '

2003-12-15 Thread Dimuthu Leelarathne
It sounds good. -- Lanka Software Foundation http://www.opensource.lk Because it makes it easier to use email client features such as sort-by-subject. At 12:08 PM 12/15/2003, you wrote: Why? If you need this for filters, why not just filter by the email address? I think the [EMAIL

Re: Subject lines prepended with '[AXIS-USERS] '

2003-12-15 Thread Dimuthu Leelarathne
Yes it sounds good. -- Lanka Software Foundation http://www.opensource.lk Because it makes it easier to use email client features such as sort-by-subject. At 12:08 PM 12/15/2003, you wrote: Why? If you need this for filters, why not just filter by the email address? I think the [EMAIL

Re: Problem in getting unparsed raw XML from AXIS

2003-12-15 Thread Dimuthu Leelarathne
Hi Naresh, Right now I don't think there is a way you can get untouched stream, because Axis begins processing a SOAP message by parsing it using SAX and then it stores these SAX events. Then Axis work on these stored SAX events. So if you really, really want to do this - you have to start

Re: How to get sample SOAP Body?

2003-12-08 Thread Dimuthu Leelarathne
Hi Rajesh, There are three ways to invoke a web service. Using a static client, using a proxy or complete dynamic invocation. It's not really clear to me whether you want to generate the SOAP message given the wsdl or the uri of the wsdl. Of course if you have the wsdl beforehand you can run it

Re: document/wrapped services

2003-12-05 Thread Dimuthu Leelarathne
Hi Rob, I want to send a Document. If you want to send a docuemnt to the web service, it implies that you want to axis to step back and let you do the XML parsing (deserialization). Therefore you should use message style service. You can read more about this in axis user guide. Regards,

Re: Reconstructing a SOAP reply -- Pls help

2003-12-05 Thread Dimuthu Leelarathne
Hi Mark, You can do the same thing as we did, when we implemented AxisMora. Let's call what you return from your web service as ReturnValue. Step 1:: Register your result in the DefaultTypeMappingImpl In org.apache.axis.encoding.DefaultTypeMappingImpl you have to register the your ResultValue

Re: document/wrapped style service example

2003-12-04 Thread Dimuthu Leelarathne
Hi Robert, If you go to the bottom of the page of Bug list at apache and query for bug 23012 you'll find sample doc\literal service that doesn't use wsdl. The sample is removed from the bug list but it is still in the database. I am yet to find time and do it again using wsdl :-). I have also

Re: name='sendXsiTypes' value='false' does not work for int ?

2003-12-01 Thread Dimuthu Leelarathne
Hi Jorg, I had the same problem in a different context. I had set call.sendXsiTypes(false) in a wrap\literal client. This didn't work for integers - i.e. client send xsi types for integers. It worked fine for String values - i.e. it didn't send xsi types for strings. Later I discovered the

RE: How to define document/literal service with multiple operatio ns

2003-11-17 Thread Dimuthu Leelarathne
. call.setOperationName(new javax.xml.namespace.QName(urn:eprofile, updateProfile)); Unfortunately its not dispatching to updateProfile service method. What I am doing wrong here? Any help will be really appreciated. Thanks, Ranjith Pillai. -Original Message- From: Dimuthu Leelarathne

Re : How to define document/literal service with multiple operations

2003-11-13 Thread Dimuthu Leelarathne
Hi Mike, You are correct in saying that there's no wrapper element around the input message parts. The message part should be the immediate child element of the SOAPBody. You are also right in saynig that there is no way of mapping between message part and method. Axis solve this problem using

Re: problems

2003-11-13 Thread Dimuthu Leelarathne
Hi Pradeep, Have you set the class path correct? I get this error when I have not set the classpath correctly. Regards, Dimuthu. -- Lanka Software Foundation http://www.opensource.lk Hi Guys, I'm trying to change the server-config.wsdd with the deploy.wsdd by running admin

Re: AW: Intermediary node

2003-11-13 Thread Dimuthu Leelarathne
Hi Bob, I would like to comment on the following line. CLIENT --- INTERMEDIARY --- ENDPOINT Are you talking about the INTERMEDIARY mentioned in the SOAP specification? We (myself and my team mates) had a long discussion \ arguments on this matter few months back. The question was What is this

Re: How to define document/literal service with multiple operations

2003-11-13 Thread Dimuthu Leelarathne
Hi Mike, No it's not less sleep, or more coffee, or anything else :-). Correct me if I am wrong, but I am under the impression that axis does not use SOAP action at all when invoking a service. If someone wants to use doc\literal service to have multiple operations he has to explicity map the

Re: axis error

2003-11-04 Thread Dimuthu Leelarathne
Hey Kish, The thing is org/w3c/dom package is not available in jdk1.3. You have to install jdk1.4 or xerces.jar. mmm Congradulations :-). Luv, Dimuthu -- Lanka Software Foundation http://www.opensource.lk D:\AXIS-1_1java samples.userguide.example2.CalcClient -p8080 add 2 5

Re: Can't find specified service when creating a service object

2003-11-03 Thread Dimuthu Leelarathne
Hi Scott, First you have to create a ServiceFactory instance. The below code will help you. URL currWsdlUrl = new URL(UrlString); ServiceFactory serviceFactory = ServiceFactory.newInstance(); Service currService = serviceFactory.createService(currWsdlUrl, new QName(nameSpaceUri,

Re: generated enumerated types failing to deserialize

2003-11-03 Thread Dimuthu Leelarathne
Hi Andrew, In order for enumerations to be deserialized at server, first they have to be correctly serialized at the client side. Have you checked whether the client side serialization happen correctly? Regards, Dimuthu. Lanka Software Foundation

Re: Changing Web Service address location

2003-10-26 Thread Dimuthu Leelarathne
Hi Pablo, There is a fnal String attribute in your *locator.java class. This attribute tells the address location. You can change it manually to change the address. Or if you are using a proxy you can call the getPort(Class serviceEndpointInterface) in the locator.java class. Regards,

Re: HTTP Chunking

2003-10-23 Thread Dimuthu Leelarathne
Subject: Re: HTTP Chunking Dimuthu- The year on your computer is set to 2002. You might want to change that :) -c On Mon, Oct 14, 2002 at 04:35:35PM +0600, Dimuthu Leelarathne wrote: Yes Axis supports chunking. Check out org.apache.axis.transport.http.HTTPSender.java

Re: No such operation error using document/literal service

2003-10-22 Thread Dimuthu Leelarathne
=urn:DoclitOrder /operation You will have to fill in the returnQName and namespace to match what ever the service will return (if anything). Hope this helps. -- Tom Jordahl Macromedia Server Development -Original Message- From: Dimuthu Leelarathne [mailto:[EMAIL PROTECTED

Re: HTTP Chunking

2003-10-17 Thread Dimuthu Leelarathne
Yes Axis supports chunking. Check out org.apache.axis.transport.http.HTTPSender.java. - Original Message - From: Paul Harman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 4:16 PM Subject: HTTP Chunking Does AXIS accept (and is AXIS able to send) HTTP-chunked

Re: read id from SOAP header in response

2003-10-12 Thread Dimuthu Leelarathne
Hi Wolfram, I invoke a service on a server with a request message without any soap header, der reponse message has a soap header with a spefieid element, a transaction id. How do I read the header or elements in it from a response message? You have to use handlers - just like reading a

RE: WSDL2Java Stub and Call objects

2003-10-12 Thread Dimuthu Leelarathne
Hi Wolfram, It's ok to change the stub as long as you know what you are doing. Looks like you have to access the call object to access the connection pool. In the stub there is a method named createCall(...) . You can manually change the code inside the - createCall method to create a call object

Re: Generic Client

2003-10-06 Thread Dimuthu Leelarathne
Hi atul, Have a look at samples\client\DynamicInvoker.java Regards, Dimuthu - Original Message - From: atul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 6:00 AM Subject: Generic Client How can(if at all) one write a generic client, irrespective of the way

Re: ComplexType Array

2003-10-01 Thread Dimuthu Leelarathne
ComplexType ArrayTim Check out this bug; http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15384 Regards, Dimuthu. - Original Message - From: Cobble, Tim To: [EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:23 AM Subject: ComplexType Array All, I feel I am asking a repeated

Re: problems with setting soapAction to method name

2003-09-30 Thread Dimuthu Leelarathne
Hi Abhijat, Try setting the SOAP Action as follows in your client/ stub. call.setUseSOAPAction(true); call.setSOAPActionURI(method-Name) Cheers, Dimuthu. - Original Message - From: Abhijat Thakur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:53 AM Subject:

Re: Access violation?

2003-09-27 Thread Dimuthu Leelarathne
Hi Anders, Using TCP monitor is easy. 1)Make the TCP monitor listen to a port. For example you can specify . 2)Then specify the actual port you want to send request as the Target Port. For example if your tomcat is listening to then specify the target port as . 3)Then modify the

Re: Passing Values through handlers

2003-09-24 Thread Dimuthu Leelarathne
that approach is feasible? It kind of breaks the whole independency between handlers, but I think it's the only way to re-use the same service for two different scenarios. Thanks, Jose M Selman - Original Message - From: Dimuthu Leelarathne [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: New to Axis on XP

2003-09-24 Thread Dimuthu Leelarathne
Look Installation in http://ws.apache.org/axis/ - Original Message - From: Yves Gerber To: [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:03 PM Subject: New to Axis on XP I have Windows XP Professional installed. And I've downloaded and installed Apache Tomcat 4.1.27 and Apache

Re: Returning XML document from Service call

2003-09-24 Thread Dimuthu Leelarathne
Cathol, Message style services would help you . They have signatures as below. Read about it in the user guide. public Element [] method(Element [] bodies); public SOAPBodyElement [] method (SOAPBodyElement [] bodies); public Document method(Document body); public void method(SOAPEnvelope req,

Re: No deserializer for dateTime

2003-09-24 Thread Dimuthu Leelarathne
(my app is the only client). Now everything works fine! /Anders On tisdag, sep 24, 2002, at 05:26 Europe/Stockholm, Dimuthu Leelarathne wrote: Hi Anders, I had the exact-problem sometime back, but it was regarding doc\literal services. Isn't this a client side deserialization problem

Re: Need help deserializing at the client side

2003-09-24 Thread Dimuthu Leelarathne
Hi Jose, Since you have the WSDL file run it through WSDL2Java and just go through the *Binding stub. Then you will see how axis sets arguments to the call object and register serializers/deserializers. It helped me a lot. Regards, Dimuthu. - Original Message - From: Jose Soler To:

Re: Passing Values through handlers

2003-09-23 Thread Dimuthu Leelarathne
Hi Jose, Properties in MessageContext are mostly used to store HTTP header information. Yes there is one message context per request. This MessageContext is passed through handlers and one of the biggest jobs of MessageContext is to carry information. This design pattern is called the mediator

Re: No deserializer for dateTime

2003-09-23 Thread Dimuthu Leelarathne
Hi Anders, I had the exact-problem sometime back, but it was regarding doc\literal services. Isn't this a client side deserialization problem? The Binding stub was the same ( i.e. it added a elemfield to the typedesc ). According to your stackTrace I see that the program-control-flow has not

Re: XML Schama message validation.

2003-09-22 Thread Dimuthu Leelarathne
- Original Message - From: Dimuthu Leelarathne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 22, 2002 9:46 AM Subject: Re: XML Schama message validation. Hi Marcin, I guess you manually want to validate. I point out two ways of doing it. 1) You can write a handler

Re: XML Schama message validation.

2003-09-21 Thread Dimuthu Leelarathne
Hi Marcin, I guess you manually want to validate. I point out two ways of doing it. 1) You can write a handler. Get the SOAPBody from the MessageContext. Then you can parse it with xerces. 2) You can write a message style service with below signature. public Element [] method(Element []

Re: How to extract values from SOAP message?

2003-09-17 Thread Dimuthu Leelarathne
How to extract values from SOAP message?Hi Andrey, Try replacing if (a_ello instanceof SOAPElement) with this if(a_ello instanceof javax.xml.soap.SOAPFault) . From the SOAPFault you can simply get the faultString , actor and etc ... Dimuthu.

Correction :: How to extract values from SOAP message?

2003-09-17 Thread Dimuthu Leelarathne
Hi Andrey, I'm sorry about the last mail. It looks weird. What I wanted to say was that use if(a_ello instanceof javax.xml.soap. SOAPFault) instead of this line if (a_ello instanceof SOAPElement) . Then from the SOAPFault you can simply get the faultString , actor and etc ... Dimuthu.

Re: Remote DTD/Schema referencing

2003-09-17 Thread Dimuthu Leelarathne
Does anybody know if Axis performs 'Remote DTD/Schema referencing' ? Does it fetch all the XML schemas/DTD posted in a particular HTTP soap request message? No axis doesn't support romote XML schemas/DTD referecing yet. But if you want reference a schema you can include it in the wsdl of the

RE: Remote DTD/Schema referencing

2003-09-17 Thread Dimuthu Leelarathne
Thanx Glen for pointing that out. I was under a wrong impression. Hi Dimuthu, all: Does anybody know if Axis performs 'Remote DTD/Schema referencing' ? Does it fetch all the XML schemas/DTD posted in a particular HTTP soap request message? No axis doesn't support romote XML

Re: Axis stock example

2003-09-15 Thread Dimuthu Leelarathne
hello, I think you haven't enabled the Axis Admin servlet by editing axis\WEB-INF\web.xml. You have to uncomment the servlet mapping for servlet/AdminServlet. Regards, Dimuthu. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 15, 2003 2:59 PM

Re: xmlns= in the doc\literal SOAP message

2003-09-08 Thread Dimuthu Leelarathne
It looks like a lot of discussion has been going on while I am away. It is news to me that this bug has been around for rpc\lit case. So Ichecked out with wrap\lit case and it is not there, i.e.wrap\literal does not send any xmlns="". I thought of justmentioning it to the list. Dimuthu.

Re: need help with SAXException: Deserializing parameter

2003-09-08 Thread Dimuthu Leelarathne
Hi Scott, beanMapping tag come before the service terminating tag i.e. /service Like this; service .. . beanMapping qname="ValidateFields:User" languageSpecificType="java:example2.User"//service Regards, Dimuthu. - Original Message - From: "scott"

Re: Exception occurs when deploying service (Win32)

2003-09-08 Thread Dimuthu Leelarathne
Matt Hatcher, I had the same problem once. It was caused because Axis could not find the wsdd file. Make sure that the wsdd server-config file is in the webInf folder. Regards, Dimuthu. - Original Message - From: Hatcher Matthew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: settting soapaction

2003-09-07 Thread Dimuthu Leelarathne
abhijat, Try this. call.setUseSOAPAction(true); call.setSOAPActionURI(methodName); Dimuthu. - Original Message - From: Abhijat Thakur To: [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 4:56 AM Subject: settting soapaction In my wsdl file i see the soapAction attribute set to

Deserialization at client side

2003-09-04 Thread Dimuthu Leelarathne
Hi, Am I loosing my sense of time or does it actually take two days for my mails to reach the mailing list? Thank you all for your help and patience, but now I run into more problems. The TCPMonitor shows request and response messages as below. Request -- soapenv:Body

Re: Why specify a operationname for a doc/lit client

2003-09-02 Thread Dimuthu Leelarathne
Hi, I have been running into all sorts of problems regarding doc\literal services and I still do :-). Yes I had the same problem. I am using a static client which uses a call object. There is no involvement of WSDL. So I checked whether axis uses setOperationName( ) to do some validation with the

Re: Why specify a operationname for a doc/lit client

2003-09-02 Thread Dimuthu Leelarathne
Hi, I also ran across lot of problems reagarding this doc\literal services and I still do :-). I had the same problem. So checked whether axis uses this setOperationName to validate the operation name with the soap action, but it looks like it doesn't. I am also very interested to know why it

No such operation fault in doc\lit

2003-09-02 Thread Dimuthu Leelarathne
I send this mail yesterday, but it doesn't appear in the list today. It has got lost somehow, So I am sending it again. If there are multiple copies I am really sorry about it. hi, I am hoping to write a doc/literal sample that does not use wsdl so that new users can use it to understand

Re: Is this a wrapped service ?

2003-08-26 Thread Dimuthu Leelarathne
applying it. I've done all I can... :-( Second, you are supposed to cast the result of the getPort(...) call to the actual interface you passed in. I'm not sure what will happen with what you have below... -Original Message-From: Dimuthu Leelarathne [mail

Re: Introspecting on Service from within RPC implementation?

2003-08-22 Thread Dimuthu Leelarathne
Juergen, As I understand your question I think you want to dynamically find out the informationlike name, port info of the web service from wsdl.If you want to find these information dynamically using a client you can find some very useful code in sample/client package. If youwant to do

Re: Is this a wrapped service ?

2003-08-22 Thread Dimuthu Leelarathne
Thomas, Cory, Mike , Anne and all, Thank you very much for your guidance and patience. Iwanted to learn wrap/lit and doc/litweb services andlooked for samples. I found some but Icouldn't find something simple.So I decided to write a simple sample for myself. That is why I'm very particular

RE: Is this a wrapped service ?

2003-08-22 Thread Dimuthu Leelarathne
of the message body. Otherwise the SOAP runtime has no idea how to type map it. Anne - Original Message - From: mailto:[EMAIL PROTECTED]Dimuthu Leelarathne To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] Sent: Monday, August 04, 2003 1:47 AM Subject: Is this a wrapped service ? I have a service

Fw: Introspecting on Service from within RPC implementation?

2003-08-22 Thread Dimuthu Leelarathne
- Original Message - From: Dimuthu Leelarathne To: [EMAIL PROTECTED] Sent: Friday, August 22, 2003 4:59 PM Subject: Re: Introspecting on Service from within RPC implementation? Juergen, As I understand your question I think you want to dynamically find out the information like name

Is this a wrapped service ?

2003-08-19 Thread Dimuthu Leelarathne
ding="UTF-8"?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Body ns1:Add xmlns:ns1="http://math.samples/" B4.1/B A2.2/A /ns1:Add/soapenv:Body/soapenv:Envelope Keep in mind that when you're using WRAPPED (or any literal encoding), yo

Doc\literal method signatures

2003-08-18 Thread Dimuthu Leelarathne
Hi all, Consider a situation where there is adoc\literal web service which accepts two(or more) complex arguments. 1)Doesaxis enginedeserialize it into two arguments? 2) Literal encoding means that the Body contents conform to a specific XML Schema, and that gives you lot of freedom.

WRAPPED services without wsdl

2003-08-03 Thread Dimuthu Leelarathne
Hi all, I'm trying to write a wrapped web service without using wsdl. I have some simple basic questions, 1. Where should I put the xml schema ? Should it be inside wsdd or should I put a reference to it in the wsdd ? 2. I read something like this written by Anne ; The main reason that

Is this a wrapped service ?

2003-08-03 Thread Dimuthu Leelarathne
I have a service similar to math in samples. I wrote a wsdd and a client (I'm not usnig wsdl or wsdl2java).If I run the TCP monitor shows the followingmessages (given bellow). My question is::: Is it a wrapped service? ?xml version="1.0" encoding="UTF-8"?soapenv:Envelope

Re: Complex Type Deserialization

2003-07-31 Thread Dimuthu Leelarathne
Jeff, Axis has a problem for deserializing arrays inside custom data types. Acutally it is listed under bug list in axis. The number of the bug is 15384. But axis is capable of deserializing arrays. So a possible workaround would be dynamically registering the array deserialiser for your

Fw: Complex Type Deserialization

2003-07-31 Thread Dimuthu Leelarathne
. - Original Message - From: Dimuthu Leelarathne To: [EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:05 AM Subject: Re: Complex Type Deserialization Jeff, Axis has a problem for deserializing arrays inside custom data types. Acutally it is listed under bug list in axis. The number

Starting document\wrapped services

2003-07-27 Thread Dimuthu Leelarathne
Hi all, I want to start learning document\wrapped services. Where can I go ? Thanx Dimuthu

MessageContext interface in JAX-RPC

2003-07-23 Thread Dimuthu Leelarathne
Hi, I was going through MessageContext interface provided in JAX-RPC. To be precise it is "javax.xml.rpc.handler.MessageContext". It contains 4 methods as containsProperty(String name), getProperty(Stirng name), getPropertyNames( ), removeProperty(String name) Now my question is what

Re: newbie

2003-07-22 Thread Dimuthu Leelarathne
Harsh, Axis user guide is a greathelp. You can also findsome simple sample clients in samples/userguide.Good luck. Dimuthu. - Original Message - From: "Harsh Nagpal" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 5:47 PM Subject: newbie Hi! I'm new to axis.

Re: newBie's SOS: HTTP Status 404 - /axis/servlet/AdminServlet

2003-07-02 Thread Dimuthu Leelarathne
Hi Tom, I think you haven't enabled the Axis Admin servlet by editing axis-root\webapps\axis\WEB-INF\web.xml. To do this you have to uncomment the servlet mapping for /servlet/AdminServlet. Dimuthu. - Original Message - From: Tom jun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Application/Web Servers supported by AXIS 1.1?

2003-07-01 Thread Dimuthu Leelarathne
Hi, For Appache Web Server and IIS Axis 1.1 surely supports. For Web Shphere and JBossprobablyyes ... maybe not. Other things I don't know. Regards, Dimuthu - Original Message - From: Agarwal, Naresh To: Axis (E-mail) Sent: Monday, June 30, 2003 1:33 PM