SOAPMessage with attachment problem

2008-12-01 Thread Chinmoy Chakraborty
Hi All, I am creating a SOAP message using axis2 soap-api and soap-impl. First I am creating the SOAPPart and then I am adding the attachmentpart. Now, when I do soapMessage.writeTo(OuputStream out), it only writes the soap envelop and not the MIME message. Could somebody please clarify why it

RE: Client stubs NullPointer Exception

2008-12-01 Thread Chris Tinning
Thanks Marc, I should have been clearer. Yes I've used the Ant task which basically doe the same work as the command line and the code shows how I use the classes in my client. The serviceStub class in my example is equivalent to the com.my.package.MyServicesStub class you talk about.

Returning Multiple values

2008-12-01 Thread Harikrishna Vemula
Hi I have a requirement, in that some methods will return multiple values. So, which one is good whether to use Holders or to use a java bean as return type? I'm using axis 1.1 as my current product is still running on that... -- Hari Krishna Vemula

Re: Returning Multiple values

2008-12-01 Thread Chinmoy Chakraborty
You can use object array for different values if you are using axis 1.x ... Chinmoy On Mon, Dec 1, 2008 at 3:42 PM, Harikrishna Vemula [EMAIL PROTECTED]wrote: Hi I have a requirement, in that some methods will return multiple values. So, which one is good whether to use Holders or to use a

Re: Returning Multiple values

2008-12-01 Thread Harikrishna Vemula
Sorry, may be my question was not clear, the method has to return multiple variables (ex. name, location, etc...) Thanks in advance -hari On Mon, Dec 1, 2008 at 3:54 PM, Chinmoy Chakraborty [EMAIL PROTECTED]wrote: You can use object array for different values if you are using axis 1.x ...

Re: SOAPMessage with attachment problem

2008-12-01 Thread Andreas Veithen
Chinmoy, It is not writing MIME messages because the writeTo method was not implemented correctly. This should now be fixed in trunk. Andreas On Mon, Dec 1, 2008 at 09:52, Chinmoy Chakraborty [EMAIL PROTECTED] wrote: Hi All, I am creating a SOAP message using axis2 soap-api and soap-impl.

Re: Returning Multiple values

2008-12-01 Thread Chinmoy Chakraborty
You can do that using object array...e,g. Object[] obj = new Object[3]; obj[0] = name; obj[1] = location; obj[2] = address.and so on.. From the client end you can get the corresponding values from the respective location of the object array HTH Chinmoy On Mon, Dec 1, 2008 at 4:23 PM,

Re: Deployment Issue

2008-12-01 Thread Shah Asrani
Hi Amila, Thanks for you response. The link you provided seems very useful. I will work throught it and hopefully, it will resolve my issue. Marc, I am writting the java code using ConfigurationContext, AxisService and few other classes to deploy the web servcies dynamically. There is no aar

Re: SOAPMessage with attachment problem

2008-12-01 Thread Chinmoy Chakraborty
Hi Andreas, Thanks for reply. How do I get the fixed version? From where do I get latest jars? Chinmoy On Mon, Dec 1, 2008 at 4:59 PM, Andreas Veithen [EMAIL PROTECTED]wrote: Chinmoy, It is not writing MIME messages because the writeTo method was not implemented correctly. This should now

Re: SOAPMessage with attachment problem

2008-12-01 Thread Andreas Veithen
Chinmoy, You can either build it from sources (using the Subversion repository at [1]) or wait for the next build and pick up the JAR at [2]. I don't know the exact build schedule, but a new build should be available within 24 hrs. Also, be aware that axis2-saaj-api no longer exists, but has been

Dynamic Deployment, is this right way?

2008-12-01 Thread Shah Asrani
I have a scenario where I need to deploy a service dynamically in a web-app. This web app starts as a listener and I need to build the web service while it is starting. This web-app starts before the Axis2 because AxisServlet starts after the listener. So, I build the service dynamically and

RE: .NET Web Service is accessed by java program

2008-12-01 Thread Meeusen, Christopher W.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g] On Behalf Of Ferry Sumendap Sent: Sunday, November 30, 2008 10:27 PM To: axis-user@ws.apache.org Subject: Re: .NET Web Service is accessed by java program Thank you very much for all your responses. I have

RE: Returning Multiple values

2008-12-01 Thread Raghu Upadhyayula
Hi Harikrishna, My suggestion is to use a Java bean instead of an object array. Thanks Raghu From: Chinmoy Chakraborty [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 5:43 AM To: axis-user@ws.apache.org Subject: Re: Returning

RE: .NET Web Service is accessed by java program

2008-12-01 Thread Meeusen, Christopher W.
I've generated java proxy classes by just using eclipse. From the java perspective go to FILENEWOTHERWEB SERVICES WEB SERVICE CLIENT. Then the wizard will ask you for the location of the wsdl, give it that and then it will generate all the proxy classes for you. That's what I would do.

Re: Axis 1 in semi-RESTful way

2008-12-01 Thread kat kat
On Fri, Nov 28, 2008 at 9:07 PM, kat kat [EMAIL PROTECTED] wrote: On Fri, Nov 28, 2008 at 8:41 PM, keith chapman [EMAIL PROTECTED]wrote: Can you explain why you have to use Axis2 a.4 and not Axis2 a.4.1? Is Axis 1.4 ( http://ws.apache.org/axis/ ) referred as Axis2 a.4? Well, I am planning

Re: Axis2 and Tomcat 5.0.28 commons-logging-api

2008-12-01 Thread Marc F.
I have to point people out about an article written by Ceki Guuml;lcuuml; (one of the programmers, maybe the main programmer, that developed Log4j). Ceki Guuml;lcuuml; also wrote the book The complete Log4j manual. So, I think we can trust the article: http://www.qos.ch/logging/classloader.jsp

RE: Client stubs NullPointer Exception

2008-12-01 Thread Marc F.
Chris Tinning wrote: This is my code - Setup - ConfigurationContext config =ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, AXIS2_CONFIG_FILE_LOCATION); // serviceUrl of the form http://host:8080/app/services/session

Message encryption works but fault messages are send in plain text

2008-12-01 Thread Maik Hassel
Hello everyone, I have a web service using the security policy below (signed and encrypted message body), which works fine, except that my fault messages do not get encrypted. I get the missing security header exception at the client - using TCPMon I can see that indeed the fault message

Re: Problem related to ADB when transferring a byte array

2008-12-01 Thread Marc F.
Marc F. wrote: To demonstrate a possible bug in ADB Webservice I attached a zip file, containing two aar files, and the source code as well. There is a very simple service in those two aar files. Actually, this service does the same thing in both aar files, but one is XML Beans version,

Re: Message encryption works but fault messages are send in plain text

2008-12-01 Thread Prabath Siriwardena
Hi Mark; You may find the answer here[1]. Thanks regards. -Prabath [1]:http://wso2.org/forum/thread/4340#comment-7247 Maik Hassel wrote: Hello everyone, I have a web service using the security policy below (signed and encrypted message body), which works fine, except that my fault

Re: Message encryption works but fault messages are send in plain text

2008-12-01 Thread Maik Hassel
Unfortunately not as my problem is different as the one described: My encryption/descryption works fine across multiple machines and normal soap requests do get both de- and encrypted fine on both ends! It's the fault messages only that impose a problem: The server does NOT encrypt/sign

Re: Message encryption works but fault messages are send in plain text

2008-12-01 Thread Maik Hassel
Apologies - I just realized I should be more specific: The fault message I am talking about is an application generates service fault, not an axisfault thrown by the server -- Simply Efficient - IT Services, Consulting, Training Inc. We Keep Our Promises Vancouver, BC Phone: +1

Re: SOAPMessage with attachment problem

2008-12-01 Thread Chinmoy Chakraborty
Andreas, I have downloaded the axis2-saaj-SNAPSHOT.jar from the [2] link but I am getting following error: Caused by: java.lang.NoSuchMethodError: