Is there any reason I must invoke Call.addParameter() method?

2006-06-13 Thread 蘇 軼(CEC)
hi all, I'm using Axis1.4 and found that Call.invoke() always succeeds whatever I invoke Call.addParameter() method or not, also the Call.setReturnType() method. Is there any reason I must use the both methods ? Any help or web resources would be greatly appreciated ! - sukie --

Re: [newbie] Can Axis2 generate WSDL with simpleTypes?

2006-06-13 Thread Simon
It turns out I can answer my own question :-) Axis2 seems to be generating in WSDL in document/literal wrapped form by default whereas Axis1 did not. Hence all the parameters are getting wrapped. There doesn't seem to be any real mention of this in the migration guide or docs anywhere else, or

Re: Is there any reason I must invoke Call.addParameter() method?

2006-06-13 Thread Simon
Hi sukie, Have a read here: http://ws.apache.org/axis/java/user-guide.html#InteroperatingWithUntypedServers It explains the situations where calling setReturnType is required. Cheers, Simon. On 6/13/06, 蘇 軼(CEC) <[EMAIL PROTECTED]> wrote: hi all, I'm using Axis1.4 and found that Call.invo

Re: Importing external schema in WSDL

2006-06-13 Thread Deepal Jayasinghe
Hi Carlos; Once you put your wsdl file into META-INF directory of the service archive file , then if there are xsd:imports in your wsdl Axis2 tries to read them. If the schema imports are relative then they should be there in the META-INF directory, if the schema is absolute URL then it should work

Re: Is there any reason I must invoke Call.addParameter() method?

2006-06-13 Thread 蘇 軼(CEC)
hi Simon, Thank you very much for your help ! The setReturnType() method describes the return type in response message, since the Axis' message is self-describing, I can throw it away : ) Thanks again ! - sukie - Original Message - From: "Simon" <[EMAIL PROTECTED]> To: Sent: Tuesday,

[Axis2] options.setProperty() problem

2006-06-13 Thread Michele Mazzucco
Hi all, I've got two handlers (A and B), deployed on two different tomcat servers (1 and 2). When server 2 is started, handler B sends a message to handler A (server 1 is running). My problem is that handler B inserts a message property into the options and that option is received as NULL: =

Re: [Axis2] MTOM example wsdl generation fails

2006-06-13 Thread Thilina Gunarathne
Hi, MTOM sample is designer to work in the OM level.. It takes OMElement as input and returns OMElement... That's why it uses the RawXmlMessageReciever.. This will not generate a usable WSDL , but you should be able to code generate for the given WSDL.. Notice the following.. We have to custom w

Re: [Axis2] options.setProperty() problem

2006-06-13 Thread Deepal Jayasinghe
Hi Michele; None of the property is send to wire , all the properties for internal processing I mean if you set a property in one server instance there is no way that you can access that in some other server. If you want to share properties between two servers you have to send those in SOAP messag

Re: [Axis2] options.setProperty() problem

2006-06-13 Thread Michele Mazzucco
Hi Deepal, thanks for your reply. How can I access the SOAPHeader from the ServiceClient? Michele Deepal Jayasinghe wrote: > Hi Michele; > None of the property is send to wire , all the properties for internal > processing I mean if you set a property in one server instance there is > no way th

using a web-server as a soap client to another web-server

2006-06-13 Thread Levin Nir
Title: using a web-server as a soap client to another web-server Hi axis-users, I have a Java SOAP server application running under Tomcat using the Apache Axis SOAP library. This application needs to call another SOAP server with an attachment and get an attachment back.=20 A strange thing

Internal Error Servlet

2006-06-13 Thread Mancinelli Elodie
Hi all, Tools use: Axis2 1.0, Sandesha2 1.0 and apache-tomcat-5.5.15 I try to do the sandesha2 user guide. I deploy on tomcat the aar giving by the sandesha2 1.0-bin.zip. I recover the client in the user guide. I do instructions of sandesha2 user guide. I only change this in the client code: p

Writing a custom serializer for Axis

2006-06-13 Thread Alice Barsse
Hello, (I had posted this to comp.lang.java.programmer more than a month ago, with absolutely no success...hoping someone can answer this here.) Can anyone point me to documentation explaining how to write a custom serializer for Axis in Java ? I need to write a serializer to handle data that c

[axis2] Unknown SOAP Version. Current Axis handles only SOAP 1.1 and SOAP 1.2 messages

2006-06-13 Thread Michele Mazzucco
Hi all, I'm getting the following error while attempting to create a SOAP message: Unknown SOAP Version. Current Axis handles only SOAP 1.1 and SOAP 1.2 messages The SOAP envelope is: http://org.ncl.ac.uk/qosp"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

Re: [axis2] Unknown SOAP Version. Current Axis handles only SOAP 1.1 and SOAP 1.2 messages

2006-06-13 Thread Michele Mazzucco
I found the solution. The problem was the call envelope.setNamespace(this.omNs); Regards, Michele Michele Mazzucco wrote: > Hi all, > > I'm getting the following error while attempting to create a SOAP message: > > Unknown SOAP Version. Current Axis handles only SOAP 1.1 and SOAP 1.2 > messag

Multiple WSDL files generation

2006-06-13 Thread Jean-Baptiste . Binet
Hello. I have 2 Java Interfaces, each one representing a WebService : public interface interf1 {    public void m1(MyObject o); } public interface interf2 {    public void m2(MyObject o); } As you can see, the 2 operations have a MyObject instance input parameter. I would like to generate the

NullPointerException during a fault deserialization

2006-06-13 Thread Christophe DENEUX
Hi all, In the web-service client side, I have the following a NullPointerException during the processing of a fault: Caused by: java.lang.NullPointerException at org.apache.axis.client.Call.invokeEngine(Call.java:2816) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apac

Re: Simple Question Axis

2006-06-13 Thread Nicolas Guaneme
Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message:    "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">       soapenv:Server.us

[Axis2] My question, still, is why the base URI is being determined incorrectly

2006-06-13 Thread Jim Bender
I am running the latest daily build (13 June 2006). In the CodeGenerationEngine.getBaseURI(String), a perfectly good URI file:/c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl is getting mangled into something that is incorrect: file:/C:/Java/projects2/axis2-std-1.0test

Re: [Axis2] My question, still, is why the base URI is being determined incorrectly

2006-06-13 Thread Davanum Srinivas
try dropping the file:/ prefix. On 6/13/06, Jim Bender <[EMAIL PROTECTED]> wrote: I am running the latest daily build (13 June 2006). In the CodeGenerationEngine.getBaseURI(String), a perfectly good URI file:/c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl is getting

Axis2: Checking signed SOAP requests with Rampart...

2006-06-13 Thread Johan Roch
Hello, I would like to check security for incoming soap requests at server side using the Rampart module(Axis 2). I have an existing client that sends signed SOAP requests(no encryption). The problem is that the signature is never checked. I can see this in the log(debug level): DEBUG - Pha

RE: Importing external schema in WSDL

2006-06-13 Thread Carlos A. Perez
Hi, I am attaching you the services.xml and the WSDL with the reference to the external schemas. I removed the external references and made a copy of all referenced schemas in the .aar file, and now Axis is not generating any exception at all, and the service appears in the service listing, but w

[Axis2] Maintaining Session Ticket

2006-06-13 Thread Brian Russell
I am trying to implement a stateful web service using HttpSession from my Axis2/Tomcat server. The client’s calls to my web service always contain a ticket that I need to pass back to them upon authorization, and check during each call until the connectionClosed method is called.   Specif

[Axis2] HowTo access Implementation class properties

2006-06-13 Thread Jean-Michel PATER
Hi, I'm using Axis2-1.0 and I'd like to do something which was available in axis 1.x. In axis 1.x, you could do : MyServiceLocator serviceLocator = new MyServiceLocator() ; MyService myService = serviceLocator.getmyservice(); And then, you can access the implementation class properties an

converting SoapBodyElement[] based service to Axis2

2006-06-13 Thread Andrew B
Hi,I am converting an existing Axis 1 web service to Axis 2. The single method, getData, takes and returns an array of SoapBodyElements. When I generated the service skeleton in Axis 2 though, using WSDL2JAVA, the method takes GetDataDocument and returns GetDataReturnDocument. How do I map the old

There still seems to be an error in the WSDL2Java generation

2006-06-13 Thread Jim Bender
I have stepped through the debugger in the WSDL2Java generation, and I see that while I give a path with "/", that is converted using a File object, so that there are "\" in the string. In the AxisService.getWSDL(OutputStream, String[], String), an exception is thrown and is caught at line 603 (in

I just ran the Java2WSDL generation with the 13 June 2006 build and still got a bad WSDL file

2006-06-13 Thread Jim Bender
I just verified that I am pointing to today's build (13 June 2006). When I ran the Java2WSDL generation, I still got a WSDL file with two complex type definitions in the schema for the same type. I am still using the same Java interface that I have been using. Regards, -- Jim ---

[Axis2] What breaks in Windows probably works in Linux

2006-06-13 Thread Jim Bender
The problem that I am seeing, while running in a Windows 2000 environment, probably works in Linux. The problem seems to be associated with using the File class, which in Windows is introducing backslashes to the path ("\"). The URI wants only forward slashes ("/"). In Linux, you would only have t

Re: [Axis2] My question, still, is why the base URI is being determined incorrectly

2006-06-13 Thread Jeff Greif
It's not a perfectly good URI. A perfectly good URI of the file: protocol has two slashes after the protocol, followed by a hostname:port (either the :port or the entire hostname and port may be absent), followed by another slash that begins the path. So to make your URI perfectly good, it shoul

Re: [Axis2] My question, still, is why the base URI is being determined incorrectly

2006-06-13 Thread Jim Bender
Jeff, I followed Davanum's advice and that caused this problem to disappear. I did not create my own URI, but used the Java facility: file.toURI(). Only after that did I run into this problem that seems to be only in Windows, due to what happens with File (backslashes) and then with URI's, where

Unknown exception from AXIS Provider

2006-06-13 Thread akkachotu
I have a web service built on AXIS 1.2 Final and web service provider built on AXIS 1.2 Final. Both are running on WebSphere 5.1 server. When I try to consume the service I am getting below error on the provider side. I am not understanding what this exception means and so someone help me

RE: Empty SOAP Body in Input Message Causes NPE on Axis 1.3

2006-06-13 Thread Ted Jones
More info   I am using Axis 1.3 with Document/Literal   Thanks, Ted From: Ted Jones [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 8:56 AMTo: axis-user@ws.apache.orgSubject: Empty SOAP Body in Input Message Causes NPE on Axis 1.3 I am executing a web service with no input par

[Axis2] basic tutorial/help needed

2006-06-13 Thread Andrew B
Hi,I am trying to get to grips with Axis2, and need an 'Axis2 for Dummies'-type resource. For instance, what does 'OM' in OMElement etc. stand for? How does the documents that are passed back from Axis2 methods relate to SOAP messages? Is an XMLObject similar to a SoapBodyElement? How are attachmen

[Axis2] Pls help --> getting error when sending MTOM attachement.

2006-06-13 Thread Jenny ZHANG
Dear all, I was trying to use MTOM attachement to send a test.xml to server. Unfortunately no SOAP messages were catched by SOAPMonitor, and I got errors in windows's console (listed below). It looked like that the SOAP envelop did not generate successfully, I tried both SOAP1.1 and SOAP1.2

Re: Simple Question Axis

2006-06-13 Thread Cyrille Le Clerc
Hi Nicolas,We are blind without the stack trace of the exception. You should find it in the server-side logs.CyrilleOn 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message:    "http://schema

Re: Simple Question Axis

2006-06-13 Thread Nicolas Guaneme
Cyrille Le Clerc wrote: Hi Nicolas, We are blind without the stack trace of the exception. You should find it in the server-side logs. Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3

[Axis2] WSDL2Java worked for me with a WSDL file generated with this build (after editing)

2006-06-13 Thread Jim Bender
I tried the WSDL2Java generation with a WSDL file that I generated with this build, and it worked. That was only after I edited the file and removed the duplicate complex type definition. Now, I am seem to be getting the full set of generated files. I need to complete the process and see if the ge

Re: Simple Question Axis

2006-06-13 Thread Cyrille Le Clerc
Hi Nicolas, I advise you to first fix your logging problem. Remember that axis relies on log4j. I attached a log4j.xml that should enable axis debug logs. just drop this file under WEB-INF/classes . We are waiting to see your stacktrace :-) Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL

Re: Simple Question Axis

2006-06-13 Thread Nicolas Guaneme
Hello Cyrille I active the log and show me this trace in the console and generate this file too. :'( I see the log and the problem is it when invoke the client-stub of the other web service.. Thanks.. Nicolás G. Rico   Hi Nicolas,   I advise you to first fix your logging prob

[ Axis 1.4 ] How to set "To" Header value?

2006-06-13 Thread James Gough
I am sending attempting to send a message as a client to a .NET web service, and I need to manually set the value of my "To" soap header, which is added to my message by using the .wsdd file below: http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

Axis2 Head ache, Disappointment

2006-06-13 Thread knly browne
good day awl, I have a few questions, What, who, when, where, why and how do i find documentation on the use of java2WSDL for Axis2 1.0?NO I don't Use Eclipse IDE and NO I don't use Intelli j IDEIt seems that deploying the WSDL along with the webservice is required as of Axis2 1.0 but there is NO

Re: Axis2 Head ache, Disappointment

2006-06-13 Thread Jim Bender
I am doing it programmatically. In one of my emails, I think that I show how I invoke the Java2WSDL generator. I have it working well in Axis2 0.93. There is a Jira ticket that I wrote about a problem that I had with a complex type as the argument to the Java interface. It created a complex type d

Axis2 dynamic undeployment

2006-06-13 Thread Anamitra . Bhattacharyya
Hi I have modified my axis2.repository path and the axis2.xml path to point to my local dirs and have successfully deployed a service dynamically [by dropping the aar file under the services folder]. But if I delete that file I am not seeing that getting undeployed and not sure if I have to call s

Re: Axis2 dynamic undeployment

2006-06-13 Thread Deepal Jayasinghe
Hi Anamitra; pls see my comments below; [EMAIL PROTECTED] wrote: >Hi >I have modified my axis2.repository path and the axis2.xml path to point to >my local dirs and have successfully deployed a service dynamically [by >dropping the aar file under the services folder]. But if I delete that file >I

Re: Axis2 Head ache, Disappointment

2006-06-13 Thread Deepal Jayasinghe
Hi Knly; Pls see my comments below; knly browne wrote: > good day awl, I have a few questions, What, who, when, where, why and > how do i find documentation on the use of java2WSDL for Axis2 1.0? > NO I don't Use Eclipse IDE and NO I don't use Intelli j IDE > > It seems that deploying the WSDL a

Re: [Axis2] What breaks in Windows probably works in Linux

2006-06-13 Thread Deepal Jayasinghe
yes, please create a JIRA. Jim Bender wrote: > The problem that I am seeing, while running in a Windows 2000 > environment, > probably works in Linux. The problem seems to be associated with using > the File class, which in Windows is introducing backslashes to the > path ("\"). The URI wants on

Fault Handling with Axis

2006-06-13 Thread O'Reilly, Barry
Hi All, I am trying to write an application using AXIS and need to implement some fault handling features I have a method public void testConnection(String username, String password)throws Exception{ LORAXSoap soap = new LORAXLocator().getLORAXSoap(); soap.testConn

Re: Axis2: Checking signed SOAP requests with Rampart...

2006-06-13 Thread Ruchith Fernando
Hi, You have a slight typo in the rampart configuration parameter. The above should change to Note that the third letter of the parameter name is lower case 'f'. Also since you only expect Timestamp and Signature (and no encryption) the action/items should not have 'Encrypt' in it. Theref

Re: [Axis2] Maintaining Session Ticket

2006-06-13 Thread Eran Chinthaka
Brian Russell wrote: > > > 1.Has anyone worked with maintaining session specifically with > regard to the Quickbooks Web Connector v.1.0.52 and Axis2 v.1.0 on > Tomcat 5 (I'm using v.5.5.15)? > > a.If not, does anyone have any suggestions for implementing this > session maintenance by

Re: [Axis2] basic tutorial/help needed

2006-06-13 Thread Eran Chinthaka
Andrew B wrote: > Hi, > > I am trying to get to grips with Axis2, and need an 'Axis2 for Dummies'-type > resource. For instance, what does 'OM' in OMElement etc. stand for? How does > the documents that are passed back from Axis2 methods relate to SOAP > messages? Is an XMLObject similar to a S

Re: [Axis2] Maintaining Session Ticket

2006-06-13 Thread Ajith Ranabahu
Hi, Lemme get your problem first :) Your ticket is handled at the application level where the ticket is passed to the application (the service class) and then the business logic code checks for the compatibility of the ticket ? If so you would not be able to use the addressing reference properties

Re: Axis2 Head ache, Disappointment

2006-06-13 Thread Ajith Ranabahu
Hi, AFAIR there is a Java2WSDL main class that can be invoked through the commandline (which is shipped with the 1.0 distribution). As for the documentation I am sad to say there is none so far for the commandline tool (there is the help for the Eclipse plugin but sadly you are not an Eclipse fan)

[axis2] Quartz help please?

2006-06-13 Thread Jian Zhen
Hi all, Has anyone used Quartz with Axis2 1.0? (I am asking this same question in the Quartz forum) Everytime I try to schedule a new job, I get an AxisFault exception thrown. The code I have is: JobDetail job = sched.getJobDetail(name, group); CronTrigger trigger = new CronTrigger(name,