Re: How to consume .Net ( with WSE3.0 security enabled ) web services using Java Client(Axis 1.3)

2008-07-13 Thread Xinjun Chen
Hi Santosh, You can use WSS4J directly instead of Rampart. http://ws.apache.org/wss4j/axis.html http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx Regards, Xinjun On 7/5/08, sh_santosh [EMAIL PROTECTED] wrote: Dear all, Please refer these link :

[Axis2] Unable to set socket timeout

2007-11-19 Thread Xinjun Chen
I am trying to configure the default socket timeout configuration from 3 milliseconds to 6 milliseconds for my Axis2 client, following the documentation (http://ws.apache.org/axis2/1_2/http-transport.html). However, this configuration doesn't take effect. My client still receives AxisFault

Re: [Axis2] Unable to set socket timeout

2007-11-19 Thread Xinjun Chen
Hi Julio, Thanks for your reply. I have managed to set socket timeout. Till now, I have tried the following. 1. Configure the following in axis2.xml TransportSender http and https: parameter name=SO_TIMEOUT locked=false6/parameter parameter name=CONNECTION_TIMEOUT

[Axis2] Timeout Configuration

2007-10-18 Thread Xinjun Chen
Hi, I am using Axis2 1.2 as a web service client. I have some question regarding the configContextTimeout. I am going to set the socket timeout value to 60 seconds instead of the default 30 as the service provider sometimes return response in 40 seconds. Inside axis2.xml, I added the parameter

Re: [Axis2 1.2] Axis2 attachment interoperability???

2007-10-17 Thread Xinjun Chen
Hi Thilina, What do you mean Axis2 preserve the order? I tried the attachment test in Axis2 1.2. At that time, I can see that the order of the attachment is not preserved, at least by default the order is not preserve. I encountered scenarios that I even encountered scenarios that I retrieved

Re: [Axis2] Exception handling, differentiating server down, service unavailable, and normal business logic error

2007-10-15 Thread Xinjun Chen
I think this issue should be a common issue. Has anyone encountered this problem before? Regards, Xinjun On 10/8/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Axis2 users, I am writing a web service client using Axis2. In the code, I am trying to handle the exception. If the exception is due

Re: [Axis2 1.2] Axis2 attachment interoperability???

2007-10-15 Thread Xinjun Chen
Hi Skudx, I suggest you handle MessageContext directly if you want to solve the attachment interoperability issue. The MessageContext give you flexibility to handle your attachments. Axis2 recommend the use of start parameter but doesn't mandate it. I have tested that. But as for preserving the

[Axis2] Exception handling, differentiating server down, service unavailable, and normal business logic error

2007-10-08 Thread Xinjun Chen
Hi Axis2 users, I am writing a web service client using Axis2. In the code, I am trying to handle the exception. If the exception is due to server down, web service unvailable, or any other connectivity problem, I will trigger another invocation using another URL. If the exception is due to

Re: [Axis2 1.2] Axis2 attachment interoperability???

2007-06-13 Thread Xinjun Chen
Hi Thilina, Thank you for the detailed reply. I have read through the SOAP Messages with Attachments specification. You are right that start parameter in Content-Type is recommended. I also looked through the Axiom code Attachments#getSOAPPartContentID(). It seems that Axiom assumes that every

Re: Problems trying to send XML as a String to a web service?

2007-06-13 Thread Xinjun Chen
The solution I adopted is to use CDATA instead of string. You don't need to do escaping by yourself. Regards, Xinjun On 6/14/07, Chad DeBauch [EMAIL PROTECTED] wrote: Another approach I have taken is have the service accept a string like you originally did but encode it in UTF-8 encoding.

[Axis2 1.2] Axis2 attachment interoperability???

2007-06-12 Thread Xinjun Chen
Hi Axis2 users and developers, I am not sure whether I should consider the problem I encountered as Axis2 attachment interoperability. I have posted the question in another thread. But I hope this thread can explain my problem clearer. The following is the problem I encountered: Currently I

[Axis2 1.2] SOAP Message goes into AttachmentMap - a bug or a desirable change

2007-06-11 Thread Xinjun Chen
Hi, I have a web service receives attachment file from clients and sends attachment file to clients. Previously it assume AttachmentMap only contains attachment files and SOAP message is excluded. When I use XML Exchanger Lite as client to invoke the web service, the attachment is received by

Re: [Axis2 1.2] SOAP Message goes into AttachmentMap - a bug or a desirable change

2007-06-11 Thread Xinjun Chen
I use TCP monitor to view the contents on the wire. They seems correct. I have attached both the server and the client programs. Could anyone help me with the problem? Regards, Xinjun On 6/12/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I have a web service receives attachment file from

Re: Help with SwA

2007-05-26 Thread Xinjun Chen
I use some proprietary information. From the request url my custom message receiver can decide which service should be invoked. Regards, Xinjun On 5/26/07, Thilina Gunarathne [EMAIL PROTECTED] wrote: try this... outMessageContext.setProperty(Constants.Configuration.ENABLE_MTOM,

Re: Help with SwA

2007-05-25 Thread Xinjun Chen
I have a related question regarding SwA support. In the axis2.xml, if I set enableSwA to true, my response can arrive at the client with attachment, but then all the requests (no matter there is any attachment) are considered as multipart requests and I get Bad Request error. The Bad Request

Re: Help with SwA

2007-05-25 Thread Xinjun Chen
I don't have service.xml. I write a custom MessageReceiver to process the request and response MessageContext. In this way, is the way you suggested still workable? Regards, Xinjun On 5/25/07, Thilina Gunarathne [EMAIL PROTECTED] wrote: The following is the code snippet where I try to enable

Re: [Axis2 1.2] Java2WSDL with support of SwA and/or MTOM

2007-05-14 Thread Xinjun Chen
Hi Thilina, Thanks for your reply. I will try MTOM also. Regards, Xinjun On 5/12/07, Thilina Gunarathne [EMAIL PROTECTED] wrote: Hi, I have make enabled SwA support in Axis2. It seems that I cannot enable both SwA and MTOM at the same time. No it's not possible... MTOM will get priority if

[Axis2 1.2] javax.servlet.ServletException: multiple points

2007-05-14 Thread Xinjun Chen
I have upgraded Axis2 in my application from 1.1.1 to 1.2. Previvously, I only upgraded the lib and the axis2.xml configuration file. The services and modules directories are kept unchanged (1.1.1). Today I updaged modules and services directories, then I get the following exceptions:

Re: [Axis2 1.2] javax.servlet.ServletException: multiple points

2007-05-14 Thread Xinjun Chen
The reason is found. Though I modified the mar.lists, but I didn't delete addressing-1.1.1.marfrom the directory. Since mar.lists cannot exclude the mar files not included, why is the mar.lists file introduced into this directory? Regards, Xinjun On 5/14/07, Xinjun Chen [EMAIL PROTECTED] wrote

Re: [Axis2] AXIOM Custom Serializer/Deserializer

2007-05-08 Thread Xinjun Chen
. Previously I think the toStringWithConsume and toString will differ in terms of performance since one is cached but the other is not. This difference should not cause a program to run incorrectly. Regards, Xinjun On 5/4/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Glen, Thanks for the pointer. I

[Axis2 1.2] Java2WSDL with support of SwA and/or MTOM

2007-05-08 Thread Xinjun Chen
Hi, I am trying to write a web service with attachment support. The method signature is as follows: String uploadFile(String userID, String fileName) {} When the client invoke this uploadFile operation, he/she will upload a file whose file name is fileName. The implementation of uploadFile send

[Axis2] AXIOM Custom Serializer/Deserializer

2007-05-03 Thread Xinjun Chen
Hi, I wrote a sample custom serializer/deserializer to serialize an object. When I use a standalone program to test the serializer, it works fine. But when I deploy the serializer as part of a web service and and invoke the web service through a SOAP request, I got the following null pointer

Re: [Axis2] AXIOM Custom Serializer/Deserializer

2007-05-03 Thread Xinjun Chen
-3.2.0? Regards, Xinjun On 5/4/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Dims, The same soap request works with my standalone program. The same method toObject runs correctly gives correct result. Regards, Xinjun On 5/3/07, Davanum Srinivas [EMAIL PROTECTED] wrote: Xinjun, can you run

Re: [Axis2] AXIOM Custom Serializer/Deserializer

2007-05-03 Thread Xinjun Chen
-3.2.0? Regards, Xinjun On 5/4/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Dims, The same soap request works with my standalone program. The same method toObject runs correctly gives correct result. Regards, Xinjun On 5/3/07, Davanum Srinivas [EMAIL PROTECTED] wrote: Xinjun, can you run

Re: [Axis2] Eclipse Plugin for Code Gen

2007-04-19 Thread Xinjun Chen
* xs:element name=Subtract type=ns:Subtract / *generated? This element is not referenced at all. In my opinion, the java class Subtract should cause the generation of a complexType Subtract only, but no Subtract element should be generated. Regards, Xinjun On 4/19/07, Xinjun Chen [EMAIL PROTECTED] wrote

[Axis2] Eclipse Plugin for Code Gen

2007-04-18 Thread Xinjun Chen
Hi all, I have tried using Eclipse Plugin to generate WSDL from Java. It is very easy to use. But I have that I have no way to specify the service style. If I want to make a RPC literal style WSDL, can I still use the plugin or must I turn to the Java2WSDL command line tool? Regards, Xinjun

Re: How to get parameter name of a method in a class compiled with -g option

2007-04-02 Thread Xinjun Chen
Hi Ognjen, Thanks for the info. I was trying to find how Axis 1.4 extracts the parameter name. But anyhow your answer also give the similar effect. I looked into the ClassReader in that package. It does something similar to the BCEL. I will directly use BCEL. Regards, Xinjun On 3/30/07,

Re: How to make SOAP messages smaller?

2007-03-30 Thread Xinjun Chen
Differential encoding indeed has better performance. But it is not really compressing SOAP message. Instead, it reduces both payload data and overhead in the SOAP message. But as far as I know, currently no popular SOAP toolkit supports differential encoding. Regards, Xinjun On 3/29/07,

Re: [Axis2] AXIOM or JBIX

2007-03-29 Thread Xinjun Chen
Hi Jose, Could you kindly share how XMLBean handles xsd:anyType? Thanks. On 3/26/07, José Antonio Sánchez [EMAIL PROTECTED] wrote: Not exactly. Xmlbeans can generate classes for every possible schema automatically. JiBX only generates both classes and mapping description for a limited set of

Re: [Axis2] AXIOM or JBIX

2007-03-29 Thread Xinjun Chen
Hi Dennis, I am trying to expose existing EJBs as web services. What I want to do is as follows: 1. Receive an EJB Remote interface and the related domain object classes, and generate data binder classes for the Remote interface methods. 2. Generate wsdl for the EJB Remote interface. 3. When

Re: [Axis2] AXIOM or JBIX

2007-03-29 Thread Xinjun Chen
support in org.apache.axis2.rpc.receivers.ejb . There was a tutorial in the works but it doesn't seem to be in svn. Another option which I often do is simply create the service, and inside that do local ejb calls. HTH, Robert On 3/29/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Dennis, I am

How to get parameter name of a method in a class compiled with -g option

2007-03-27 Thread Xinjun Chen
Hi Axis users and developers, This question is about Axis 1.4. I know Axis can extract the parameter names of a method in a class compiled with -g option. During Java2WSDL, Axis does extract the parameter names to generate WSDL. Does anyone know how Axis achieve this? Regards, Xinjun

Axis 1.4 Java2WSDL

2007-03-27 Thread Xinjun Chen
Hi Axis users and developers, I cannot understand one thing about Axis 1.4's Java2WSDL. When I use Java2WSDL, my class file is a concrete class compiled with -g option. Then in the generated WSDL, I now do not see those meaningless in0, in1, and etc. Thanks Axis developers! But I don't

[Axis2] Upgrade from 0.94 to 1.1.1 causes misfunction of SAAJUtil.getDocumentFromSOAPEnvelope

2007-02-02 Thread Xinjun Chen
Hi, I just update the Axis2 in my application from 0.94 to 1.1.1. After update, I the the following error: java.util.NoSuchElementException at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1083) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java :111) at

Re: [Axis2] Upgrade from 0.94 to 1.1.1 causes misfunction of SAAJUtil.getDocumentFromSOAPEnvelope

2007-02-02 Thread Xinjun Chen
Does the classpath order cause the problem? Is there any more information required? I need to spend much time on the downgrade, could anyone suggest how can I solve the problem? Regards, Xinjun On 2/2/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I just update the Axis2 in my application from

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-12 Thread Xinjun Chen
would suit you better. The DOM approach will be very slow indeed compared to using a STAX based binding framework. The DOM over OM is in axiom-dom-**.jar. This is an implementation of DOM that uses Axiom underneath, and so can let you switch between them. Paul On 1/12/07, Xinjun Chen [EMAIL PROTECTED

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-12 Thread Xinjun Chen
. Please see here [1]. Thanks, Ruchith [1] http://www.ftponline.com/javapro/2003_06/online/namespace_kjones_06_23_03/ On 1/12/07, Ruchith Fernando [EMAIL PROTECTED] wrote: Hi Xinjun, On 1/11/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Ruchith, setNamespaceAware to the original

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-12 Thread Xinjun Chen
it seems to me that you should simply look at the POJO examples in the Axis2 samples. After all I think that is what you are doing. Paul On 1/12/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Paul, Thank you for your reply. Before I chose Castor, I have already looked into JIBX. JIBX also enable

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-12 Thread Xinjun Chen
it seems to me that you should simply look at the POJO examples in the Axis2 samples. After all I think that is what you are doing. Paul On 1/12/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Paul, Thank you for your reply. Before I chose Castor, I have already looked into JIBX. JIBX also enable

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-11 Thread Xinjun Chen
could just code to OM. Or if you already have lots of DOM code then there is also a version of DOM that uses OM underneath. Paul On 1/11/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Ruchith, setNamespaceAware to the original DocumentBuilderFactory solve the problem partially. Now the DOM

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-10 Thread Xinjun Chen
I believe conversion between DOM Element and OMElement is quite general. Could anyone suggest a good way to do the conversions correctly? On 1/10/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I am trying to convert a DOM Element to OMElement using the following toOM code in org.apache.axis2

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-10 Thread Xinjun Chen
On 1/10/07, Xinjun Chen [EMAIL PROTECTED] wrote: I believe conversion between DOM Element and OMElement is quite general. Could anyone suggest a good way to do the conversions correctly? On 1/10/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I am trying to convert a DOM Element

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-10 Thread Xinjun Chen
is *namspaceAware*. Please see here[1] for an example. Thanks, Ruchith [1] http://rafb.net/p/DDc2NH37.html On 1/10/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I am trying to convert a DOM Element to OMElement using the following toOM code in org.apache.axis2.security.util.Axis2Util

Re: [Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-10 Thread Xinjun Chen
is *namspaceAware*. Please see here[1] for an example. Thanks, Ruchith [1] http://rafb.net/p/DDc2NH37.html On 1/10/07, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I am trying to convert a DOM Element to OMElement using the following toOM code in org.apache.axis2.security.util.Axis2Util

[Axis2] Namespace issue during conversion from DOM Element to OMElement

2007-01-09 Thread Xinjun Chen
Hi, I am trying to convert a DOM Element to OMElement using the following toOM code in org.apache.axis2.security.util.Axis2Util. public static OMElement toOM(Element element) throws Exception { try { * org.apache.xml.security.Init.init(); * ByteArrayOutputStream os = new

Re: Axis https/SSL Server Certificate Validation question

2006-11-23 Thread Xinjun Chen
Axis2 uses HTTPClient, so you can overwrite the https protocol by registering your own SSLSocketFactory. Refer http://jakarta.apache.org/commons/httpclient/sslguide.html for details. In your SSLSocketFactory, override the private static TrustManager[] createTrustManagers(final KeyStore keystore)

Re: Trying to incorporate axis2 1.1 to my existing Web app

2006-11-17 Thread Xinjun Chen
I am wondering whether you will face license issue and copyright issue if you are trying to do so. It seems that you are trying to proprietarize Axis2. The so-called your-web-application is only meaningful if you have some more functionalities than Axis2. Otherwise, why not just use Axis2

Re: [Axis2] Is Axis2 1.1 working for you?

2006-11-16 Thread Xinjun Chen
As a first step, you need to click the Ask service link to see whether you can get the WSDL. Have you ever tried to deploy the Axis2-1.1 as axis2 into tomcat? Regards, Xinjun On 11/17/06, Yang Zhonghua (Dr) [EMAIL PROTECTED] wrote: Thanks, Sanjiva. But I deployed on tomcat/axis2-1.1 which

Re: Converting from UTF-8 to ISO-8859-I with Axis2 and Java

2006-11-01 Thread Xinjun Chen
Hi, I have the similar problem. I am usingthe Axis2 client, when the end service sendRIGHT SINGLE QUOTATION MARK(U+2019, or 0xE2 0x80 0x99, or e28099). From Ethereal, I can see the bytes e2 80 99. However,Axis2 just convert it to question mark (0x3F). I am not sure whether it is also caused by

Re: Converting from UTF-8 to ISO-8859-I with Axis2 and Java

2006-11-01 Thread Xinjun Chen
is already 0x3F (?). Regards, Xinjun On 11/1/06, Manuel Mall [EMAIL PROTECTED] wrote: On Wednesday 01 November 2006 20:27, Xinjun Chen wrote: Hi, I have the similar problem. I am using the Axis2 client, when the end service send RIGHT SINGLE QUOTATION MARK (U+2019, or 0xE2 0x80 0x99, or e28099

Re: Converting from UTF-8 to ISO-8859-I with Axis2 and Java

2006-11-01 Thread Xinjun Chen
Hi Davanum, I have create a simple function public void test3BytesString() throws Exception { runtest(Three Bytes: \u2019); } inside the CharacterEncodingTest.java class. I run the JUnit testing,there is no failuresor errors. I am now really confused. From my previous email, it seems that

Axis2 Encoding

2006-10-30 Thread Xinjun Chen
Hi, Could anyone tell me how to configure the Axis2 encoding type? Regards, Xinjun

Re: Axis2 Encoding

2006-10-30 Thread Xinjun Chen
encoding.AnneOn 10/30/06, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, Could anyone tell me how to configure the Axis2 encoding type? Regards, Xinjun- To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL

Axis invocation error java.lang.ExceptionInInitializerError or java.lang.NoClassDefFoundError

2006-10-08 Thread Xinjun Chen
I encountered a very strange problem. My web service previously can work. A few days ago, I changed something in the WSDL so that the return type of an operation will change to OperationResponse format. However, now when I invoke the operation, I get either of the two following exceptions. If

Re: Axis invocation error java.lang.ExceptionInInitializerError or java.lang.NoClassDefFoundError

2006-10-08 Thread Xinjun Chen
Just found the immediate reason, one resource bundle is not found because previous build file does not copy the properties file into the lib jar file. Regards, Xinjun On 10/9/06, Xinjun Chen [EMAIL PROTECTED] wrote: I encountered a very strange problem. My web service previously can work

[WS-Addressing] Get user-defined resource properties from the ReferenceProperties element

2006-10-02 Thread Xinjun Chen
I could not get any response from theGlobus maillist regarding the WS-Addressing question I asked before. Hopefully someone in the Axis maillist canenlighten me on that. As we all know, when we WS-Addressing, we can pass the resource key of the target service resource instancein

[Axis2] Migrate from Axis2 0.94 to Axis2 1.0

2006-09-27 Thread Xinjun Chen
Hi, I have an application which works fine with Axis2 0.94. Yesterday I tried to migrate the Axis2 lib to 1.0. Then I get some error messages I cannot understand. The error message is: unknown attr1.3.6.1.4.1.311.17.1 org.apache.ws.security.WSSecurityException: Signature creation failed (Cannot

Re: [Axis2] Migrate from Axis2 0.94 to Axis2 1.0

2006-09-27 Thread Xinjun Chen
and comments. Regards, Xinjun On 9/27/06, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I have an application which works fine with Axis2 0.94. Yesterday I tried to migrate the Axis2 lib to 1.0. Then I get some error messages I cannot understand. The error message is: unknown

Re: [Axis2] Migrate from Axis2 0.94 to Axis2 1.0

2006-09-27 Thread Xinjun Chen
Hi Anne, Thank you for the info. I am very glad to hear about that. Regards, Xinjun On 9/27/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: I suggest you wait for Axis2 1.1, which should be released next week.On 9/27/06, Xinjun Chen [EMAIL PROTECTED] wrote: More error messages

[Aixs2] How to make Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope

2006-09-25 Thread Xinjun Chen
Hi, I am doing a project which do the signature for SOAP messages using wss4j. I have a handler to do the signature. Previously when using Axis, Ican dothe following: public void execute(final javax.xml.soap.SOAPEnvelope envelope) { org.w3c.dom.Document doc =

Re: [Aixs2] How to make Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope

2006-09-25 Thread Xinjun Chen
, Xinjun On 9/26/06, Ruchith Fernando [EMAIL PROTECTED] wrote: Hi Xinjun,Please see my comments:On 9/26/06, Xinjun Chen [EMAIL PROTECTED] wrote: Hi, I am doing a project which do the signature for SOAP messages using wss4j. I have a handler to do the signature. Previously when using Axis, I can

Re: Client .net using WSE to access Secure Web Service implemeted using Axis 1.4

2006-09-13 Thread Xinjun Chen
Hi Jose, I am trying the reverse. Have you done that? Regards, Xinjun On 9/12/06, José Ferreiro [EMAIL PROTECTED] wrote: Hello,Does/Did anyone program/ed a .net client using WSE to access a secure web service done with Axis 1.4?If you have a link with some example, or some related help, it

Re: [Axis2] Motivation of RESTful web services support

2006-09-03 Thread Xinjun Chen
It is very exciting to see you expert with different ideas discussing the issues here :-). I have some misconception about REST. I had thought only POST can be used if there are some parameter info to transmit. In fact, I am still not quite sure how to transmit parameter info if GET is used.

Re: [Axis2] Motivation of RESTful web services support

2006-09-01 Thread Xinjun Chen
Anne, Thank you very much! I really appreciate your responsive and insightful explanations, arguments, and pointers. I am also very excited to know the REST debate. Unique interface is my first impression of REST, like the HTTP protocol. Could I ask you another question on REST? Is it a must

[Axis2] Motivation of RESTful web services support

2006-08-31 Thread Xinjun Chen
Hi, I read through the Axis2 documentation about RESTful support from http://ws.apache.org/axis2/1_0/rest-ws.html. I have some questions here. 1. What's the motivation of RESTful web services support in Axis2? If the efficiency the main motivation of REST spport? 2. If the client send a

Re: intermediary adding soap header element breaking signature verification

2006-08-31 Thread Xinjun Chen
Hi akkachotu, This is very weird. Have you managed to solve the problem? Since your signed info does not contain the whole header, it seems to be ok. Have you tried to append the intermediary header after the wsse:Security header? Regards, Xinjun On 8/13/06, akkachotu [EMAIL PROTECTED]

Re: web services multithreading

2006-07-27 Thread Xinjun Chen
a servlet. You never synchronize the doGet() and doPost() methods, right? - Junaid -Original Message- From: Xinjun Chen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 11:28 AM To: axis-user@ws.apache.org Subject: Re: web services multithreading Jeffrey, Thank you for your

Re: web services multithreading

2006-07-26 Thread Xinjun Chen
: Xinjun Chen [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 11:16 AM To: axis-user@ws.apache.org Subject: Re: web services multithreading Hi Christopher, Thank you very much for the detailed answers! :-) I have one more follow on question: Assume the service scope is set as application

Re: web services multithreading

2006-07-24 Thread Xinjun Chen
Hi Christopher, Thank you very much for the detailed answers! :-) I have one more follow on question: Assume the service scope is set as application, if there are multiple clients invoke the same operation. How will this be done? According to the meaning of application scope, then no

web services multithreading

2006-07-22 Thread Xinjun Chen
I am wondering how web services are scalable. Let's assume there is one webservice ServiceA with an operation OperationA deployed in Axis1.2.1. 1. At the runtime, if there are multiple clients invoke the OperationA concurrently, how it will be done internally? 2. I think there will be only one

Re: [Axis2] [subclipse] check out Axis2 SVN source code

2006-06-29 Thread Xinjun Chen
plugin? What's suggestions on this? Regards, Xinjun On 6/29/06, Xinjun Chen [EMAIL PROTECTED] wrote: Hi I am trying to check out Axis2 SVN source code but failed. I have installed subclipse plugin into my Eclipse following the instruction at page http://subclipse.tigris.org/install.html. However

Re: [Axis2] [subclipse] check out Axis2 SVN source code

2006-06-29 Thread Xinjun Chen
Sorry, it is a typo. It is trunk. Regards, Xinjun On 6/29/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, /repos/asf/webservices/axis2/truck/java'' - shouldn't 'truck' become trunk here? Seems to be a typo ? On 6/29/06, Xinjun Chen [EMAIL PROTECTED] wrote: Forget to mention my system info

Re: passing objects of subtypes

2006-06-28 Thread Xinjun Chen
Hi Martin, I inspected your WSDL. My finding is that: The operation int calculateBlueBookValue(VehicleDescription param0) only use VehicleDescription as input, and it has nothing to do with VehicleType defined in the WSDL. Is there any missing link between VehicleDescription and VehicleType in

Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread Xinjun Chen
Hi Deepal, I encountered the same problem as I posted in Joshua's thread on operation inheritance. Could you also have a look at that thread? Could you tell me the minimal modules I need to rebuild? only codegen and wsdl or all the rest? Regards, Xinjun On 6/28/06, Deepal Jayasinghe [EMAIL

Re: passing objects of subtypes

2006-06-28 Thread Xinjun Chen
As far as I know, xsi:type attribute is only added for rpc style service invocation. I never see xsi:type in document style service. If Axis2 do this way, it means the serializer will add the xsi:type attribute. So does it mean that the serializer/deserializer is Axis2 dependent? By the way,

[Axis2] [subclipse] check out Axis2 SVN source code

2006-06-28 Thread Xinjun Chen
Hi I am trying to check out Axis2 SVN source code but failed. I have installed subclipse plugin into my Eclipse following the instruction at page http://subclipse.tigris.org/install.html. However, when I try to create a new repository location

Re: Axis2 http proxy setting [Axis2 transport error : Not Implemented]

2006-06-11 Thread Xinjun Chen
name=Transfer-Encoding locked=falsefalse/parameter /transportSender ... Thank you Saminda Xinjun Chen wrote: Hi, I get some problem with the proxy setting in Axis2. Even though I set the HttpTransportProperties and ProxyProperties, the Axis2 reports transport error. The code snippet

Re: Axis2: Not Implemented Exception

2006-06-11 Thread Xinjun Chen
(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10); Thank you Saminda Xinjun Chen wrote: Hi I am trying to set proxy for an Axis2 client. The code snippet is as follows: HttpTransportProperties htp = new HttpTransportProperties(); httpProxyProperties = htp.new ProxyProperties

Axis2: Not Implemented Exception

2006-06-09 Thread Xinjun Chen
Hi I am trying to set proxy for an Axis2 client. The code snippet is as follows: HttpTransportProperties htp = new HttpTransportProperties();httpProxyProperties = htp.new ProxyProperties();

Axis2 http proxy setting [Axis2 transport error : Not Implemented]

2006-06-09 Thread Xinjun Chen
Hi, I get some problem with the proxy setting in Axis2. Even though I set the HttpTransportProperties and ProxyProperties, the Axis2 reports transport error. The code snippet is as follows: HttpTransportProperties htp = new HttpTransportProperties(); ProxyProperties httpProxyProperties =

Re: [Axis2] Http Basic Authentication

2006-06-08 Thread Xinjun Chen
Hi Saminda, I am trying to set proxy for an Axis2 client. The code snippet is as follows: HttpTransportProperties htp = new HttpTransportProperties();httpProxyProperties = htp.new ProxyProperties();

Re: [Axis2] Is this a ?wsdl bug

2006-06-01 Thread Xinjun Chen
Hi Ajith, Thank you very much. Could you tell me when the bug-fixed version 1.0 will be released? I need to consider when to upgrade to 1.0. Regards, Xinjun On 6/1/06, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi,This is not there any more. Please check with the 1.0 releaseOn 6/1/06, Xinjun Chen

[Axis2] Is this a ?wsdl bug

2006-05-31 Thread Xinjun Chen
I have deployed some sample secure service in Axis2 in Tomcat. When I try to generate WSDL for the service, I find that the soap address locationis incorrect. Thequery URL is https://my-ip:8443/axis2/services/SecureService3?wsdl The soap address location is

avoid call.registerTypeMapping in the client codes

2006-05-28 Thread Xinjun Chen
Hi axis fans, I have a question on how to avoid call.registerTypeMapping in client program when the client is calling a service using Axis client Call API. I am working on dynamic invocation on RPC style web services using Axis Client API. (Currently I still cannot use Axis Client API for

null Address problem

2006-05-28 Thread Xinjun Chen
Hi Axis fans, I have developed a RPC style web service which contains an operation to create a WSRF resource. The return is an EndpointReferenceType object. The SOAP response is as the follows.

Re: String[] for xsd:anyType with axis1.2.1

2006-05-28 Thread Xinjun Chen
Hi Ravi, I have also run into No deserializer for... exception before, but yours is a little different from mine.After look into your wsdl, I thinkthe problem lies in the value element.Your client does not know how to deserialize the returned element value valueone/value valuetwo/value /value

Re: String[] for xsd:anyType with axis1.2.1

2006-05-28 Thread Xinjun Chen
Hi Ravi, would you like to modify the WSDL element name=value nillable=truetype=xsd:anyType / to element name=value nillable=truetype=xsd:anyType[] / and then use WSDL2Java to generate the client stubs? In my previous email, I overlooked your statement thattypes ofObject in factare primitive

dynamic invocation on document style web services

2006-05-27 Thread Xinjun Chen
Hi, Can anybody clarify this question on dynamic invocation on document style web services? Previously I have the impression that for document style web services developed and deployed in Axis 1.2 RC2 (The axis version used by GT4), I have no way to use dynamic invocation. I only succeeded in

Re: String[] for xsd:anyType with axis1.2.1

2006-05-25 Thread Xinjun Chen
Hi Ravi, Can you provide relevant part of WSDL and client code? Regards, Xinjun On 5/25/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: Perhaps you need Object[] rather than Object. Anne On 5/25/06, Hariharasudhan.D Dhakshinamoorthy [EMAIL PROTECTED] wrote: Ravi , i too have the same

Re: envelope prefix issue

2006-05-22 Thread Xinjun Chen
Hi Razvan, What I can think of is to insert a Handler in the request flow. Inside the Handler, you can modify the message. If you are using Axis2, you can write a module or a handler to do that. I believe this will be much easier than customize Axis or Axis2. Axis gurus, please correct me if I

Re: passing XML document as input parameter

2006-05-21 Thread Xinjun Chen
Hi Dies, Thank you very much for sharing this with me. :) This is really very helpful to me. Regards, Xinjun On 5/19/06, Dies Koper [EMAIL PROTECTED] wrote: Hello Xinjun,Forgot to mention in my previous reply, but you could use an xsd:any type:complexType name=ctype

Re: passing XML document as input parameter

2006-05-21 Thread Xinjun Chen
/06, Dies Koper [EMAIL PROTECTED] wrote: Hello Xinjun,Just use a String type field.Axis will replace the ''s and ''s in your XML with 'lt;'s resp. 'gt;'s, making it valid XML content.Regards,DiesSuavi Ali Demir wrote: Why can you not embed xml inside xml? Regards, Ali Xinjun Chen [EMAIL PROTECTED

Re: passing XML document as input parameter

2006-05-18 Thread Xinjun Chen
and ''s in your XML with 'lt;'s resp. 'gt;'s, making it valid XML content.Regards,DiesSuavi Ali Demir wrote: Why can you not embed xml inside xml? Regards, Ali Xinjun Chen [EMAIL PROTECTED] wrote: As far as I know, I cannot embed XML inside XML, so how can I pass an XML document as an input

passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
As far as I know, I cannot embed XML inside XML, so how can I pass an XML document as an input parameter to a web service? Could anyone provide some pointer on that? Regards, Xinjun

Re: passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
all the tags will be changed to gt; and lt;, right? Regards, Xinjun On 5/17/06, Suavi Ali Demir [EMAIL PROTECTED] wrote: Why can you not embed xml inside xml? Regards, Ali Xinjun Chen [EMAIL PROTECTED] wrote: As far as I know, I cannot embed XML inside XML, so how can I pass an XML

Re: passing XML document as input parameter

2006-05-17 Thread Xinjun Chen
content.Regards,DiesSuavi Ali Demir wrote: Why can you not embed xml inside xml? Regards, Ali Xinjun Chen [EMAIL PROTECTED] wrote: As far as I know, I cannot embed XML inside XML, so how can I pass an XML document as an input parameter to a web service? Could anyone provide some pointer

Re: Multi-threaded java client

2006-05-14 Thread Xinjun Chen
1.Normally threads running ona machine with a single IP should use the sametruststore. You can import a trusted CA into a single truststore. 2. If you have no choice but to use different truststores for different threads, you need to customized your SSLSocketFactory instead of using the default

HTTPS web services

2006-05-08 Thread Xinjun Chen
I have deployed a sample web service in Axis 1.2.1 in Tomcat 5.5. The HTTPS configuration of Tomcat 5.5 is already in place. The client cert is already imported into the server's trust store, and the server cert is already imported into the client's truststore. As long as I set // currently

Re: [Axis2] OMElement question

2006-04-29 Thread Xinjun Chen
I have the same as Michele. From my understanding, if I use signature ReplyObject fooMethod(RequestObject arg) then in the services.xml, I need to specify the message receiver as org.apache.axis2.rpc.receivers.RPCMessageReceiver , and in the service implementation class, ReplyObject will be the

WSDL port and binding - are they one-to-one mapping

2006-04-18 Thread Xinjun Chen
In WSDL we may have multiple bindings for a single portType. Every service may have multiple ports. Is the mapping from port to binding is one to one? Regards, Xinjun

  1   2   >