RE: [Axis2] Stopping display of WSDL

2007-10-12 Thread Nadir Amra
I would suggest you open a JIRA for an enhancement. I think we should be returning an error without the message, too. Nadir K. Amra Nathan Hook <[EMAIL PROTECTED]> wrote on 10/12/2007 12:22:43 PM: > > Thank you for the reply. > > The suggestion worked but not quite as I was hoping. We rece

Re: problem when axessing a method

2007-10-12 Thread Upul Godage
Looks like you are calling the StockQuoteService for an Echo service payload. Better follow the Axis2 Quick Start Guide examples exactly first. All the source code and build scripts are given in the samples directory. In the Axis2 Quick Start Guide check, Building the service using AXIOM Creating

wsdl2java generate abstract class rather than skeleton

2007-10-12 Thread Michael Potter
Axis2 crew, I use wsdl2java to generate java code and then modify the skeleton.java file to meet my needs. This is a bit awkward because if I change my .wsdl file and then regenerate, my hand modified skeleton with be wiped out (or out of date). What I think would be better is if wsdl2java were

Re: Axis2 1.3 and Servlet Spec

2007-10-12 Thread Martin Gainty
depends on the container that axis wil be implement on e.g. Apache Tomcat version 5.5 implements the Servlet 2.4 Apache Tomcat version 6.0 implements the Servlet 2.5 Are you using a different container? Martin-- - Original Message - From: Kiran Kumar Sriram To: axis-user@ws.apache.

Re: How to send WS-Addressing headers in AXIOM based client

2007-10-12 Thread Ralph Fernandes
Thanks, I dropped addressing-1.3.mar into the lib folder (it was already in the module folder), and that made it work. However, the WS-A To URI value is getting used as the HTTP endpoint. In my case, the WS-A To URI is not the same as the HTTP end-point. What does ServiceClient::setTargetEPR() d

RE: Axis n00b needs help with an axis fault (internal to axis)

2007-10-12 Thread Nathan Hook
Are you trying to input that number into an int or Integer? The largest value allowed for an int or Integer is 2147483647. If you are using an int or Integer you might want to consider moving to either a long or Long. Best of luck. Subject: Axis n00b needs hel

Axis n00b needs help with an axis fault (internal to axis)

2007-10-12 Thread Horninger, Joe (Contr) (Mission Systems)
On the surface, this looks like something simple. The problem here is that it's occurring inside the axis call where I have no ablility to debug. TCPMon's been no help, and neither has my debugger. Does anyone have enough knowledge about Axis and the way it works to have idea how I can track thi

Re: securing webservice in axis2

2007-10-12 Thread Martin Gainty
following the JavaDoc available at http://ws.apache.org/axis2/modules/rampart/1_2/security-module.html axis2.saml.properties contains this vital information: axis2.crypto.properties contain these vital entries: org.apache.ws.security.saml.issuer.key.password=security org.apache.ws.security.saml.su

Re: problem of soap version in axis2/java 1.2

2007-10-12 Thread csethil
This can be due to the action= parameter of the content type of the MIME message generated by Axis2/c (Notice the unnecessary quotes)... Modify your Axis2.xml of the server to send the full stack trace with faults and post the full stack trace.. Also log a JIRA with Axis2/C. ~Thilina On 1

Axis2 1.3 and Servlet Spec

2007-10-12 Thread Kiran Kumar Sriram
Hello All,Axis2 1.3 can be installed in any Servlet Container, but is there any minimum Servlet specification(2.1 or 2.3) that is needed for Axis2 1.3 ?Any help is greatly appreciated.Thanks,Kiran _ Boo! Scare away worms, viruses and

Re: problem when axessing a method

2007-10-12 Thread jerome.mariette
ok I guess I got fast in my conclusion !! because it's not working really well neither si as I know I did everything with the 1.2 I got back with this version !!! so I deployed an exemple: the quickstart exemple from my browser everyything is still working fine ... but from my java code: E

NoClassDefFoundErrors ins AXIS2 aar

2007-10-12 Thread Kahler, Jason J (US SSA)
I am building my aar using the maven2 pluggin. Everything builds but when I deploy I get NoClassDefFound ERRORS all over. This was working as a war in tomcat using axis 1. All the required jars are in myArr.arr/lib what could be wrong ? Jay

RE: [Axis2] Stopping display of WSDL

2007-10-12 Thread Nathan Hook
Thank you for the reply. The suggestion worked but not quite as I was hoping. We received the following message when we followed your suggestion: Unable to generate WSDL 1.1 for this serviceIf you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in

Re: AxisCallback stuck the application

2007-10-12 Thread Huitang Li
It looks like I am hitting the same bug as http://issues.apache.org/jira/browse/AXIS2-3265 Any solution? Thanks. Huitang Li wrote: I mean the run() method in the private class NonBlockingInvocationWorker in class OutInAxisOperationClient. private class NonBlockingInvocationWorker implem

Re: AxisCallback stuck the application

2007-10-12 Thread Huitang Li
I mean the run() method in the private class NonBlockingInvocationWorker in class OutInAxisOperationClient. private class NonBlockingInvocationWorker implements java.lang.Runnable{ private org.apache.axis2.client.async.Callback callback; private org.apache.axis2.context.MessageC

Re: AxisCallback stuck the application

2007-10-12 Thread Huitang Li
With further debugging, I found something interesting: when the onMessage() method is done in AxisCallback, the application proceeds on the method "public void run() " in class OutInAxisOperationClient, and then somehow the application seems hanging for ever. I have not downloaded the axis2

Nullpointer exception during wsdl fetch

2007-10-12 Thread Ali, Haneef
Hi, I'm seeing Nullpointer exception during wsdl fetch. This eventually leads to stack over flow. This is mainly due to conncurrent access. Does any one have any idea on this? From google search the reason for this seems to be " This is because the WSDL handling system reuses javax.wsdl.Defin

Re: [Axis2] 2 Instances of Axis2 running by default in Axis2 WAR?

2007-10-12 Thread Lawrence Mandel
Hi David, I just confirmed your comment with HEAD. I've been working off the latest release (1.3) and it looks like this was fixed 9 days after that release. Thanks, Lawrence "David Illsley" <[EMAIL PROTECTED]> 10/12/2007 03:54 AM Please respond to axis-user@ws.apache.org To axis-user@w

SSL Handshake call back for soap client

2007-10-12 Thread Deep Chand
Hi, I am developing an axis based soap client to talk to a soap server (gsoap based) using ssl mutual authentication. As some of you experts had suggested, I simply added some system properties on the client side for keystore, truststore etc and it all worked fine i.e. ssl handshake and web servic

Re: WSDL2Java, Address already in use: connect

2007-10-12 Thread Michele Mazzucco
A question like yours - with related reply - was sent to this mailing list 2 days ago. Michele On Fri, 2007-10-12 at 16:05 +0200, Pär Malmqvist wrote: > Hi! > > I am using Axis2 1.3 and have generated a client of type xmlbeans with > WSDL2Java. > > I am using the constructor: stub = new MySer

Re: AxisCallback stuck the application

2007-10-12 Thread Rajith Attapattu
Put you notification logic in the public void onComplete() { //nothing here } So when it completes (either fault/error or sucess) , this method will be called. Here is a faily elementry example (not the most elegant) Modify the generated class as follows. public vo

Re: AxisCallback stuck the application

2007-10-12 Thread Huitang Li
Thanks, Deepal. I will be happy to create a JRIA. But can you show me a good example using this new API in the client code? I am working on a project, and I cannot wait for the next Axis2 release. Thanks. Huitang Deepal jayasinghe wrote: Hi Huitang , Definitely a bug in codegen , please cr

WSDL2Java, Address already in use: connect

2007-10-12 Thread Pär Malmqvist
Hi! I am using Axis2 1.3 and have generated a client of type xmlbeans with WSDL2Java. I am using the constructor: stub = new MyServiceStub(endPoint); Then I create my request and execute the service and it works fine. But when I have done a couple of thousands requests I get the exception:

RE: Problem with UserGuides example "AddressBook"

2007-10-12 Thread Thomas Chang
I solve the problem now. But I have another problem, that is: how can I test this service? I try start the Main.class with "-lhttp://localhost:8080/axis/services/AddressBook";. But I got exception: log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).

Problem with UserGuides example "AddressBook"

2007-10-12 Thread Thomas Chang
Dear all, I downloaded and installed the AXIS 1.4. I try the eamples according the UserGuide. By the scetion "Server-side bindings" I created the deploy.wsdd with "java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true AddressBook.wsdl" and the "deploy.wsdd" is created. Then I

Re: problem of soap version in axis2/java 1.2

2007-10-12 Thread donald yang
Hi Keith, Thanks for your reply. The problem I currently have is that I will reveive an exception "Invalid Content Type Field in the Mime Message" as a SOAP reply when I set the soap version to 1.2 in the web service client written using AXIS2/C 1.0. But when I set the soap version to 1.1 in the

Soap Faults and Exception

2007-10-12 Thread Kahler, Jason J (US SSA)
I am using Axis2 1.3 I have defined a custom Fault in my WSDL. It worked fine using axis 1. But now when I run WSDL2code via the maven2 pluggin I get errors when I try to compile my classes such as: java:[63,17] incompatible types found : wfnp.ServiceException required: java.lang.Throwab

Re: problem of soap version in axis2/java 1.2

2007-10-12 Thread csethil
Hi, If possible post the full message traces from Axis2/C... Seems like there is a bug in either one of them, causing them not to interoperate on SOAP1.2+MTOM... thanks, Thilina On 10/12/07, donald yang <[EMAIL PROTECTED]> wrote: > Hi everyone, > > First I wrote a simple web service using AXIS2/J

Re: problem of soap version in axis2/java 1.2

2007-10-12 Thread keith chapman
No need to change anything. If the request is SOAP 1.1 the response will be SOAP 1.1. if it is SOAP 1.2 the response will be SOAP 1.2. Thanks, Keith. On 10/12/07, donald yang <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > First I wrote a simple web service using AXIS2/JAVA 1.2. Then I wrote a >

problem of soap version in axis2/java 1.2

2007-10-12 Thread donald yang
Hi everyone, First I wrote a simple web service using AXIS2/JAVA 1.2. Then I wrote a web service client test case using AXIS2/C 1.0 to access the web service. In the client, I have enabled MTOM even if there is no binaary attachment to send in fact and set the SOAP version to SOAP 1.2. I got one

RE: Peculiar Issue while testing a service

2007-10-12 Thread Gudla, Natraj (GE Money, consultant)
Hi Amila, The message has bounced saying your mail box is full. I am just sending you the text, pl let me know if i can send you the attachements as well. The attachment is of size 109KB. Cheers Natraj. -Original Message- From: Gudla, Natraj (GE Money, consultant) Sent: 12 October

Re: Peculiar Issue while testing a service

2007-10-12 Thread Amila Suriarachchi
ok can you send me your code. (please send only the relavent things to reproduce the bug). and tell me the steps to produce your error. Amila. On 10/12/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]> wrote: > > Hi Amila, > > Both the ways have been tested. With product Id and with t

Re: wsdl2java generates java code with errors

2007-10-12 Thread Amila Suriarachchi
On 10/12/07, Masahiro Nakamura <[EMAIL PROTECTED]> wrote: > > Hello > > I installed axis 1.3 and converted a WSDL file to java (ADB) code. > WSDL2Java command exited without errors, however I cannot build > the result files. there was a problem with union type processing. I have fixed it now and

RE: Peculiar Issue while testing a service

2007-10-12 Thread Gudla, Natraj (GE Money, consultant)
Hi Amila, Both the ways have been tested. With product Id and with test elements. We have built a test harness which reads all data from an excel sheet, forms a custom domain object set. There is a mapper class which individually maps the object elements from this domain onto axis generated cl

Re: [Axis2] JAX-WS & working at xml level on the client side

2007-10-12 Thread Michele Mazzucco
Nick. thanks, but I can't get it working. Here is the service (it's like SOAP12Provider, but without dependencies): package service.jaxws; import javax.xml.ws.BindingType; import javax.xml.ws.Provider; import javax.xml.ws.WebServiceProvider; import javax.xml.ws.soap.SOAPBinding; /** * A Provi

Re: Peculiar Issue while testing a service

2007-10-12 Thread Amila Suriarachchi
with out generating the xml from anther IDE. generated it with the generated client code. try to remove those test elements and add productionID and see. Amila. On 10/11/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]> wrote: > > Hi Amila, > > Anything on this? > > Cheers > Natraj.

wsdl2java generates java code with errors

2007-10-12 Thread Masahiro Nakamura
Hello I installed axis 1.3 and converted a WSDL file to java (ADB) code. WSDL2Java command exited without errors, however I cannot build the result files. Severity and Description Path Resource Location Creation Time Id The method fromString(XMLStreamReader, String, String) in the type Lang_type0

Re: using log4j.properties

2007-10-12 Thread Upul Godage
Hi, One solution, in each aar, you have to call a log4j PropertyConfigurator.configure(...) or DOMConfigurator.configure(...) at start up or when you want to reload the log properties. This is one way of doing it. Here the service class implements public void init(ServiceContext sc) which will b

getting java.lang.NoClassDefFoundError while invocation

2007-10-12 Thread Anumodh Sreedharan
Hi, I'm using axis2 1.3 for developing a web service (3 methods) along with spring and hibernate. I was successful in deploying the web service and also invoking one of the methods. But on invocation of the other two methods, I'm getting an exception as follows: [ERROR] sample/sampleList/_200

Cannot obtain token identifier

2007-10-12 Thread Massimiliano Masi
Hi, I have implemented the STS token issuer, to issue custom saml token. I just copied the SAMLTokenIssuer.java from the SVN of rampart. But the client doesn't find the token reference: [java] Got trustexception + Cannot obtain token identifier [java] org.apache.rahas.TrustException: Cann

Re: question on doc/lit wrapped wsdl with one-way operations

2007-10-12 Thread Anne Thomas Manes
If you want doc/lit wrapped, then you must have an output message with an empty wrapper element. Other options for a void return: If you have an empty output message (message defined but containing no parts), then it will be treated doc/lit unwrapped with a request/response MEP -- it will return

Re: [Axis2] hot deployment

2007-10-12 Thread Chris Bowman
Peter, from http://www-128.ibm.com/developerworks/webservices/library/ws-axis2soap/ Hot deployment and hot update Availability is a big concern when it comes to enterprise-level applications. Even a short amount of downtime can be highly detrimental, so restarting a server is not a good optio

Re: Axis2 client

2007-10-12 Thread Deepal Jayasinghe
Hi rajnishe , In your client code do you have configurationContext.terminate() method ? Thanks Deepal > Hello All > > I am using axis2 for webservice development. > When i run client first time it gives me error below . > But second time and later many times it runs successfully. > I am using jbos

Re: [Axis2] hot deployment

2007-10-12 Thread keith chapman
This is the behaviour of hotDeployment. What you are asking is hotUpdate and is set to false by default. Change this property in your axis2.xml to true. false Thanks, Keith. On 10/12/07, Peter A. Kirk <[EMAIL PROTECTED]> wrote: > > Hi > > If I simply copy a .aar file to the axis2/WEB-INF/ser

Re: How to configue a Policy

2007-10-12 Thread Dimuthu
Hi Oliver, You have to either switch off security or switch on security. You cannot support both. If you really need support both scenarios then you have to implement it as two services. Once service with security and other without. Regards, Dimuthu On Fri, 2007-10-12 at 08:47 +0200, Oliver Pete

Re: AxisCallback stuck the application

2007-10-12 Thread Deepal jayasinghe
Hi Huitang , Definitely a bug in codegen , please create a JRIA. Thanks Deepal > All these codes are auto-generated by Axis2 1.3 wsdl2java command. I > do not know whether it is an old callback or not. But it does says: > > _operationClient.setCallback(new > org.apache.axis2.client.async.AxisCallb

Re: How to send WS-Addressing headers in AXIOM based client

2007-10-12 Thread Deepal Jayasinghe
> I have Axis2-1.3 and am trying to send WS-Addressing headers in the > request using the code snippet below. The only header that gets set is > the SOAPAction (HTTP) header, but none of the SOAP envelope headers, > viz. To, From, Action, MessageID. If I try to explicitly engage the > module, I ge

[Axis2] hot deployment

2007-10-12 Thread Peter A. Kirk
Hi If I simply copy a .aar file to the axis2/WEB-INF/services directory under a running Tomcat, then my webservice is immediately available. But if I make changes to my webservice, and copy the new .aar file (with the same name as the old .aar file) to the services directory, then the changes do

Re: [Axis2] 2 Instances of Axis2 running by default in Axis2 WAR?

2007-10-12 Thread David Illsley
Lawrence, This isn't my area of expertise, but looking at AxisAdminServlet and AxisServlet, it looks like the init(ServletConfig) methods store/retrieve the first created configuration context from an attribute on the ServletContext, so only one should be created: Extract: this.configC

Re: How to send WS-Addressing headers in AXIOM based client

2007-10-12 Thread Amila Suriarachchi
if you want to engage the addressing you have to set a configuration context to the service client ConfigurationContext configurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_REPOSITORY, AXIS2_CONF); this.serviceClient = new ServiceClient(configu

Re: [Axis2/ADB] How to check whether optional parts of a SOAP message are specified

2007-10-12 Thread Amila Suriarachchi
On 10/10/07, Rainer Menzner <[EMAIL PROTECTED]> wrote: > > Hi, > > suppose I have optional parts in an XML element used by a WSDL, e.g.: > > > > > > > > ... > > ... > > > > > > > > After the stub classes have been generated by wsdl2ja