Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Samisa Abeysinghe
Dumindu Pallewela wrote: Hi Mole, Currently the auth header is sent only if the server requests for it. So if your server sends a WWW-Authenticate: header when authentication failed at the first request, Axis2 will send another with the required header. However, I think we should have

Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-03 Thread Samisa Abeysinghe
Have you set AXIS2C_HOME environment to point to the repo location? Samisa... topcoder1 wrote: hi folks, I am new to axis2/c, I try to get the following simple c client to work, but for some reason axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL. The env and

Re: Write an output file in server side code (Axis 1.6b C++)

2007-10-03 Thread Samisa Abeysinghe
string log = mc-getUserName(); //is it correct? Anyway it compiles correctly... ofstream out; out.open(/root/Desktop/fileLoginUtente.txt, ios::app); out Test: log; The problem could be that the server may not have the write permission to write to the

Write a log file using logaxis() method in Axis 1.6b c++ (server side)

2007-10-03 Thread Luciana Trubian
Hi all! I want to use in my server side code (in c++) the logaxis() method from AxisTrace.h to write a log file. int EuroConvertitoreWrapper::invoke(void *pMsg) { IMessageData* mc = (IMessageData*)pMsg; const AxisChar *method = mc-getOperationName(); int isTrace =

Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Dumindu Pallewela
Michael Mole wrote: Yes, that would be much appreciated. Also, is it possible for me to submit these directly? I was looking at the issue tracker, but couldn't find a way to do it. You need to create an account in order to report issues in jira. HTH, Dumindu. -- Dumindu Pallewela

Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-03 Thread topcoder1
thanks guys, both of you for the pointer, yes that was my problem, AXIS2C_HOME needs to point to the repo location. On 10/2/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Have you set AXIS2C_HOME environment to point to the repo location? Samisa... topcoder1 wrote: hi folks, I am new to

config.h

2007-10-03 Thread topcoder1
when compiling the client stub code generated from axis2c tool I got this error: L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30): fatal error C1083: Cannot open include file: 'config.h': No such file or directory i can't find config.h anywhere within the axis2c

Axis2C: how to check for SOAP fault

2007-10-03 Thread Michael Mole
How can I check for a SOAP fault using my ret_node in the following statement: axiom_node_t *ret_node = NULL; ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); Should I check the node type? Thanks, Mike Michael J Molé Software Engineer IBM Software

Re: config.h

2007-10-03 Thread topcoder1
I added WIN32 in preprocessor definitions, now I am getting tons of errors like this: error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast current_element = axiom_node_get_data_element( parent,

Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Samisa Abeysinghe
Michael Mole wrote: Yes, that would be much appreciated. Also, is it possible for me to submit these directly? Yes you can. Go to http://issues.apache.org/jira/browse/AXIS2C. You need to create an account for you there. Once you login, you can create the issues. Samisa... -- Samisa

Re: Axis2C: how to check for SOAP fault

2007-10-03 Thread Samisa Abeysinghe
Michael Mole wrote: How can I check for a SOAP fault using my ret_node in the following statement: axiom_node_t *ret_node = NULL; ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); Should I check the node type? You can use the function:

Re: Problem with service archiver plugin eclipse

2007-10-03 Thread Lahiru Sandakith
Please send us the latest log note on eclipse_workspce_dir/.metadata/.log file Thanks Lahiru On 10/2/07, Jay Zawar [EMAIL PROTECTED] wrote: Hi, I wanted to add: I use the following plugin versions: Axis2_Codegen_Wizard_1.2.0 Axis2_Service_Archiver_1.0.0 (and using Axis2 1.2) Kind

Re: Does WSDL2Java always generate Java code in UTF-8?

2007-10-03 Thread Lahiru Sandakith
Hi Kelvin, Assume that you have point the WTP to the Axis2 earlier version than 1.3, there has been an issue reported with the Axis2 Codegen results and it has been now fixed in the 1.3 version of the Axis2. if you can please try it with 1.3, The solution that you have come up is maybe an valid

RE: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
Hello Suran, My service makes use of several packages and classes and interfaces. It has a complex structure. So, I have created the following folder structure: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services\ - MyService -eu

Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Shadab
Hi All, Please let me know if there is any way to configure Axis1.4 such that it uses HTTP/1.1 instead of HTTP/1.0 The request from the soapclient (implemented using service stub) lands with Axis/1.4 which in turn by default presumably uses HTTP/1.0. Can't this be changed somehow using

Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka
Ana Belén Antón Gironés wrote: Hello Suran, My service makes use of several packages and classes and interfaces. It has a complex structure. So, I have created the following folder structure: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\services\ -

Re: Problem building available services

2007-10-03 Thread Lahiru Sandakith
Hi Ana, AFAIK on POJO scnenario to work correctly on all areas, axis2 supports simple types, simple type arrays and java beans in the method signatures of the service methods that needed to be exposed as web service. In your exact case, given that Class21 is a bean and recursively all the

RE: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
Hi! Thank you very much for your help, Suran and Lahiru. First of all, I see that your class uses generics. Please note that Axis2 only supports simple-types, arrays and beans. Since Axis2 is JDK1.4 compliant, generics are not supported. So what you can do is replace your genericised List

[AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878
Hello Axis users, I have a web service integrated with Axis2 that communicates with clients using gSOAP. The problem is that the client don't receive the complete XML response (sent in three TCP packets) when the WS is using Axis2 while it is working when using Axis1. HTTP 1.1 is used. In

Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Suran Jayathilaka
Ana Belén Antón Gironés wrote: Hi! Thank you very much for your help, Suran and Lahiru. First of all, I see that your class uses generics. Please note that Axis2 only supports simple-types, arrays and beans. Since Axis2 is JDK1.4 compliant, generics are not supported. So what you can do

Re: AXISCLASSPATH

2007-10-03 Thread zhshqzyc
What is wrong when I run the admin client. [CODE] C:\Documents and Settings\Ownercd c:\axis\samples\stock C:\axis\samples\stockjava -cp %AXISCLASSPATH% org.axis.client.AdminClient -lhtt p://localhost:8080/axis/services/AdminService deploy.wsdd Exception in thread main

RE: *SPAM*: 06.70/4.0 - Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Ana Belén Antón Gironés
Hi Suran! Obviously, as members of the Axis2 dev community, we wouldn't be suggesting that you move to another framework, although that is up to you. :-) No, of course. I think I am mixing basic concepts. I am going to try understand the basis first and then I will ask you again. Thanks.

Re: [Axis2] WS-Policy

2007-10-03 Thread Sanka Samaranayke
Hi Jim, I would be great if you can post the WSDL which you used to generate the stub so that we see whether we can reproduce the problem. Thanks, Sanka Jim Collins wrote: Hi Paul/Sanka, Thanks for the reply and apologies for taking so long in getting back to you. I have looked at

Cast Problem Example Axis2SampleDocLit

2007-10-03 Thread Johnson, Chris
All - I'm in the process of becoming familiar with Axis2(v1.3) as I have used Axis1 in the past. I'm running through the example found at the following location: http://ws.apache.org/axis2/1_2/adv-userguide.html After following all the steps as described and deploying the service with ease I

how many service instances are created in request scope?

2007-10-03 Thread Michele Mazzucco
Hi all, I know that if a service is deployed in application scope a new object instance will be created every time the service is called [1]. Others, instead, create a single instance [2]. Isn't it better to use the second approach, especially if the service is heavily used (if not, it could be

RE: Autogenerated code format - configuration for PrettyPrint (Jalopy)

2007-10-03 Thread James Maes
Would the developers list be a better place for this question? James Maes Software Architect Materialogic PH: 800-333-7144 PH: 314-997-4342 Ext. 3422 FX: 314-997-7814 From: James Maes [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 02, 2007 4:00 PM To: axis-user@ws.apache.org

Re: AXISCLASSPATH

2007-10-03 Thread Upul Godage
Hi, You are missing package apache. java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient If you still get the class not found error for AdminClient. Check whether AXISCLASSPATH has all axis/lib jars. e.g. echo %AXISCLASSPATH% Upul On 10/3/07, zhshqzyc [EMAIL PROTECTED] wrote: What

Re: Issue with Axis2 MTOM client

2007-10-03 Thread Yogesh . Dhake
Hi Mr Thilina Thanks for answering query. My Issue got resolved when I upgraded to axis2 1.3 . I was using axis2.1.1 on tomcat. Summary. 1) Axis2 can work as MTOM client or server. 2) For memory optimization we can do file caching on both sides. Thanks again. regards Yogesh Dhake

RE: Axis 2.0 Content-type

2007-10-03 Thread Ganesan, Chandru
Hi Keith Wonder if you had a chance to look at this. Thanks Chandru Ganesan From: Ganesan, Chandru Sent: Tuesday, October 02, 2007 1:11 PM To: axis-user@ws.apache.org Subject: RE: Axis 2.0 Content-type

Re: Axis 2.0 Content-type

2007-10-03 Thread keith chapman
Would it be possible for you the check this with the 1.3 release? Apparently its very stable (And i'm sure your scenario works perfectly on it). Thanks, Keith. On 10/3/07, Ganesan, Chandru [EMAIL PROTECTED] wrote: Hi Keith Wonder if you had a chance to look at this. Thanks Chandru

[AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Etienne Giraudy
Hi, I'm working on migrating a web service client from axis 1.4 to axis2 1.3. With axis2 I have an issue with a complex type containing a base64Binary element: xsd:complexType name=BinaryFile xsd:sequence xsd:element minOccurs=0 name=content nillable=true type=xsd:base64Binary/ xsd:element

Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux
Hi all, I have generated a client stub using WSDL2Java using XMLBeans against the following WSDL apparently created with XFire: http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl When I invoke the only method from this webservice with the AXIS2 generated stub I'm

RE: Axis 2.0 Content-type

2007-10-03 Thread Ganesan, Chandru
I can try this as last resort. Is there any patch for this in 1.1.1? Thanks Chandru Ganesan From: keith chapman [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 10:29 AM To: axis-user@ws.apache.org Subject: Re:

Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread keith chapman
Hi Patrick, Can you please check the EPR you send your request to, cause looking at ypur exception it looks like XFire responded with the WSDL (Thats where the definitions element came from instead of the SOAP envelop). Thanks, Keith. On 10/3/07, Patrick Houbaux [EMAIL PROTECTED] wrote: Hi

Re: Axis 2.0 Content-type

2007-10-03 Thread keith chapman
Well I cannot recollect it not working in 1.1.1, nevertheless 1.3 is much stable that that. If i remember correct the builders and formatters concept was introduced in 1.2 so I dont see it having an implication on 1.1. Thanks, Keith On 10/3/07, Ganesan, Chandru [EMAIL PROTECTED] wrote: I can

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread keith chapman
AFAIK chunking is true by default (When HTTP 1.1 is used) and if you wanna turn it off you have to specify it explicitly. Try this in your service MessageContext msgContext = org.apache.axis2.context .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(

RE: Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Walker, Jeff
Hi, So, I tried playing around with the http version. Theoretically, you should be able to set a property on the binding (or at least, the Call object) to switch between http 1.0 and http 1.1 This did not work. I could only manage to change to http 1.1 by editing the method writeToSocket() in

Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread Paul Fremantle
It seems maybe you are targeting the request against the WSDL url http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl not the SOAP URL http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface I tried building a simple client (ADB not XMLBeans) wsdl2java.bat

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878
Thanks for the answer. Will Axis2 include the content-length value in the HTTP header if I disable the chunking by default? The client seems to be very dependant of this header value! Thanks in advance Pierre keith chapman wrote: AFAIK chunking is true by default (When HTTP 1.1 is used)

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread keith chapman
yes it would. Thanks, Keith. On 10/3/07, FFF7878 [EMAIL PROTECTED] wrote: Thanks for the answer. Will Axis2 include the content-length value in the HTTP header if I disable the chunking by default? The client seems to be very dependant of this header value! Thanks in advance Pierre

Re: Problem with AXIS2 client against an XFire server

2007-10-03 Thread Patrick Houbaux
Thanks Paul and Keith! I was indeed passing the URL with ?wsdl ... my mistake ;) Cheers, Patrick. Paul Fremantle wrote: It seems maybe you are targeting the request against the WSDL url http://engineoushamburg.dyndns.org:6980/Update_BeamInterfaceInterface?wsdl not the SOAP URL

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878
I've disabled chunking in the service and the content-length is still not included by Axis2 in the HTTP header. Could it be an Axis2 1.3 bug? Thanks, Pierre keith chapman wrote: yes it would. Thanks, Keith. On 10/3/07, FFF7878 [EMAIL PROTECTED] wrote: Thanks for the answer. Will

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread keith chapman
No it cannot be a bug. Cause the content-length header is set by commonsHTTPTransportSender and this is a basic use case. So I dont think that its broken. Do you see the following header in the response? Transfer-Encoding: chunked Thanks, Keith. On 10/3/07, FFF7878 [EMAIL PROTECTED] wrote:

Re: Web Service REST + JSON

2007-10-03 Thread keith chapman
Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at http://wso2.org/library/768 ? Thanks, Keith. On 10/3/07, Karina Pereyra [EMAIL PROTECTED] wrote: I'm nearby of success. I have now my pojo services with this method, but i have the last problem. When i use Badgerfish

Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
i'd like to use mapped service not badgerfish but when i try to use mapped i have this error Mapped formatted JSON with namespaces are not supported in Axis2. Make sure that your request doesn't include namespaces or use the Badgerfish convention. do you know how i can remove namespaces? On

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread Thilina Gunarathne
hmm... Sounds like a bug... Better way to specify it is through the axis2.xml. Try disabling Chunking using Axis2.xml... If it's still broken try swtiching to http 1.0.. See this document: http://ws.apache.org/axis2/1_3/http-transport.html. thanks, Thilina On 10/3/07, FFF7878 [EMAIL PROTECTED]

Rampart throws NPE

2007-10-03 Thread Murali Krishnan
I'm trying to call a simple service deployed in Axis2. I'm trying to enforce that this service requires a SamlToken whenever it is called... If I invoke this service with a soap request that doesn't have any security headers, I get the below exception at the server. If I disenagage 'rampart'

Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
i look at the link you mentioned but it not cover to deploy a service using pojo + json + axis2 objects. On 10/3/07, keith chapman [EMAIL PROTECTED] wrote: Sorry Karina I'm not very familiar with Badgerfish. Did you have a look at http://wso2.org/library/768 ? Thanks, Keith. On 10/3/07,

Re: Rampart throws NPE

2007-10-03 Thread Murali Krishnan
The services.xml file contents I had included appear wrong in the earlier message. I have attached it in this mail. - Original Message From: Murali Krishnan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: axis-user@ws.apache.org Sent: Wednesday, October 3, 2007 2:19:56 PM Subject: Rampart

Re: Web Service REST + JSON

2007-10-03 Thread Thilina Gunarathne
AFAIK POJO support by defualt generates namespaces. But you can try specifying nameapce to package mapping pointing to the defualt namespace... Not sure whether it'll work.. If not you will have to either create your service using Axiom or using a code generation... These are the results of

Re: Web Service REST + JSON

2007-10-03 Thread Karina Pereyra
I don't have errors using badgerfish but i want to parse it into javascript and mapped is easier than badgerfish to parse. also i'm a neebie in java and axis2, could you suggest me some guides to create services using axiom or how to specify namespaces to default? thanks a lot. On 10/3/07,

Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Ajith Ranabahu
Hmm.. It could be a bug. I'm thinking that since we have special treatment for base64Binary, the problem could be that. Can you try putting the base64Binary type as the last element of the sequence ? (I have a feeling that the issue could be with something immediately following the base64bin

Performance analysis

2007-10-03 Thread Demetris G
Does anyone know if there has been any work on profiling Axis and Axis 2? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] WS-Policy

2007-10-03 Thread Jim Collins
Hi Sanka, I will send the WSDL tomorrow. Thanks for your help. Jim - Original Message - From: Sanka Samaranayke [EMAIL PROTECTED] To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 12:35 PM Subject: Re: [Axis2] WS-Policy Hi Jim, I would be great

Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Yogesh . Dhake
Hi I am bit new to Axis2 but I worked on SOAP / MTOM.I think element type need to be xmime:base64Binary as shown in axis2 sample. Etienne if you are planning to use MTOM then Axis sample on MTOM is quite useful. See how you can define your content element . I was succcessful in

[Axis2] SPNEGO

2007-10-03 Thread Jim Collins
Hi, Has anyone written an Axis2 client that accesses a Web Service using SPNEGO? I don't want to have the username and password of the account I want to authenticate against on the Web Service. Any help with this would be appreciated. Thanks Jim

Re: [AXIS2] Content-length not set in header

2007-10-03 Thread FFF7878
Hi, No, the Transfer-Encoding: chunked header is not present neither in the request nor in the response. I'm out of the office now until tuesday, so I won't be able to test any more but the response header I gave in the first e-mail are still the one I get when I disable HTTP chunking at runtime,

RE: Axis 1.4 configuration to use HTTP/1.1

2007-10-03 Thread Alick Buckley
Using Commons HTTP client with Axis By default Apache Axis 1.4 uses 'org.apache.axis.transport.http.HTTPSender' for http sending. It is possible to change this to use 'org.apache.commons.httpclient'. Change the transport pivot attribute in the configuration to point to the CommonsHTTPSender

problem with Axis2 1.3 not sending xml body

2007-10-03 Thread Eben Bruyns
Hi Guys, I've got an RPC encoded WSDL (yeah I know they are evil) which I converted to an RPC Literal. After I generated the proxy classes I'm unable to find the XML Data in the HTML body (this is a client proxy and it's doing a post). Am I missing something really obvious? Another thing I have

Re: problem with Axis2 1.3 not sending xml body

2007-10-03 Thread Eben Bruyns
Hi Guys, I just made a cut down version of the WSDL that is producing this issue for me, could anybody please point out my mistake? ?xml version=1.0 encoding=UTF-8? wsdl:definitions xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:apachesoap=http://xml.apache.org/xml-soap;

wsdl import failing with wsdl2java axis2-1.3

2007-10-03 Thread Norman Barker
Hi, I am using the ebRIM wsdl file here http://www.oasis-open.org/committees/regrep/documents/3.0/services/ebXMLRegistryServices.wsdl which I can't really change and all I have done is make it validate in eclipse by changing soap:body part to soap:body parts in ebXMLregistrybindings.wsdl. When

Re: *SPAM*: 08.50/4.0 - Re: Problem building available services

2007-10-03 Thread Lahiru Sandakith
Hi Ana, As from here [1] on page 1 we need to specify the correct path to the service classes (this should be ideally the point where your package structure starts). Also this [2] is the reference to the code generator plugins and if you interested here [3] is a tutorial that fully covers both

Re: Performance analysis

2007-10-03 Thread Upul Godage
http://wso2.org/library/91 Hope this helps. Upul On 10/4/07, Demetris G [EMAIL PROTECTED] wrote: Does anyone know if there has been any work on profiling Axis and Axis 2? Thanks - To unsubscribe, e-mail: [EMAIL

Re: Performance analysis

2007-10-03 Thread Demetris G
Super - thanks Upul. Upul Godage wrote: http://wso2.org/library/91 Hope this helps. Upul On 10/4/07, *Demetris G* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Does anyone know if there has been any work on profiling Axis and Axis 2? Thanks

Re: wsdl import failing with wsdl2java axis2-1.3

2007-10-03 Thread Amila Suriarachchi
Can you please try out with a nighly build? I fixed a similar issue earlier and this wsdl seems to be ok. Amila. On 10/4/07, Norman Barker [EMAIL PROTECTED] wrote: Hi, I am using the ebRIM wsdl file here

Re: [AXIS2] ADBException: Unexpected subelement contentType

2007-10-03 Thread Amila Suriarachchi
Can you send your wsdl? and your request and responses. have you enabled the MTOM or not? Amila. On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I am bit new to Axis2 but I worked on SOAP / MTOM.I think element type need to be xmime:base64Binary as shown in axis2 sample.

RE: [Axis2]wsdl2java with xmlbeans creates interface with xmlbeans.XmlString instead of java.lang.String

2007-10-03 Thread Pantvaidya, Vishwajit
Hi Amila, Am I doing anything wrong in the jaxme/jaxbri options? Or is it not working because their implementation is on a trial basis? If jaxme/jaxbri won't work - I was thinking of proceeding with xmlbeans. Ultimately I need to deal with MTOM attachments - so do I need to choose any