Re: How can I set up a REST web service that returns HTML

2009-08-12 Thread Suavi Ali Demir
Don't use Axis. Write a servlet, asp, extension dll etc that creates HTML and returns it for a get request. Ali --- On Wed, 8/12/09, shmulik s...@softov.co.il wrote: From: shmulik s...@softov.co.il Subject: How can I set up a REST web service that returns HTML To: 'Apache AXIS C User List'

Re: Axis2 - session management

2009-08-12 Thread Andreas Veithen
You need to take into account that Axis2 by default doesn't preserve CDATA sections (and converts them to text nodes). You can use the approach described in [1] to change this. Andreas [1] http://people.apache.org/~veithen/synapse/faq.html On Wed, Aug 12, 2009 at 00:39, Ramya K

Sandesha behavior

2009-08-12 Thread Makesh Rao
Hi   It is my understanding that Sandesha handles the initial RM traffic (create seq) within itself before sending the client payload that was handed over to it by the service.     This is our setup: Client Side Web Service --- My Module --- Sandesha --- Sandesha --- My

Re: Making service directly accessible

2009-08-12 Thread Moritz Mädler
We are currently using Apache httpd and Tomcat without mod_jk. Is it possible to use the mod_rewrite although? Thanks alot! Am 05.08.2009 um 12:00 schrieb Yves Glodt: On Wednesday 05 August 2009 11:34:20 Moritz Mädler wrote: Hello! thanks alot for your answer. Do you mean I should use

error sending S/MIME

2009-08-12 Thread TomazM
Env: OS: Win XP Tomcat: 6.0.18 java: 1.6.0_10-b33 axis2: 1.4.1 I have tomcat web application which use crypto and bouncy castle for signing the mail and it work well. But when I'm using same class in my soap service(axis2) I get error: javax.mail.MessagingException: IOException while sending

Re: Axis2 - session management

2009-08-12 Thread Ramya K Grama
Thanks for ur tip on the CDATA. I'll look into that and come back with any issues I may have. The other question I have is regarding storing the request xml. Where and how could that be done? I read that OperationContext and SOAPSession can be used to achieve this. But I will need some help with

[no subject]

2009-08-12 Thread turboking
Hi folks, I am generating from a wsdl Client Server Java code, by using the axis2-wsdl2code-maven-plugin. The wsdl file contains the following element: xs:complexType name=ErrorReportType xs:sequence… xs:element name=Class form=unqualified type=xs:string/… /xs:sequence /xs:complexType While

Web Service to send XML document

2009-08-12 Thread Ashish Kulkarni
Hi I have an requirement to develop a web service which will send data from files, i was thinking of creating a web service which will take input as file name, and then read data from this file, convert it into XML and send back this XML document as response. But i simply cannot send Document

Re:

2009-08-12 Thread Asen
Excuse my jumping into this, but the same would happen if the the element name is as xs:element name=string ... / and the generated 'String' extending the ADB binding will conflict with the java.lang.String class. I think this is a limitation of the ADB binding. I have not experienced this problem

WSDL2code : Compilation Failure

2009-08-12 Thread turboking
Hi folks, I am generating from a wsdl Client Server Java code, by using the axis2-wsdl2code-maven-plugin.The wsdl file contains the following element: xs:complexType name=ErrorReportTypexs:sequence...xs:element name=Class form=unqualified type=xs:string/ ... /xs:sequence/xs:complexType While

How to use Rampart for message encryption in JAX-WS web service created using Axis2?

2009-08-12 Thread Amol Naidu
How to use Rampart for message encryption in JAX-WS web service created using Axis2? I have created a web service using Axis2 1.3 and planning to use Rampart 1.3 for implementing Message Level Security. The web service will be deployed on WAS CE v2.1. For JAX-RPC style web service created

Re:

2009-08-12 Thread Andreas Veithen
That is not true. If the element is named string and part of a sequence, ADB doesn't generate anything called String, but only methods called setString and getString. There is no conflict here. If the element is a root element, ADB will indeed generate a class called String, but since it is in a

RE: error sending S/MIME

2009-08-12 Thread Martin Gainty
Illegal interception and manipulation costs businesses millions of dollars in lost revenue here AXIS Security is handled by Rampart Rampart doc states these steps for implementing BC 1.) Download bouncycastle according to your java version. You can download bouncycastle from the following

Re: Re:

2009-08-12 Thread turboking
I got this problem with axis2 1.4.1. . Axis1 doesnt seem to have this problem ,if i run the wsdlfile trough axis1, axis1 places indeed an underscore, so that the get_Class() method is beeing created. How can I solve this prob with axis2? do i need to tweak the adb framework ? if yes, how

Re: Web Service to send XML document

2009-08-12 Thread Chinmoy Chakraborty
You might find following link useful: [1]. http://www.keith-chapman.org/search/label/MTOM On Wed, Aug 12, 2009 at 8:01 PM, Ashish Kulkarni ashish.kulkarn...@gmail.com wrote: Hi I have an requirement to develop a web service which will send data from files, i was thinking of creating a web

RE: WSDL2code : Compilation Failure

2009-08-12 Thread Martin Gainty
a valid business reason to use a java reserved word from this list of java reserved words http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

WSDL2Java header creation issues

2009-08-12 Thread samanth marisetty
Hi, I am using WSDL2Java to create java stubs and want to write a client. I wanted to know if there is any argument that I need to use, to generate the headers. Thanks, Samanth.

RE: Axis2 - session management

2009-08-12 Thread Martin Gainty
//so if you setup a messageContext and then set property for each stored attribute org.apache.axis2.context.MessageContext simpleMsg = new org.apache.axis2.context.MessageContext(); simpleMsg.setProperty(my, my); simpleMsg.setProperty(dog, dog); simpleMsg.setProperty(has, has);

Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver
You can use axis client stub class methos set header to do this. Thanks, Swapna samanth marisetty wrote: Hi, I am using WSDL2Java to create java stubs and want to write a client. I wanted to know if there is any argument that I need to use, to generate the headers. Thanks,

Re: Re:

2009-08-12 Thread Asen
Andreas, I won't say it if it was not true, but I think you need lettle more backgaound in the way I have produce it. I do not judge the smartness of the ADB binding, just saying that I have encountered a problem using them and also have found a work around for it in my particular case. The deal

Axis remove mustUnderstand attribute

2009-08-12 Thread sksalver
I am using Axis to generate the stub classes and using the axis client stub method to set the header and its generating extra attribute soapenv:mustUnderstand=0 please let me know if any of you know how to remove this attribute. Thank you, Swapna -- View this message in context:

Re: Axis2 - session management

2009-08-12 Thread Andreas Veithen
To be honest, I don't really understand the idea behind your approach. Either there is something missing in your explanation, or your approach is way too complicated. Andreas On Wed, Aug 12, 2009 at 16:05, Ramya K Gramaramyakgr...@gmail.com wrote: Thanks for ur tip on the CDATA. I'll look into

Re: Re:

2009-08-12 Thread Andreas Veithen
Asen, This particular issue was fixed in AXIS2-3921. Andreas On Wed, Aug 12, 2009 at 19:52, Asenasen.m.ase...@gmail.com wrote: Andreas, I won't say it if it was not true, but I think you need lettle more backgaound in the way I have produce it. I do not judge the smartness of the ADB

Re: error sending S/MIME

2009-08-12 Thread Andreas Veithen
Tomaz, I think you need to give a bit more context/background. Andreas On Wed, Aug 12, 2009 at 15:31, TomazMtomaz.majerh...@arnes.si wrote: Env: OS: Win XP Tomcat: 6.0.18 java: 1.6.0_10-b33 axis2: 1.4.1 I have tomcat web application which use crypto and bouncy castle for signing the

Re: Re:

2009-08-12 Thread Andreas Veithen
Ike, Probably it is sufficient to upgrade to Axis2 1.5. I tested this with the current trunk, and ADB now generates a method with name get_class. Probably the fix went into the 1.5 release. Andreas On Wed, Aug 12, 2009 at 17:08, turbok...@gmx.de wrote: I got this problem with axis2 1.4.1. .  

Re: WSDL2code : Compilation Failure

2009-08-12 Thread Andreas Veithen
Martin, I guess the business reason in this case is simply that Class is a business concept... Andreas On Wed, Aug 12, 2009 at 17:50, Martin Gaintymgai...@hotmail.com wrote: a valid business reason to use a java reserved word from this list of java reserved words

Re: WSDL2Java header creation issues

2009-08-12 Thread samanth marisetty
Hi, I tried to do this. header.addChildElement(userID).addTextNode(java); header.addChildElement(userPwd).addTextNode(sun); ((Stub) portType).setHeader(header); but the problem is, I get a null response back from the service. I used a tool called

Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver
add the following where it says _resp = _call.invoke in your stub class //* inputXML = _call.getMessageContext().getRequestMessage().getSOAPPartAsString();

Re: Re:

2009-08-12 Thread Asen
Thanks. I am using standard 1.4.1 and I do not think this fix made it to it. Just tested with 1.5 and saw the fix !!! - private static synchronized String getUniqueSuffix(){ + private static synchronized java.lang.String getUniqueSuffix(){ On Wed, Aug 12, 2009 at 1:27 PM, Andreas Veithen

Axis2 Client in Weblogic: org.apache.axis2.deployment.DeploymentException

2009-08-12 Thread IamSam
Hello Members, I am using Stub generated by Axis2 1.4 (WSDL2java) in a TimerTask scheduled inside Weblogic 9.0. It works normally but some times throws this exceptions and then onwards stops working org.apache.axis2.deployment.DeploymentException: The following error occurred during schema

Re: NoClasDefFoundError

2009-08-12 Thread Charles Koppelman
This is probably related to your services.xml file. Check to make sure you're calling the right classes in there. On Tue, Aug 11, 2009 at 1:12 PM, Jack Sprat rexclaim...@yahoo.com wrote: I made a few changes to an Axis2 1.4.1 service and now get the following error when I start my Tomcat 5.5

Re: WSDL2code : Compilation Failure

2009-08-12 Thread Demetris
Hi all, does anyone know to help out with this? Can Axis 1.x generate document/literal or only rpc/encoded WSDLs? I am wondering if setting the OPERATION_STYLE_PROPERTY to document would do the trick. Thanks

WSDL generation on mobile devices

2009-08-12 Thread Demetris
Hi Dennis, a little while ago you said that generating WSDL files on mobile devices is a very difficult task because of the many configurations that J2ME presents. Can you please elaborate a bit on this notion so that I can fully understand your point of view? Not so much on the

Re: WSDL2Java header creation issues

2009-08-12 Thread samanth marisetty
Hi Swapna, Thanks for you response. **I am doing something like this: WebServiceLocator service = new WebServiceLocator(); WebServiceSoap_PortType portType = null; try { portType = service.getWebServiceSoap();

Greater than's not being escaped in content of element in response

2009-08-12 Thread twosnac
Hi, I'm using wsdl2java to implement a service. One of my elements in my response object is an xs:string. When the xml is produced from the service as a response, the '' characters are as is. An example would be: ns1:textAnswerlt;go 1 lt;go/ns1:textAnswer This was valid xml apparently (learn