Re: WSDL2C: Deconflicting Duplicate Types and Methods Between WSDLs

2009-12-04 Thread Dimuthu Gamage
Hi, Unfortunately with the current setup there is no proper way to solve that conflict. One possible solution is to provide a parameter to set the prefix as you suggested, but there is no such thing implemented. Can you please create a jira to implement this option? Thanks Dimuthu On Sat, Oct 3

Re: WSDL2C: What to do after compiling Axis2 1.4.1. nightly build

2009-05-01 Thread Rajika Kumarasiri
On Sat, May 2, 2009 at 7:52 AM, Sam Carleton wrote: > Rajika, hi, > > > I am going off of this email from a week and a half ago, please see my > question below: > > On Wed, Apr 22, 2009 at 11:45 PM, Manjula Peiris wrote: > > > > On Wed, 2009-04-22 at 11:48 -0400, Bennett, Robert P wrote: > >

Re: WSDL2C: What to do after compiling Axis2 1.4.1. nightly build

2009-05-01 Thread Sam Carleton
Rajika, I am going off of this email from a week and a half ago, please see my question below: On Wed, Apr 22, 2009 at 11:45 PM, Manjula Peiris wrote: > > On Wed, 2009-04-22 at 11:48 -0400, Bennett, Robert P wrote: > > > > > > > > Major Changes Since Last Release > > > ==

Re: WSDL2C: What to do after compiling Axis2 1.4.1. nightly build

2009-05-01 Thread Rajika Kumarasiri
On Sat, May 2, 2009 at 5:18 AM, Sam Carleton wrote: > Folks, hi Sam, > > > I am after the latest greatest WSDL2C, which from my understanding is in > the Axis2/Java nightly build. > > I happen to be one of those C/C++ developers that does not know Java all > that well. I have pulled down the co

Re: WSDL2C exception

2009-04-06 Thread Anil
thanks alot Dimuthu On Sun, Apr 5, 2009 at 6:18 PM, Dimuthu Gamage wrote: > Hi Anil, > You wsdl should have external wsdls or/and schemas that are imported or > included. In that case you need to be online when running the tool. That is > not a requirement of the tool. > > Thanks > Dimuthu > > >

Re: WSDL2C exception

2009-04-05 Thread Dimuthu Gamage
Hi Anil, You wsdl should have external wsdls or/and schemas that are imported or included. In that case you need to be online when running the tool. That is not a requirement of the tool. Thanks Dimuthu On Sun, Apr 5, 2009 at 10:06 AM, Anil wrote: > I was trying to generate skelton and stub cod

Re: WSDL2C tool

2009-04-04 Thread Dimuthu Gamage
Hi, When you use -d none the operations are generated as axiom_node input and axiom_node output. If you want to generate c native types instead of that drop -d none part in the command (or just -d adb). And possibly add the -uw flag if you are using a nightly build. java org.apache.axis2.wsdl.WSDL

Re: WSDL2C tool

2009-04-03 Thread ramesh Gopal
Hello. I am having the following wsdl. http://xxx/visa_valid"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://xxx/visa_valid"; name="visa_valid" xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://sc

Re: wsdl2c question

2008-09-04 Thread Dimuthu Gamage
Hi Raghu, This can be due to 'UserCode' name is used for an element and 2 types (in different namespaces but with same name) in your WSDL. Just try to build the adb model depending on what is actually required. For an example if you generating stub you can start with the axis2_stub_your_service.

RE : RE : RE : RE : WSDL2C deserialisation problem

2008-07-17 Thread Lefrancois, Carl
ns. Carl -Message d'origine- De : Dimuthu Gamage [mailto:[EMAIL PROTECTED] Envoyé : jeudi, juillet 17, 2008 10:46 À : Apache AXIS C User List Objet : Re: RE : RE : RE : WSDL2C deserialisation problem Hi Carl, Again I tried without any elements in the parent type, i.e. only with an attribute

Re: RE : RE : RE : WSDL2C deserialisation problem

2008-07-17 Thread Dimuthu Gamage
LSE; and > see if it helps. > > > Carl > > > > > -Message d'origine- > De : Dimuthu Gamage [mailto:[EMAIL PROTECTED] > Envoyé : lundi, juillet 7, 2008 21:17 > À : Apache AXIS C User List > Objet : Re: RE : WSDL2C deserialisation problem > > &

RE : RE : RE : WSDL2C deserialisation problem

2008-07-16 Thread Lefrancois, Carl
-Message d'origine- De : Lefrancois, Carl Envoyé : mardi, juillet 8, 2008 11:23 À : Apache AXIS C User List Objet : RE : RE : WSDL2C deserialisation problem Hi Dimuthu, the parent type is Please let me know if there is anything else I can send you to help figure this ou

RE : RE : WSDL2C deserialisation problem

2008-07-08 Thread Lefrancois, Carl
is_early_node_valid = AXIS2_FALSE; and see if it helps. Carl -Message d'origine- De : Dimuthu Gamage [mailto:[EMAIL PROTECTED] Envoyé : lundi, juillet 7, 2008 21:17 À : Apache AXIS C User List Objet : Re: RE : WSDL2C deserialisation problem Hi Carl, I h

Re: RE : WSDL2C deserialisation problem

2008-07-07 Thread Dimuthu Gamage
> 503200 > > > So I know the value is there. > > > Carl > > > > -Message d'origine- > De : Dimuthu Gamage [mailto:[EMAIL PROTECTED] > Envoyé : lundi, juillet 7, 2008 14:41 > À : Apache AXIS C User L

RE : WSDL2C deserialisation problem

2008-07-07 Thread Lefrancois, Carl
deserialise: 503200 So I know the value is there. Carl -Message d'origine- De : Dimuthu Gamage [mailto:[EMAIL PROTECTED] Envoyé : lundi, juillet 7, 2008 14:41 À : Apache AXIS C User List Objet : Re: W

Re: WSDL2C deserialisation problem

2008-07-07 Thread Dimuthu Gamage
Hi Carl, My guess is this has missed the statement current_node = first_node; but it is just a guess. If you can send us the schema part which correspond to adb_CommercialActivityType we can find the error in the logic more easily and find exactly what current_node is. Thanks Dimuthu On Mon, Jul

Re: WSDL2C and fault

2008-06-09 Thread Dimuthu Gamage
Hi Frederic, Usually the case is if you set an error and return NULL from the business logic, the server should return an fault. (even in in-only messages the server should be able to respond with faults) But generated code for WSDL2C tool currently having problem in returning soap faults. In fact

Re: WSDL2C is not generating soap 1.2 compliant client stubs for wsdl with soap 1.2 bindings

2008-05-30 Thread Dimuthu Gamage
Hi, Please check the comment https://issues.apache.org/jira/browse/AXIS2C-1168?focusedCommentId=12601123#action_12601123 Thanks Dimuthu On Fri, May 30, 2008 at 4:02 PM, naveen bhat <[EMAIL PROTECTED]> wrote: > Hello Dimuthu, > > I have raised a jira with key AXIS2C-1168 . > > Thanks , > Navee

Re: WSDL2C is not generating soap 1.2 compliant client stubs for wsdl with soap 1.2 bindings

2008-05-30 Thread naveen bhat
Hello Dimuthu, I have raised a jira with key AXIS2C-1168. Thanks , Naveen On Fri, May 30, 2008 at 1:49 AM, Dimuthu Gamage <[EMAIL PROTECTED]> wrote: > Hi naveen, > > In fact looks like this

Re: WSDL2C is not generating soap 1.2 compliant client stubs for wsdl with soap 1.2 bindings

2008-05-30 Thread Dimuthu Gamage
Hi naveen, In fact looks like this is not possible with the current wsdl2c generated code. It just pick the first binding and generate code for that. Can you please raise a JIRA. I will look in to that asap. Thanks Dimuthu On Fri, May 30, 2008 at 3:06 PM, naveen bhat <[EMAIL PROTECTED]> wrote: >

Re: WSDL2C is not generating soap 1.2 compliant client stubs for wsdl with soap 1.2 bindings

2008-05-30 Thread naveen bhat
Hello group, Kindly let me know if my queries are relevant to this forum. I have not received any response for the query posted below. Do i need to post this axis2/java forum? Assistance needed. On Mon, May 26, 2008 at 4:47 AM, naveen bhat <[EMAIL PROTECTED]> wrote: > Hello group, > >

Re: RE : WSDL2C: structure definition is generated in C file so sizeof fails compilation

2008-04-21 Thread Dimuthu Gamage
> > But I am new to Axis2 as well, so better wait for more comments from experts > before implementing it rapidly > > > > Regards, > > Navin > > > > > From: Lefrancois, Carl [mailto:[EMAIL PROTECTED] > Sent: 21 April 2008

Re: WSDL2C: structure definition is generated in C file so sizeof fails compilation

2008-04-21 Thread Dimuthu Gamage
Hi alebu, It is really encouraged to use adb_my_type_create instead of explicitly using malloc to create the adb objects. I think create/free function should be completely able to fulfill your needs in managing object life. Thanks Dimuthu On Mon, Apr 21, 2008 at 6:08 PM, alebu <[EMAIL PROTECTED]>

RE: RE : WSDL2C: structure definition is generated in C file so sizeof fails compilation

2008-04-21 Thread Kamath, Navin
better wait for more comments from experts before implementing it rapidly Regards, Navin From: Lefrancois, Carl [mailto:[EMAIL PROTECTED] Sent: 21 April 2008 14:26 To: Apache AXIS C User List Subject: RE : WSDL2C: structure definition is generated in C file

RE : WSDL2C: structure definition is generated in C file so sizeof fails compilation

2008-04-21 Thread Lefrancois, Carl
Hi Alebu, I may be mistaken, but there will be some type redefinition problems if the struct is defined in a header that is included by many other files. Is it possible to create an instance of the struct and use sizeof() on that at run-time? HTH -Message d'origine-

RE: WSDL2C

2008-04-05 Thread Kamath, Navin
-> xsd1) is not an issue, I had mistakenly attached slightly old wsdl. But thanks for spotting it anyways. Thanks for all your help. Regards, Navin -Original Message- From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: 04 April 2008 17:52 To: Apache AXIS C User List Subject: Re: WSDL2C

Re: WSDL2C

2008-04-04 Thread Dimuthu Gamage
; > these be defined in the header files adb_add.h and adb_addResponse.h > > > > Using VC 7.1 installed as part of visual studio .NET 2003 > > > > C:\Axis2\axis2c-bin-1.3.0-win32\samples\client\calc2>cl > > Microsoft (R) 32-bit C/C++ Optimizing Comp

Re: WSDL2C

2008-04-04 Thread Dimuthu Gamage
o my client mainline, should > these be defined in the header files adb_add.h and adb_addResponse.h > > Using VC 7.1 installed as part of visual studio .NET 2003 > > C:\Axis2\axis2c-bin-1.3.0-win32\samples\client\calc2>cl > Microsoft (R) 32-bit C/C++ Optimizing Compiler

RE: WSDL2C

2008-04-04 Thread Kamath, Navin
Regards, Navin -Original Message- From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: 03 April 2008 19:06 To: Apache AXIS C User List Subject: Re: WSDL2C Oops, looks like it is not part of the windows build. Should be corrected in the next incomming patch release. For the time be

Re: WSDL2C

2008-04-03 Thread Dimuthu Gamage
hould I be trying a nightly > distribution. If I am right, then this tool was part of the distribution > since some time, right? > > Thanks for the quick reply > > Regards, > Navin > > > > -Original Message- > From: Dimuthu Gamage [mailto:[EMAIL PROTECTED

RE: WSDL2C

2008-04-03 Thread Kamath, Navin
rom: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: 03 April 2008 18:51 To: Apache AXIS C User List Subject: Re: WSDL2C Try to use the WSDL2C scripts in the "tools/codegen/javatool" directory of the axis2/C distribution. Note that you have to set AXIS2_HOME to the Axis2/Java distribution. T

Re: WSDL2C

2008-04-03 Thread Dimuthu Gamage
Try to use the WSDL2C scripts in the "tools/codegen/javatool" directory of the axis2/C distribution. Note that you have to set AXIS2_HOME to the Axis2/Java distribution. Thanks Dimuthu On Thu, Apr 3, 2008 at 11:09 PM, Kamath, Navin <[EMAIL PROTECTED]> wrote: > Hi there, > > I want to use WSDL2C

Re: WSDL2C: core dumped in generated code.

2008-03-14 Thread Simone Bordin
Hi Dimuthu, it seems that using guththila the crash problem is resolved also on linux. Now i'm testing it more deeply (in my application i need to use different services/stub) For now thanks, simone Dimuthu Gamage wrote: HI Simone, I heard that there are some problem with libxml parser

Re: WSDL2C CodeGenerationException

2008-03-12 Thread Carl Lefrançois
Hi Milinda, All Please ignore this thread. Dimuthu pointed out that I was using an old version of the WSDL2C tool and with the snapshot build the WSDL compiles with no problems. My apologies! Carl

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Dimuthu Gamage
HI Simone, I heard that there are some problem with libxml parser with mulitple threading in windows. It may be the problem you too facing in linux. Just for a test can you try building the axis2 with the guththila as the parser, you can do this by giving '--enable-guththila' as a configure option

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Simone Bordin
I'm using a nightly build of 15 february. In the next day i'll try with the lastest nigthly build. But i think the problem is in thread. I'm using 2 thead to call the same service but in different location (different URI). For each thread i have create its own eviroment (axutil_env_t) and stub

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Dimuthu Gamage
Hi Simone, I doubt whether it is a problem of WSDL2C as i coudn't see anything related to ADB (ADB is the most possible place to find errors in the codegen), BTW are you using the latest nightly build (from http://people.apache.org/dist/axis2/nightly/ ) or 1.3 build for the codegen tool?, if it is

Re: WSDL2C Generates Files with Compilation Errors

2008-03-10 Thread Senaka Fernando
> > I've just downloaded the Axis2 version 1.3 and I cannot see any class or > module that can generate C code from a wsdl file, even though the axis2c > documentation specifies that there is such a tool written in Java and even > points me to the Web location where I can find the the Java binaries

Re: WSDL2C Generates Files with Compilation Errors

2008-03-10 Thread astuce
I've just downloaded the Axis2 version 1.3 and I cannot see any class or module that can generate C code from a wsdl file, even though the axis2c documentation specifies that there is such a tool written in Java and even points me to the Web location where I can find the the Java binaries... Can

Re: WSDL2C CodeGenerationException

2008-03-06 Thread Milinda Pathirage
Hi Carl, It's hard to give a answer without looking at WSDL. Because this error was generated at the Data Binding code. So can you please send the WSDL to the list. Then it'll be easier for us to track the bug. Thanks Milinda On Fri, Mar 7, 2008 at 1:50 AM, Carl Lefrançois <[EMAIL PROTECTED]> w

RE: WSDL2C Generates Files with Compilation Errors

2008-01-23 Thread sreenivasulu guduru
wsdl for testing. Thank you for your support Regards Sreenivasulu Guduru. > Date: Thu, 24 Jan 2008 11:29:48 +0530> From: [EMAIL PROTECTED]> To: > axis-c-user@ws.apache.org> Subject: Re: WSDL2C Generates Files with > Compilation Errors> > BTW I tried your WS

Re: WSDL2C Generates Files with Compilation Errors

2008-01-23 Thread Dimuthu Gamage
_ > > > Date: Thu, 24 Jan 2008 06:55:19 +0530 > > From: [EMAIL PROTECTED] > > To: axis-c-user@ws.apache.org > > Subject: Re: WSDL2C Generates Files with Compilation Errors > > > > > > Hi sreenivasulu, > > > > Your wsdl is

RE: WSDL2C Generates Files with Compilation Errors

2008-01-23 Thread sreenivasulu guduru
Jan 2008 06:55:19 +0530> From: [EMAIL PROTECTED]> To: > axis-c-user@ws.apache.org> Subject: Re: WSDL2C Generates Files with > Compilation Errors> > Hi sreenivasulu,> > Your wsdl is an RPC-Encoded Style > one.> > Currently WSDL2C support for the RPC-Encoded s

Re: WSDL2C Generates Files with Compilation Errors

2008-01-23 Thread Dimuthu Gamage
Hi sreenivasulu, Your wsdl is an RPC-Encoded Style one. Currently WSDL2C support for the RPC-Encoded style WSDLs is in very primary state. Since we are using Axis2/Java tool for the code generation and Axis2/Java support for the RPC-Encoded is fairly new (infact just only one month old), we may

Re: Wsdl2C incorrect "choice" management

2007-12-19 Thread Dimuthu Gamage
Hi Simon, Yea it is a known bug:( We have a JIRA issue reported similar to yours, https://issues.apache.org/jira/browse/AXIS2C-826 Thanks DImuthu On Dec 19, 2007 8:31 PM, Simone Bordin <[EMAIL PROTECTED]> wrote: > Hi, > > In my operation parameter i have a "choice" element with 3 subelement. >

Re: WSDL2C Defects

2007-12-14 Thread Dimuthu Gamage
Hi Alastair, Please check the comments inline. On Nov 30, 2007 6:04 AM, Alastair FETTES <[EMAIL PROTECTED]> wrote: > I have a combination question/defect report. These are all in regards > to StubSourceTemplate.xsl. > > > > Defect 1: > - > (line 179 of StubSourceTemplate.xsl

Re: WSDL2C Defects

2007-12-04 Thread Dimuthu Gamage
Hi Alastair, I will fix the defects you mentioned, And thanks for posting them. Regarding the question you ask, you can set custom headers using axis2_svc_client_add_header function in your code. Thanks Dimuthu On Nov 30, 2007 6:04 AM, Alastair FETTES <[EMAIL PROTECTED]> wrote: > I have a com

Re: WSDL2C Stub Generation - Operations missing

2007-11-23 Thread Sebastian Merten
Hi Dimuthu, thanks for the quick answer. Now that I know this, I think I can live with "request-response" operations ... Von: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 22. November 2007 13:15 An: Apache AXIS C User List Betreff: Re: WSDL2C Stub Generation -

Re: WSDL2C Stub Generation - Operations missing

2007-11-22 Thread Dimuthu Gamage
Hi Sebastian, You wsdl have a operation with out only message exchange pattern. You can't generate code to this kind of scenarios using WSDL2C tool. AFAIK you need to work with Apache savan module here. And currently there are no other ways to generate the stub from the wsdl except the WSDL2C

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-20 Thread Dimuthu Gamage
Hi Bill, Currently whenever there is a name conflict in schema elements, they will be named with a post fix. And in the headers we should show the namespaces, so the developers will be able to figure out the right element. Thanks Dimuthu On Nov 21, 2007 8:16 AM, Bill Mitchell <[EMAIL PROTECTED]>

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-20 Thread Bill Mitchell
If I understand your reference to the absence of namespaces in my example, Dimuthu, you are correct to identify that as a distinct but similar name uniqueness issue. Certainly the WSDL itself could contain name conflicts that are resolved through the use of distinct namespaces. So, where I wrote

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-19 Thread Dimuthu Gamage
Hi Bill, Currently It tries to avoid following c reserved words, "auto", "double", "int", "struct", "break", "else", "long", "switch", "case", "enum", "register", "typedef", "char", "extern", "return", "union",

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-19 Thread Bill Mitchell
Interesting suggestion, Samisa. I modified my WSDL renaming the "delete" operation to "struct" and used the WSDL2C utility to generate the stub and header files. I see the same result, the header contains a template with the dummy parameter name struct: axiom2_node_t* axis2_stub_TestService_stru

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-16 Thread Dimuthu Gamage
Hi Bill, So briefly your suggestion is, For wsdl operations in the stub, axis2_stub_servicename_opname should be replaced with axis2_stub_op_servicename_opname. axis2_stub_servicename_opname_start should be replaced with axis2_stub_start_op_servicename_opname. and for consistency non wsdl-operatio

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-16 Thread Samisa Abeysinghe
Bill Mitchell wrote: In a similar vein, although I could raise it as a separate issue, I have come across another naming conflict in the output of the WSDL2C tool. In the same WSDL, I find another operation, this one named delete: ... ... The template in the header for the stub

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-16 Thread Bill Mitchell
In a similar vein, although I could raise it as a separate issue, I have come across another naming conflict in the output of the WSDL2C tool. In the same WSDL, I find another operation, this one named delete: ... ... The template in the header for the stub for this operation is:

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-16 Thread Bill Mitchell
Yes, Dimuthu, it occurred to me when I uncovered it that this is an issue without pretty solutions. Changing either the name of the axis support functions or the name of the generated operation functions would impact existing users who re-generated their stubs. On the other hand, there are rea

Re: WSDL2C create function conflicts with SOAP operation named create

2007-11-15 Thread Dimuthu Gamage
Hi Bill, Yea, that is a big issue. But since the tool has been there for sometime there would be codes that stick to the current api given by the generated code.. SO one thing we can do is, check whether the names for operations conflicts with the _create, _populate_services and _get_endpoint_ur

Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-09 Thread Dr. Florian Steinborn
Hi Samisa Looks like a logic error in the generated code. I could change the style sheet logic to include this. However, I would like to have a test case to ensure the change works. attached you find a WSDL and the generated C code with the error. This could make it easier to see your cha

Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-09 Thread Samisa Abeysinghe
Looks like a logic error in the generated code. I could change the style sheet logic to include this. However, I would like to have a test case to ensure the change works. Samisa... Dr. Florian Steinborn wrote: Hi, just to let you know what we did to temporarily bypass the problem: We added

Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-09 Thread Dr. Florian Steinborn
Hi, just to let you know what we did to temporarily bypass the problem: We added just one exclamation mark and it works: [...] if(has_parent) axutil_stream_write(stream, env, start_input_str, start_input_str_len); changed to if(!has_parent) axutil_stream_write(stream, env, start

Re: [WSDL2C] Error with latest source

2007-06-17 Thread Dimuthu Gamage
Hi JeffKee, It was a little bug and now it is fixed in the latest SVN source . If you are running on SNAPSHOTS try unpack axis2-codegen-SNAPSHOT.jar and open "org/apache/axis2/wsdl/codegen/codegen-config.properties" file (this is a text file) and remove c-sharp from the "codegen.languages" propert

Re: WSDL2C Code generation tool ( C Implementation ) - questions

2006-10-17 Thread Dimuthu Chathuranga
Hi Dave,On 10/18/06, Dave Meier <[EMAIL PROTECTED]> wrote: 1.  Does this new tool currently only build on Linux or can I build it on Windows?This compiles and works only on linux, There are no Makefiles available to build it on windows. 2.  Does it generate the data structures in C? There a

Re: WSDL2C REST question

2006-10-17 Thread Samisa Abeysinghe
Dave Meier wrote: To use REST with Axis2C, do I need to define my inputs and outputs as generic XML nodes or can I use specifically defined structures for these? You have to work at XML level; it is an XML-in/XML-out model that we support. There are no predefined structures for doing REST. I wa