Re: [Axis2] Release planning and Hackathon forAxis2 1.4 Release - JAXWS Documentation / Samples

2008-03-24 Thread Deepal Jayasinghe
Hi Dims, That is a good idea , I also try to stay in the IRC as much as I can. -Deepal Team, How about we take a day to focus on the release getting stuff running on Tomcat/Axis2? We are especially lacking in samples and documentation for JAXWS. Basically we can hang out on IRC, and work join

AxisFault: SOAP message MUST NOT contain a Document Type Declaration(DTD)

2008-03-24 Thread Appasamy Thirugnana
Pl help me out to find when this error will occur adn whats the solution, In axis2/Java i am getting this error 2008-03-25 12:20:26,887:ERROR[SysLog ]:2008.03.25.12.20.26:887 E [2060 ] org.apache.axis2.AxisFault: SOAP message MUST NOT contain a Document Type Declaration(DTD) org.apache.axis2.A

Re: [Axis2] 1.4 RC2

2008-03-24 Thread Davanum Srinivas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, looks like nuked it during copy...please try now it's here http://people.apache.org/~dims/axis2-1.4/RC2/m2-repo/org/apache/ws/commons/schema/XmlSchema/640087/ - -- dims Leon Searl wrote: | Hi Dims, | | I'm no expert on the m2 repository but

Re: What might cause "Unexpected subelement return"?

2008-03-24 Thread Anne Thomas Manes
When you modify the WSDL, specify type="ns0:Person" in place of the type="xs:anyType". (See the recommended fix in my last response) Anne On Mon, Mar 24, 2008 at 9:01 PM, Nate Roe <[EMAIL PROTECTED]> wrote: > > Okay. I will file these two issues tomorrow morning. I will also attach a > zip of

RE: What might cause "Unexpected subelement return"?

2008-03-24 Thread Nate Roe
Okay. I will file these two issues tomorrow morning. I will also attach a zip of the files I used to recreate the issue. How can I work around an improperly generated xsi:type though? Modifying the WSDL by hand may solve the incorrect WSDL, but I'm not sure how to approach the runtime issue.

Re: What might cause "Unexpected subelement return"?

2008-03-24 Thread Anne Thomas Manes
There are two different problems: - one is in the WSDL generation for List (not specifying maxOccurs="unbounded" and specifying xs:anyType rather than Person) - the other is at runtime (not generating the proper xsi:type attribute) Please file two JIRAs. Thanks, Anne On Mon, Mar 24, 2008

RE: What might cause "Unexpected subelement return"?

2008-03-24 Thread Nate Roe
Anne, Interesting. My service is a POJO returning a List. The WSDL is generated by Axis2 automatically on deployment. Here is the relevant method from the POJO service: public List getPeople(int numPeople) { List list = new LinkedList(); for (i

Re: What might cause "Unexpected subelement return"?

2008-03-24 Thread Anne Thomas Manes
Nate, My guess is that Axis2 is barfing on the second element. You did not declare maxOccurs="unbounded" in the "return" element type definition: Also, is there some reason why you specified type="

Re: [Axis2] 1.4 RC2

2008-03-24 Thread Leon Searl
Hi Dims, I'm no expert on the m2 repository but there does not seem to be a XmlSchema-640087.pom or XmlSchema-640087.tar anywhere in the m2-repo.zip. The build seems to expect one under org/apache/ws/common/schema but I don't see there. Any other ideas? leon Davanum Srinivas wrote: -BEGIN

Re: What might cause "Unexpected subelement return"?

2008-03-24 Thread Martin Gainty
Nate- Following up..it appears your Person element is undefined Can you either make viewable OR display the values located at http://data.test.vegas.com/xsd Martin - Original Message - From: "Nate Roe" <> To: Sent: Monday, March 24, 2008 5:04 PM Subject: RE: What might cause "Unexpected

Re: [Axis2] 1.4 RC2

2008-03-24 Thread Davanum Srinivas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, download the m2-repo.zip from the RC2 url and unzip it into your local machine. alternative edit modules/parent/pom.xml and add the http://people.apache.org/~dims/axis2-1.4/RC2/m2-repo/ as one of the repos. thanks, dims Leon Searl wrote: |

Re: [Axis2] 1.4 RC2

2008-03-24 Thread Leon Searl
Hi, I'm guessing that this is a m2-repo issue instead of an axis2 issue so I was reluctant to make a Jira. When building from the source and using the m2-repo I got and error when maven was looking for artifact org.apache.ws.commons.schema:XmlSchema:jar:640087: bash-3.2$ mvn clean install [IN

RE: What might cause "Unexpected subelement return"?

2008-03-24 Thread Nate Roe
I wonder if this is related to the Java packages created for my data beans, or some kind of mistake during stub generation. I don't understand from looking at my WSDL and my SOAP messages how they mis-match. I have managed to create a test case that I believe exemplifies this problem. For th

Re: Capture custom exception

2008-03-24 Thread SGruverman
I'm also fairly new to Axis2 web services but I have been able to develop a service that includes two custom exceptions. Both my service and client use code generated by WSDL2Java (the Eclipse plug-in, but would expect the other version to product the same results). I'm using Axis2 1.3. The actual

Re: Capture custom exception

2008-03-24 Thread Joseph P. Berglund
I have had a similar problem. I am a fairly new user myself, but it looks like the exception is always cast as an AxisFault when it returns to the client. You could try extending the AxisFault class for your custom exception. - Original Message From: Adrián Cuartero <[EMAIL PROTECTED]>

Capture custom exception

2008-03-24 Thread Adrián Cuartero
Hi all I keep trying throwing a custom exception and i've read there's a problem capturing this exception in the client side. Anyone knows how to capture this custom exceptions? Thanks __ Enviado desde Correo Yahoo! Más formas de estar en

Consuming SSL enabled WS (i.e. via HTTPS)

2008-03-24 Thread Abhishek Shadangi
Hi All, I want my Consumer to able to consume Web Services over HTTPS. I don't want to configure the javax.net.ssl.trustStore etc at the JVM level. Rather I want to tell Axis to uses accept certificates automatically, without user intervention. And as a result the WS call should be made seamlessly

PolicyReference serialization problem

2008-03-24 Thread Detelin Yordanov
Hello guys, I am using the AxisService2WSDL11 class to generate a WSDL for an AxisService. The service was populated from a WSDL and contains policy references on the service and some of the bindings. When the addPolicyAsExtElement(..) method is being executed (no matter on which subject), the c

Re: AW: Axis2 with rampart sample, username hardcoded

2008-03-24 Thread Pete
It would be nice to have those classes available long term, unfortunately they are deprecated, so who knows when they will actually go away. - Original Message From: Matthias Wermund <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Monday, March 24, 2008 4:28:01 AM Subject: AW: Axis

WSDL Link

2008-03-24 Thread sbo
Hi, I was wondering how to remove the display of the WSDL when a user accesses the http:// ?WSDL link? Is it a property in the server deploy wsdd? Thank you, SBO

RE: How to return Object[] from axis2

2008-03-24 Thread Hoda, Nadeem [USA]
Dear George, The solution you have mentioned is a very custom solution and would not be used under normal circumstances. If you were to give your service to a client, they would not be able to use it until they understood the XML being passed as a string. With well-defined data constructs (stron

Re: How to return Object[] from axis2

2008-03-24 Thread Chinmoy Chakraborty
Axis2 works fine for following service, I can see the SOAP through soapmonitor: public class ReturnObjectArrayService { public static Object[] returnObjectArray(String authToken) { Object[] retVal = new Object[3]; Object[] args = new Object["Agr1", "Arg2", "Arg3"]; retV

Re: How to return Object[][] from Axis2 service

2008-03-24 Thread George H
I use eclipse plugins and I pass object[][] and any type of objects through axis2. There is just 2 simple rules I follow. 1: I never have a webservice method that "throws Exception" , I handle the error inside the webservice method and I return null object to mean a error. 2: When I want to retur

Re: How to return Object[] from axis2

2008-03-24 Thread George H
I've dealt with this problem before and I found a pretty nice solution. Just make your webservices return String and use the XStream library to serialize and deserialize your java objects (any object) to an xml string. - To unsubs

RE: How to return Object[] from axis2

2008-03-24 Thread Hoda, Nadeem [USA]
Hello Chinmoy, You will not need custom deserializers (unless you mean the ones that are auto-generated by clients), but, you are correct, you will need to re-generate the clients (you could use any toolkit for the client). This will save you many headaches in the future, and client-stub gener

[Axis2] Release planning and Hackathon forAxis2 1.4 Release - JAXWS Documentation / Samples

2008-03-24 Thread Davanum Srinivas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Team, How about we take a day to focus on the release getting stuff running on Tomcat/Axis2? We are especially lacking in samples and documentation for JAXWS. Basically we can hang out on IRC, and work jointly on some samples both first time users

Re: How to return Object[] from axis2

2008-03-24 Thread Chinmoy Chakraborty
Hi Nadeem, If I modify my service and make well-typed class arrays, I need a custom deserializer at the client end, right? In that case our existing Axis1.xclient code will breakDid I get you properly? Chinmoy On Mon, Mar 24, 2008 at 2:54 PM, Hoda, Nadeem [USA] <[EMAIL PROTECTED]> wrote: >

[Axis2] 1.4 RC2

2008-03-24 Thread Davanum Srinivas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I've posted the RC2 here: http://people.apache.org/~dims/axis2-1.4/RC2/ Notes: - - There's a text file with revision numbers that i used for all the SNAPSHOTS - - There's a m2-repo.zip with all the m2 artifacts - - There's an online repo as

AW: Axis2 with rampart sample, username hardcoded

2008-03-24 Thread Matthias Wermund
Hi, this is the way I handle the rampart username in my clients programmatically: OutflowConfiguration outflowConfig = new OutflowConfiguration(); outflowConfig.setActionItems("UsernameToken");

RE: How to return Object[] from axis2

2008-03-24 Thread Hoda, Nadeem [USA]
Hello Chinmoy, If it is at all possible, I would highly suggest slightly modifying the implementation of the services to include well-typed class arrays instead of Object arrays. This change will help you solve this issue at hand and help you in the future when SOAP stacks change and future ne

Re: How to return Object[] from axis2

2008-03-24 Thread Chinmoy Chakraborty
Hi Nadeem, Thanks for your reply. I understand the interop problem you are talking about and the problem related to Axis2 with Axis 1.x client. In our existing web services we are using Axis1.x in both ends and Object[] worked fine for us. Now we want to upgrade to Axis2 keeping our Axis1.xclient

Axis2 with rampart sample, username hardcoded

2008-03-24 Thread Daniel Woo
Hi, I tried to use axis2 with rampart for UsernameToken authentication. The problem is that all the samples just hardcoded the username in axis2.xml, eg: UsernameToken bob test1.security.PWCBClientHandler How can I get rid of the