axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage" <dimut...@gmail.com>
Subject Re: FW: Problem with Service deployed
Date Tue, 18 Mar 2008 11:11:38 GMT
Hi Rahil,

The example shown in the samples/codegen are generated from the
following wsdl.  ( as mentioned in the Readme)
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl?view=markup

Looks like you are  using a different Calculator.wsdl (that is taken
from samples/servers/Caclculator), You hve to change those mentioned
functions to suit to your generated code, for an example,
adb_add_get_param_1
adb_add_get_param_2
adb_addResponse_create
adb_addResponse_get_result

Calculator.wsdl in samples/server is added recently and is little bit
differnet from the Calculator.wsdl in the test/resources/wsdl, As
senaka said we should make both WSDL the same, otherwise user like you
can easily confused with different WSDL with same name.

Thanks
Dimuthu



On Tue, Mar 18, 2008 at 12:50 PM, Rahil Ali <rahil.ali@tpsonline.com> wrote:
> Hello Dimuthu,
>
>  I was using the implementation from
>  "http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/serv
>  er/calculator/axis2_skel_Calculator.c?revision=599392&view=markup". Whenever
>  the execution reaches any of these functions:
>
>  -adb_add_get_in0
>  -adb_add_get_in1
>  -adb_addResponse_create
>  -adb_addResponse_set_addReturn
>  .....
>  It generates error "Failed in creating DLL". If I remove all the code and
>  simple return NULL the service executes fine... I have placed
>  "libCalculator.so", service.xml, Calculator.wsdl in my services/Calculator
>  fodler. Please tell me where am I going wrong..
>
>  I cannot find any implemetation of these functions, how are these
>  executing...
>
> Thanks & Regards,
>  Rahil Ali
>
>
>  -----Original Message-----
>
> From: Dimuthu Gamage [mailto:dimuthuc@gmail.com]
>
>
> Sent: Saturday, March 15, 2008 11:33 AM
>  To: Apache AXIS C User List; senaka@wso2.com
>  Subject: Re: FW: Problem with Service deployed
>
>  Infact there is a sample for the Calculator with codegen support
>  inside the samples/codegen directory, Hope that set of samples are
>  usefull for you
>
>  Thanks
>  Dimuthu
>
>  On Fri, Mar 14, 2008 at 9:20 PM, Senaka Fernando <senaka@wso2.com> wrote:
>  > Hi Rahil,
>  >
>  >  You should be able to find samples in the "samples" folder, that is found
>  >  inside the distribution. If you are referring to a demo application that
>  >  utilizes the code generated for the Calculator WSDL, I'm sorry that it is
>  >  not available on Axis2/C at the moment.
>  >
>  >  Regards,
>  >  Senaka
>  >
>  >
>  >
>  >  On Fri, 2008-03-14 at 16:00 +0500, Rahil Ali wrote:
>  >  Hi Senaka,
>  >  >
>  >  > Please provide me some sample web services.. Thanks,
>  >  >
>  >  > -----Original Message-----
>  >  > From: Rahil Ali [mailto:rahil.ali@tpsonline.com]
>  >  > Sent: Thursday, March 13, 2008 4:19 PM
>  >  > To: 'Apache AXIS C User List'; 'senaka@wso2.com'
>  >  > Subject: RE: FW: Problem with Service deployed
>  >  >
>  >  > Hello Senaka,
>  >  >
>  >  > Thanks very much for your support, It worked and I can now add the
>  >  reference
>  >  > in .Net. But when I tried to access its method "add" it gave an
>  exception:
>  >  > "Data element of the OM Node is NULL" I think this is because I havent
>  >  > implemented anything in the functions: Can you please send me a sample
>  >  > source code so that I can get an idea like what are the uses of " const
>  >  > axutil_env_t *env" or how to use parameteres/returning values "
>  adb_add_t*
>  >  > add" , " adb_addResponse_t*"
>  >  >
>  >  > Thanks & regards,
>  >  > Rahil Ali
>  >  >
>  >  > -----Original Message-----
>  >  > From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > Sent: Wednesday, March 12, 2008 9:50 PM
>  >  > To: Apache AXIS C User List
>  >  > Subject: RE: FW: Problem with Service deployed
>  >  >
>  >  > Hi Rahil,
>  >  >
>  >  > This works fine for me. The WSDL discovery will work only if you use
>  the
>  >  > Axis2/C source found in the svn head. I was under the impression that
>  you
>  >  > were using that. However, if you are using the 1.3.0 distribution, I
>  think
>  >  > the other alternate to how a static WSDL can be deployed was available.
>  >  >
>  >  > This works as this.
>  >  >
>  >  > add this to your services.xml after the ServiceClass parameter
>  >  >
>  >  > <parameter name="wsdl_path">[path]</parameter>
>  >  >
>  >  > In here specify the absolute path to your wsdl, in the place of [path].
>  >  > You might be able to specify a relative path, but, the absolute path is
>  >  > guaranteed to work. (ex:-
>  >  > /home/user/axis2/c/deploy/services/Calculator/Calculator.wsdl)
>  >  >
>  >  > The lib<SERVICE_NAME>.so is rather a Linux convention. And, when trying
>  to
>  >  > locate your service, the engine will try to find the dll by that name.
>  >  >
>  >  > Regards,
>  >  > Senaka
>  >  >
>  >  > > Hello Senaka,
>  >  > >
>  >  > > I have service.xml, Calculator.wsdl and libCalculator.so in my
>  >  > > $AXIS2C_HOME/services/Calculator folder, still I cannot access wsdl
>  using
>  >  > > this..
>  >  > >     "http://192.168.4.163/axis2/services/Calculator?wsdl"
>  >  > > Whats going wrong here...
>  >  > >
>  >  > >
>  >  > > Besides this one other thing to ask: how is libCalculator comes in
>  >  action,
>  >  > > does AXIS2C always use lib<SERVICE_NAME>.so file?
>  >  > >
>  >  > > Thanks,
>  >  > > Rahil
>  >  > >
>  >  > >
>  >  > > -----Original Message-----
>  >  > > From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > > Sent: Wednesday, March 12, 2008 6:50 PM
>  >  > > To: axis-c-user@ws.apache.org
>  >  > > Subject: RE: FW: Problem with Service deployed
>  >  > >
>  >  > > Hi Rahil,
>  >  > >
>  >  > > Well the static WSDL deployment feature was fully supported after we
>  >  > > released 1.3.0. So it will be reflected in the online documentation
>  with
>  >  > > the next release. However, if you use the subversion source (for
>  >  > > developers) of Axis2/C; the manual found there has the necessary
>  updates.
>  >  > > Thus, in addition to copying the service.xml and the .so, you will
>  also
>  >  > > have to copy the wsdl and save it by the name, <service_name>.wsdl
>  (ex:-
>  >  > > Calculator.wsdl). The META-INF folder is something related to
>  Axis2/Java.
>  >  > > It doesn't apply to you.
>  >  > >
>  >  > > Regards,
>  >  > > Senaka
>  >  > >
>  >  > >> Hello Senaka,
>  >  > >>
>  >  > >> A couple of things to clearup,
>  >  > >> I am standing on $AXIS2C_HOME/services/Calculator folder, I ran
>  WSDL2C
>  >  > >> on
>  >  > >> Calculator.wsdl, it generated
>  >  > >> - src/
>  >  > >>    + *.h
>  >  > >>    + *.c
>  >  > >>    + Build.sh
>  >  > >> - resources/
>  >  > >>    service.xml
>  >  > >>
>  >  > >> I ran build.sh which generated "libCalculator.so". Now how to call
>  the
>  >  > >> service? for that I setup according to the User-guide.
>  >  > >> 1-Copied service.xml from $AXIS2C_HOME/services/Calculator/resources
>  >  > >> directory to $AXIS2C_HOME/services/Calculator and 2-similarly copied
>  >  > >> libCalculator.so
>  >  > >>
>  >  > >> Still I am unable to access the wsdl via internet explorer. I read
>  in
>  >  > >> some
>  >  > >> article that wsdl file should be placed in some META-INF folder, but
>  I
>  >  > >> am
>  >  > >> not sure about exact setup of files, can you please explain me that
>  what
>  >  > >> should be the folder structure. My current structure is like
>  >  > >>
>  >  > >>    $AXIS2C_HOME/services/Calculator/Calculator.wsdl
>  >  > >>                                              /resources/
>  >  > >>                                              /services.xml
>  >  > >>                                              /src/
>  >  > >>
>  >  > >>    $AXIS2C_HOME/services/Calculator/resources/services.xml
>  >  > >>
>  >  > >>    $AXIS2C_HOME/services/Calculator/src/axis2_skel_Calculator.h
>  >  > >>
>  >  > >> /axis2_skel_Calculator.c
>  >  > >>                                                  /adb_subResponse.h
>  >  > >>                                                  /adb_subResponse.c
>  >  > >>                                                  /adb_sub.h
>  >  > >>                                                  /adb_sub.c
>  >  > >>                                                  /adb_mulResponse.h
>  >  > >>                                                  /adb_mulResponse.c
>  >  > >>                                                  /adb_mul.h
>  >  > >>                                                  /adb_mul.c
>  >  > >>                                                  /adb_divResponse.h
>  >  > >>                                                  /adb_divResponse.c
>  >  > >>                                                  /adb_div.h
>  >  > >>                                                  /adb_div.c
>  >  > >>                                                  /adb_addResponse.h
>  >  > >>                                                  /adb_addResponse.c
>  >  > >>                                                  /adb_add.h
>  >  > >>                                                  /adb_add.c
>  >  > >>                                                  /build.sh
>  >  > >>
>  >  > >> /axis2_svc_skel_Calculator.c
>  >  > >>                                                  /libCalculator.so
>  >  > >>                                                  /Calculator.wsdl
>  >  > >> Thanks & regards,
>  >  > >> Rahil
>  >  > >>
>  >  > >>
>  >  > >> -----Original Message-----
>  >  > >> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >> Sent: Wednesday, March 12, 2008 5:06 PM
>  >  > >> To: axis-c-user@ws.apache.org
>  >  > >> Subject: RE: FW: Problem with Service deployed
>  >  > >>
>  >  > >> Hi Rahil,
>  >  > >>
>  >  > >> This portion is not automated. To get the WSDL u will have to copy
>  it
>  >  > >> manually to the folder in which u find the .so. The name should be
>  the
>  >  > >> same as the Service. In Axis2/C we do support static WSDLs only. No
>  >  > >> dynamic generation at the moment.
>  >  > >>
>  >  > >> Regards,
>  >  > >> Senaka
>  >  > >>
>  >  > >>> Hi Senaka,
>  >  > >>>
>  >  > >>> Thanks very much for your replies, WSDL2C worked.. I removed
>  previous
>  >  > >>> JDK
>  >  > >>> installation. It generated 2 directories resources and src
>  >  > >>>
>  >  > >>> Src directory contains lot of files, separate files for each
>  >  > >>> functions..
>  >  > >>> In
>  >  > >>> which file do I have to implement the business logic, for example
>  there
>  >  > >>> are
>  >  > >>> several files for add function : adb_add.c, adb_addResponse.c.
>  >  > >>>
>  >  > >>> For now I just ran build.sh without implementing any logic, it
>  >  > >>> generated
>  >  > >>> libCalculator.so; I put service.xml from resources folder and
>  >  > >>> libCalculator
>  >  > >>> in $AXIS2C_HOME/service/Calculator folder and tried to access the
>  URL :
>  >  > >>> http://192.168.4.163/axis2/services/Calculator?wsdl
>  >  > >>>
>  >  > >>> It gave error while http://192.168.4.163/axis2/services/Calculator
>  is
>  >  > >>> displaying the service properly...
>  >  > >>>
>  >  > >>> Deployed Services
>  >  > >>> Calculator
>  >  > >>> Calculator Service
>  >  > >>>
>  >  > >>> Available Operations
>  >  > >>> div
>  >  > >>> add
>  >  > >>> sub
>  >  > >>> mul
>  >  > >>>
>  >  > >>> Pls advice,
>  >  > >>> Thanks,
>  >  > >>> Rahil
>  >  > >>>
>  >  > >>> -----Original Message-----
>  >  > >>> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>> Sent: Wednesday, March 12, 2008 3:05 PM
>  >  > >>> To: Apache AXIS C User List
>  >  > >>> Subject: RE: FW: Problem with Service deployed
>  >  > >>>
>  >  > >>> Hi Rahil,
>  >  > >>>
>  >  > >>> Seems to be a Java issue rather. That should be the most likely
>  >  > >>> scenario.
>  >  > >>> You can AFAIK have concurrent JDK installations. I tried on Java5
>  and
>  >  > >>> Java6 an it does work fine
>  >  > >>>
>  >  > >>> Regards,
>  >  > >>> Senaka
>  >  > >>>
>  >  > >>>> Hi Senaka,
>  >  > >>>>
>  >  > >>>> I tried " WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl
>  -ss
>  >  > >>>> -sd
>  >  > >>>> -d adb -u"
>  >  > >>>>
>  >  > >>>> It gives different error:
>  >  > >>>>
>  >  > >>>> Retrieving document at '../services/Calculator/Calculator.wsdl'.
>  >  > >>>> Exception in thread "main"
>  >  > >>>> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
>  parsing
>  >  > >>>> WSDL
>  >  > >>>>    at
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
>  >  > >>>> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>  >  > >>>>    at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[])
>  >  > >>>> (Unknown
>  >  > >>>> Source)
>  >  > >>>> Caused by: javax.wsdl.WSDLException: WSDLException:
>  >  > >>>> faultCode=OTHER_ERROR:
>  >  > >>>> Unable to resolve imported document at
>  >  > >>>> '../services/Calculator/Calculator.wsdl'.:
>  >  > >>>> java.io.FileNotFoundException:
>  >  > >>>> This file was not found:
>  >  > >>>>
>  file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>  >  > >>>>    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
>  >  > >>>> java.lang.String) (Unknown Source)
>  >  > >>>>    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String)
>  >  > >>>> (Unknown
>  >  > >>>> Source)
>  >  > >>>>    at
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(java.la
>  >  > >>>> ng.String) (Unknown Source)
>  >  > >>>>    at
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
>  >  > >>>> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>  >  > >>>>    ...1 more
>  >  > >>>> Caused by: java.io.FileNotFoundException: This file was not found:
>  >  > >>>>
>  file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>  >  > >>>>    at
>  >  > >>>>
>  com.ibm.wsdl.util.StringUtils.getContentAsInputStream(java.net.URL)
>  >  > >>>> (Unknown Source)
>  >  > >>>>    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
>  >  > >>>> java.lang.String) (Unknown Source)
>  >  > >>>>    ...4 more
>  >  > >>>>
>  >  > >>>>
>  >  > >>>> Pls Advice,
>  >  > >>>> Thanks & Regards,
>  >  > >>>> Rahil
>  >  > >>>>
>  >  > >>>>
>  >  > >>>> -----Original Message-----
>  >  > >>>> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>> Sent: Wednesday, March 12, 2008 2:43 PM
>  >  > >>>> To: axis-c-user@ws.apache.org
>  >  > >>>> Subject: RE: FW: Problem with Service deployed
>  >  > >>>>
>  >  > >>>> Hi Rahil,
>  >  > >>>>
>  >  > >>>> Did you try "WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl
>  -ss
>  >  > >>>> -sd
>  >  > >>>> -d adb -u" Also?
>  >  > >>>>
>  >  > >>>> Can you let me know?
>  >  > >>>>
>  >  > >>>> Regards,
>  >  > >>>> Senaka
>  >  > >>>>
>  >  > >>>>> Hi Senaka,
>  >  > >>>>>
>  >  > >>>>> I tried that as well
>  >  > >>>>>> WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd -d
>  >  > >>>>>> none
>  >  > >>>>> Still the same error...
>  >  > >>>>>
>  >  > >>>>>
>  >  > >>>>> Retrieving document at '../services/Calculator/Calculator.wsdl'.
>  >  > >>>>> Exception in thread "main" java.lang.NoSuchMethodError: method
>  >  > >>>>> java.io.File.toURI was not found.
>  >  > >>>>>    at _Jv_ResolvePoolEntry(java.lang.Class, int)
>  >  > >>>>> (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>    at
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(java.lang.Stri
>  >  > >>>>> ng) (Unknown Source)
>  >  > >>>>>    at
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
>  >  > >>>>> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>  >  > >>>>>    at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[])
>  >  > >>>>> (Unknown
>  >  > >>>>> Source)
>  >  > >>>>>
>  >  > >>>>>
>  >  > >>>>> Pls advice..
>  >  > >>>>>
>  >  > >>>>> Thanks & Regards,
>  >  > >>>>> Rahil Ali
>  >  > >>>>>
>  >  > >>>>> -----Original Message-----
>  >  > >>>>> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>>> Sent: Wednesday, March 12, 2008 1:28 PM
>  >  > >>>>> To: Apache AXIS C User List
>  >  > >>>>> Subject: RE: FW: Problem with Service deployed
>  >  > >>>>>
>  >  > >>>>> Hi Rahil,
>  >  > >>>>>
>  >  > >>>>> May be it is your Java version. Also, I provided the relative
>  path to
>  >  > >>>>> the
>  >  > >>>>> wsdl. My case, it was inside samples/server/Calculator, and tool
>  is
>  >  > >>>>> found
>  >  > >>>>> at  tools/codegen/javatool. So, the relative path was,
>  >  > >>>>> "../../../samples/server/Calculator/Calculator.wsdl".
>  >  > >>>>>
>  >  > >>>>> In your case, if you are trying the WSDL2C.sh in the bin, it
>  would
>  >  > >>>>> rather
>  >  > >>>>> be, "../services/Calculator/Calculator.wsdl"
>  >  > >>>>>
>  >  > >>>>> Please try that too.
>  >  > >>>>>
>  >  > >>>>> Regards,
>  >  > >>>>> Senaka
>  >  > >>>>>
>  >  > >>>>>> Hi Senaka,
>  >  > >>>>>>
>  >  > >>>>>> I tried the same thing.. I downloaded both wsdls and tried on my
>  >  > >>>>>> Linux
>  >  > >>>>>> machine.. I put the Calculator.wsdl in
>  >  > >>>>>> $AXIS2C_HOME/services/Calculator/
>  >  > >>>>>> and
>  >  > >>>>>> hello.wsdl in $AXIS2C_HOME/services/hello folders and tried
>  WSDL2C..
>  >  > >>>>>> My
>  >  > >>>>>> WSDL2C.sh is:
>  >  > >>>>>>
>  >  > >>>>>> #!/bin/sh
>  >  > >>>>>>
>  >  > >>>>>> #export AXIS2_HOME=/home/axis2java
>  >  > >>>>>> for f in $AXIS2_HOME/lib/*.jar
>  >  > >>>>>> do
>  >  > >>>>>>   AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f
>  >  > >>>>>> done
>  >  > >>>>>> export AXIS2_CLASSPATH
>  >  > >>>>>>
>  >  > >>>>>> echo the classpath $AXIS2_CLASSPATH
>  >  > >>>>>> java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $*
>  >  > >>>>>>
>  >  > >>>>>>
>  >  > >>>>>> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
>  >  > >>>>>> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>  >  > >>>>>>
>  >  > >>>>>> What could be the problem... Is this because of some jar file
>  >  > >>>>>> missing
>  >  > >>>>>> or
>  >  > >>>>>> is
>  >  > >>>>>> it because of my JAVA version..
>  >  > >>>>>>
>  >  > >>>>>> Thanks & Regards,
>  >  > >>>>>> Rahil
>  >  > >>>>>>
>  >  > >>>>>>
>  >  > >>>>>> -----Original Message-----
>  >  > >>>>>> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>>>> Sent: Wednesday, March 12, 2008 1:13 PM
>  >  > >>>>>> To: axis-c-user@ws.apache.org
>  >  > >>>>>> Subject: RE: FW: Problem with Service deployed
>  >  > >>>>>>
>  >  > >>>>>> Hi Rahil,
>  >  > >>>>>>
>  >  > >>>>>> I think you misunderstood what is on [URL
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>  >  > >>>>>> ator/Calculator.wsdl?view=markup]
>  >  > >>>>>>
>  >  > >>>>>> This is basically a browser to the svn repo. You will have to
>  >  > >>>>>> download
>  >  > >>>>>> the
>  >  > >>>>>> WSDL from there to your local machine and then try it.
>  >  > >>>>>>
>  >  > >>>>>> Regarding the .NET WSDL scenario, try saving it to your local
>  >  > >>>>>> machine
>  >  > >>>>>> and
>  >  > >>>>>> trying it.
>  >  > >>>>>>
>  >  > >>>>>> Regards,
>  >  > >>>>>> Senaka
>  >  > >>>>>>
>  >  > >>>>>>> Hello Senaka,
>  >  > >>>>>>>
>  >  > >>>>>>> Thanks very much for your prompt replies and support.
>  >  > >>>>>>> Yes the problem was I didn't set JAVA_HOME and AXIS2_HOME
>  properly.
>  >  > >>>>>>> Now
>  >  > >>>>>>> its
>  >  > >>>>>>> giving a different kind of error:
>  >  > >>>>>>> When I tried it one the WSDL from : [URL
>  >  > >>>>>>>
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>  >  > >>>>>>> ator/Calculator.wsdl?view=markup]
>  >  > >>>>>>>
>  >  > >>>>>>> It gives:
>  >  > >>>>>>> ----------
>  >  > >>>>>>> Retrieving document at 'Calculator.wsdl'.
>  >  > >>>>>>> Exception in thread "main" java.lang.NoSuchMethodError: method
>  >  > >>>>>>> java.io.File.toURI was not found.
>  >  > >>>>>>>    at _Jv_ResolvePoolEntry(java.lang.Class, int)
>  >  > >>>>>>> (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>>>    at
>  >  > >>>>>>>
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(java.lang.Stri
>  >  > >>>>>>> ng) (Unknown Source)
>  >  > >>>>>>>    at
>  >  > >>>>>>>
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
>  >  > >>>>>>> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>  >  > >>>>>>>    at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[])
>  >  > >>>>>>> (Unknown
>  >  > >>>>>>> Source)
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>> I tried that on a WSDL generated by .Net with only one function
>  >  > >>>>>>> implemented
>  >  > >>>>>>> it gave the same error. Pls help me out..
>  >  > >>>>>>>
>  >  > >>>>>>> Thanks & Regards,
>  >  > >>>>>>> Rahil
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>> -----Original Message-----
>  >  > >>>>>>> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>>>>> Sent: Wednesday, March 12, 2008 12:32 AM
>  >  > >>>>>>> To: Apache AXIS C User List
>  >  > >>>>>>> Subject: Re: FW: Problem with Service deployed
>  >  > >>>>>>>
>  >  > >>>>>>> Hi Rahil,
>  >  > >>>>>>>
>  >  > >>>>>>> BTW, U find documentation on how to use the WSDL2C tool on the
>  >  > >>>>>>> Axis2/C
>  >  > >>>>>>> Manual. [URL
>  >  > >>>>>>> http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c]
>  >  > >>>>>>> I think the issue is that you may not be providing the options
>  >  > >>>>>>> properly.
>  >  > >>>>>>>
>  >  > >>>>>>> Let me guide you through the process.
>  >  > >>>>>>>
>  >  > >>>>>>> 1. I hope you already have the AXIS2/Java snapshot. If not
>  please
>  >  > >>>>>>> download
>  >  > >>>>>>> it. Info can be found on the Axis2/C manual at the link above.
>  >  > >>>>>>>
>  >  > >>>>>>> 2. Set the Java Home environment variable.
>  >  > >>>>>>>
>  >  > >>>>>>> ex:- export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03/
>  >  > >>>>>>>
>  >  > >>>>>>> 3. WSDL2C.sh expects AXIS2_HOME and not AXIS2C_HOME if you
>  didn't
>  >  > >>>>>>> modify
>  >  > >>>>>>> it. You will have to set this too.
>  >  > >>>>>>>
>  >  > >>>>>>> ex:- export AXIS2_HOME=/home/user/Desktop/axis2-SNAPSHOT/
>  >  > >>>>>>>
>  >  > >>>>>>> axis2-SNAPSHOT is the folder that is created when you extract
>  the
>  >  > >>>>>>> binary
>  >  > >>>>>>> distribution Snapshot.
>  >  > >>>>>>>
>  >  > >>>>>>> 4. Then if you read through the manual you'll see something
>  like,
>  >  > >>>>>>>
>  >  > >>>>>>> run "java org.apache.axis2.wsdl.WSDL2C -uri
>  >  > >>>>>>> interoptestdoclitparameters.wsdl -ss -sd -d adb -u"
>  >  > >>>>>>>
>  >  > >>>>>>> Instead of that run "./WSDL2C.sh -uri
>  >  > >>>>>>> interoptestdoclitparameters.wsdl
>  >  > >>>>>>> -ss
>  >  > >>>>>>> -sd -d adb -u"
>  >  > >>>>>>>
>  >  > >>>>>>> Please notice that I'm replacing the part "java
>  >  > >>>>>>> org.apache.axis2.wsdl.WSDL2C" with "./WSDL2C.sh".
>  >  > >>>>>>>
>  >  > >>>>>>> The same applies for other methods mentioned on the manual.
>  >  > >>>>>>>
>  >  > >>>>>>> 5. I tried to generate code for the WSDL found at,
>  >  > >>>>>>>
>  >  > >>>>>>> [URL
>  >  > >>>>>>>
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>
>  >  > >
>  >  >
>  http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>  >  > >>>>>>> ator/Calculator.wsdl?view=markup]
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>> I have tried this and I did not fail. So I believe that a
>  failure
>  >  > >>>>>>> would
>  >  > >>>>>>> be
>  >  > >>>>>>> only due an issue in setting up Java on your machine.
>  >  > >>>>>>>
>  >  > >>>>>>> HTH,
>  >  > >>>>>>>
>  >  > >>>>>>> Regards,
>  >  > >>>>>>> Senaka
>  >  > >>>>>>>
>  >  > >>>>>>>> Hi,
>  >  > >>>>>>>> it seems that your wsdl cannot be read. can you recheck the
>  option
>  >  > >>>>>>>> you
>  >  > >>>>>>>> give to the tool,
>  >  > >>>>>>>>
>  >  > >>>>>>>> Was it like,
>  >  > >>>>>>>>
>  >  > >>>>>>>> WSDL2C.sh -uri yourwsdl.wsdl -u
>  >  > >>>>>>>>
>  >  > >>>>>>>> If not it is better try to generate java code for the wsdl
>  (there
>  >  > >>>>>>>> is
>  >  > >>>>>>>> a
>  >  > >>>>>>>> wsdl2java.sh/.bat script packed with the java snapshot bin
>  >  > >>>>>>>> directory),
>  >  > >>>>>>>> Please let us know the results of above tests, we can figure
>  out
>  >  > >>>>>>>> where
>  >  > >>>>>>>> the error is
>  >  > >>>>>>>>
>  >  > >>>>>>>> Thanks
>  >  > >>>>>>>> Dimuthu
>  >  > >>>>>>>>
>  >  > >>>>>>>>
>  >  > >>>>>>>>
>  >  > >>>>>>>> On Tue, Mar 11, 2008 at 6:35 PM, Rahil Ali
>  >  > >>>>>>>> <rahil.ali@tpsonline.com>
>  >  > >>>>>>>> wrote:
>  >  > >>>>>>>>> Hi Everyone...
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Pls reply...
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  I cannot run the WSDL2C.sh successfully...
>  >  > >>>>>>>>>  I downloaded all the jar files and put them in to
>  >  > >>>>>>>>> $AXIS2C_HOME/lib
>  >  > >>>>>>>>> folder.
>  >  > >>>>>>>>>  My WSDL2C.sh is like:
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>         #!/bin/sh
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>         #export AXIS2_HOME=/home/axis2java
>  >  > >>>>>>>>>         for f in $AXIS2C_HOME/lib/*.jar
>  >  > >>>>>>>>>         do
>  >  > >>>>>>>>>           AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f
>  >  > >>>>>>>>>         done
>  >  > >>>>>>>>>         export AXIS2_CLASSPATH
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>         #echo the classpath $AXIS2_CLASSPATH
>  >  > >>>>>>>>>         java -classpath $AXIS2_CLASSPATH
>  >  > >>>>>>>>> org.apache.axis2.wsdl.WSDL2C
>  >  > >>>>>>>>> $*
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  It is giving me this error:
>  >  > >>>>>>>>>         Exception in thread "main"
>  java.lang.NoSuchMethodError:
>  >  > >>>>>>>>> method
>  >  > >>>>>>>>>  java.io.File.toURI was not found.
>  >  > >>>>>>>>>            at _Jv_ResolvePoolEntry(java.lang.Class, int)
>  >  > >>>>>>>>>  (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>>>>>            at
>  >  > >>>>>>>>>
>  >  > >>>>
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j
>  >  > >>>>>>>>>  ava.lang.String) (Unknown Source)
>  >  > >>>>>>>>>         at
>  >  > >>>>>>>>>
>  >  > >>>>
>  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin
>  >  > >>>>>>>>>  e(org.apache.axis2.util.CommandLineOptionParser) (Unknown
>  >  > >>>>>>>>> Source)
>  >  > >>>>>>>>>            at
>  >  > >>>>>>>>> org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[])
>  >  > >>>>>>>>>  (Unknown Source)
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  I believe there is some library issue. Can you please guide
>  me
>  >  > >>>>>>>>> how
>  >  > >>>>>>>>> to
>  >  > >>>>>>>>> run
>  >  > >>>>>>>>>  this. I cannot find any documentation of WSDL to C code
>  >  > >>>>>>>>> conversion,
>  >  > >>>>>>>>> please
>  >  > >>>>>>>>>  help.
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Thanks & Regards,
>  >  > >>>>>>>>>  Rahil Ali
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  -----Original Message-----
>  >  > >>>>>>>>>
>  >  > >>>>>>>>> From: Rahil Ali [mailto:rahil.ali@tpsonline.com]
>  >  > >>>>>>>>>  Sent: Friday, March 07, 2008 6:38 PM
>  >  > >>>>>>>>>  To: 'Samisa Abeysinghe'; 'Senaka Fernando'
>  >  > >>>>>>>>>  Subject: RE: Problem with Service deployed
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>> Hello Samisa and Senaka,
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  That sounds simple. Please help me getting started here...
>  >  > >>>>>>>>>  I will use .net to generate a simple WSDL.
>  >  > >>>>>>>>>  I will put that wsdl into $AXIS2C_HOME/services/MYSERV
>  folder
>  >  > >>>>>>>>> and
>  >  > >>>>>>>>> run
>  >  > >>>>>>>>>  WSDL2C.sh script. Right?
>  >  > >>>>>>>>>  Now when I am doing this I am having a problem:
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>  >  > >>>>>>>>>  org.apache.axis2.wsdl.WSDL2C
>  >  > >>>>>>>>>    at gnu.gcj.runtime.FirstThread.run()
>  >  > >>>>>>>>> (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>>>>>    at _Jv_ThreadRun(java.lang.Thread)
>  (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>>>>>    at _Jv_RunMain(java.lang.Class, byte const, int, byte
>  const,
>  >  > >>>>>>>>> boolean)
>  >  > >>>>>>>>>  (/usr/lib/libgcj.so.5.0.0)
>  >  > >>>>>>>>>    at __gcj_personality_v0
>  >  > >>>>>>>>>  (/usr/local/axis2c/services/Calculator/java.version=1.4.2)
>  >  > >>>>>>>>>    at __libc_start_main (/lib/tls/libc-2.3.4.so)
>  >  > >>>>>>>>>    at _Jv_RegisterClasses
>  >  > >>>>>>>>>  (/usr/local/axis2c/services/Calculator/java.version=1.4.2)
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  I am still not sure how WSDL2C.sh is working. I mean the
>  script
>  >  > >>>>>>>>> is
>  >  > >>>>>>>>> looking
>  >  > >>>>>>>>>  for the *.jar files in $AXIS2C_HOME/lib folder. I modified
>  that
>  >  > >>>>>>>>> and
>  >  > >>>>>>>>> put
>  >  > >>>>>>>>> *.so
>  >  > >>>>>>>>>  but still no success. Can you please explain me how
>  WSDL2C.sh
>  >  > >>>>>>>>> works..
>  >  > >>>>>>>>> or
>  >  > >>>>>>>>>  gave me any article which help me implementing a
>  C-Webservice
>  >  > >>>>>>>>> using
>  >  > >>>>>>>>>  AXIS2/C.. AXIS2/C doesn't have that much help on Internet...
>  >  > >>>>>>>>> Sorry
>  >  > >>>>>>>>> for
>  >  > >>>>>>>>> such
>  >  > >>>>>>>>>  Noob questions.
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Thanks & Regards,
>  >  > >>>>>>>>>  Rahil Ali
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  -----Original Message-----
>  >  > >>>>>>>>>  From: Samisa Abeysinghe [mailto:samisa@wso2.com]
>  >  > >>>>>>>>>  Sent: Friday, March 07, 2008 5:33 PM
>  >  > >>>>>>>>>  To: Apache AXIS C User List
>  >  > >>>>>>>>>  Subject: Re: Problem with Service deployed
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  If you want to interop with ease with .NET, the best is that
>  you
>  >  > >>>>>>>>> start
>  >  > >>>>>>>>>  with a WSDL, use that to code gen for service and statically
>  >  > >>>>>>>>> server
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>>  WSDL form service. In short, you have to use contract first
>  >  > >>>>>>>>> mode.
>  >  > >>>>>>>>>  What you are trying is the code first model, that is hard to
>  get
>  >  > >>>>>>>>> it
>  >  > >>>>>>>>>  working with interop mode.
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Samisa...
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  Rahil Ali wrote:
>  >  > >>>>>>>>>  > Hi Senaka
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > Another questions:
>  >  > >>>>>>>>>  > I am using the Calculator sample comes with AXIS2/C. the
>  >  > >>>>>>>>> signature
>  >  > >>>>>>>>> of
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>>  > functions is :
>  >  > >>>>>>>>>  >               axiom_node_t *axis2_calc_add(
>  >  > >>>>>>>>>  >                   const axutil_env_t * env,
>  >  > >>>>>>>>>  >                   axiom_node_t * node);
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >               axiom_node_t *axis2_calc_sub(
>  >  > >>>>>>>>>  >                   const axutil_env_t * env,
>  >  > >>>>>>>>>  >                   axiom_node_t * node);
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >               axiom_node_t *axis2_calc_mul(
>  >  > >>>>>>>>>  >                   const axutil_env_t * env,
>  >  > >>>>>>>>>  >                   axiom_node_t * node);
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >               axiom_node_t *axis2_calc_div(
>  >  > >>>>>>>>>  >                   const axutil_env_t * env,
>  >  > >>>>>>>>>  >                   axiom_node_t * node);
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > How can I use these in .Net to generate WSDL or even if I
>  am
>  >  > >>>>>>>>> writing
>  >  > >>>>>>>>> on
>  >  > >>>>>>>>>  > myself what datatypes should I be entering in the WSDL? Do
>  I
>  >  > >>>>>>>>> have
>  >  > >>>>>>>>> to
>  >  > >>>>>>>>> write
>  >  > >>>>>>>>>  > the basic functions like (calc_init, calc_invoke,.. .etc)
>  in
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>> WSDL
>  >  > >>>>>>>>>  file.
>  >  > >>>>>>>>>  > I cannot find any test folder under my axis2c installation
>  >  > >>>>>>>>> folder.
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > Thanks for your prompt response.
>  >  > >>>>>>>>>  > Regards,
>  >  > >>>>>>>>>  > Rahil Ali
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > -----Original Message-----
>  >  > >>>>>>>>>  > From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>>>>>>>  > Sent: Friday, March 07, 2008 1:00 PM
>  >  > >>>>>>>>>  > To: axis-c-user@ws.apache.org
>  >  > >>>>>>>>>  > Subject: RE: Problem with Service deployed
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > Hi Rahil,
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > Yes, your service is ready to be used from a .NET client.
>  But,
>  >  > >>>>>>>>> you
>  >  > >>>>>>>>> don't
>  >  > >>>>>>>>>  > get a WSDL generated.
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > This is because you can't generate wsdl files from C code
>  by
>  >  > >>>>>>>>> simply
>  >  > >>>>>>>>> using
>  >  > >>>>>>>>>  > the Axis2/C distribution. I'm however not aware of any 3rd
>  >  > >>>>>>>>> party
>  >  > >>>>>>>>> tools. We
>  >  > >>>>>>>>>  > do have WSDL to C code generation only. Thus, if you want
>  to
>  >  > >>>>>>>>> get
>  >  > >>>>>>>>> a
>  >  > >>>>>>>>> WSDL,
>  >  > >>>>>>>>>  > auto generated, for the moment, you will have to code your
>  >  > >>>>>>>>> service
>  >  > >>>>>>>>> (just
>  >  > >>>>>>>>>  > the methods without any code in it; the skeleton in other
>  >  > >>>>>>>>> words)
>  >  > >>>>>>>>> in
>  >  > >>>>>>>>>  > another language, say like Java or C#.NET, and get the
>  WSDL.
>  >  > >>>>>>>>> Then,
>  >  > >>>>>>>>> you can
>  >  > >>>>>>>>>  > use this WSDL to generate C code using the codegen tool.
>  >  > >>>>>>>>> Several
>  >  > >>>>>>>>> users
>  >  > >>>>>>>>>  > have chosen this approach.
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > If not, you will have to manually write a WSDL file. This
>  is
>  >  > >>>>>>>>> also
>  >  > >>>>>>>>> not
>  >  > >>>>>>>>> that
>  >  > >>>>>>>>>  > much of a hard job to do. We have some sample WSDLs in the
>  >  > >>>>>>>>> test/resources
>  >  > >>>>>>>>>  > folder.
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > I strongly believe that a C code to WSDL tool is
>  necessary.
>  >  > >>>>>>>>> Looking
>  >  > >>>>>>>>>  > forward to have this included in the near future.
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  > Regards,
>  >  > >>>>>>>>>  > Senaka
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >> Hello Senaka,
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> Thanks very much for your reply. I have some confusion,
>  pls
>  >  > >>>>>>>>> clarify
>  >  > >>>>>>>>> it:
>  >  > >>>>>>>>>  >> - I want to  deploy a web-service; I will follow these
>  steps
>  >  > >>>>>>>>>  >>      + write a code and implement these functions
>  (Service
>  >  > >>>>>>>>> operation,
>  >  > >>>>>>>>>  >> hello_init, hello_invoke, hello_on_fault, hello_free,
>  >  > >>>>>>>>>  >> axis2_get_instance and axis2_remove_instance) and write a
>  >  > >>>>>>>>>  >> service.xml
>  >  > >>>>>>>>>  >>      + I compiled that source and put it in the
>  >  > >>>>>>>>> axis2c/service/Myservice
>  >  > >>>>>>>>>  >> folder. (libMyservice.so, service.xml)
>  >  > >>>>>>>>>  >>      + Now I restart apache web server.(I have tried this
>  >  > >>>>>>>>> with
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>        "axis2_http_server" as well. And access this
>  >  > >>>>>>>>>  >> URI("http://ip-address/asix2/services")
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> - After following these steps is my service ready to be
>  used
>  >  > >>>>>>>>> by
>  >  > >>>>>>>>> any
>  >  > >>>>>>>>>  >> .Net or other client?
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> - If yes then I am having some problems. Because the
>  client
>  >  > >>>>>>>>> cannot
>  >  > >>>>>>>>> access
>  >  > >>>>>>>>>  >> the .wsdl file for that service, and the browser only
>  >  > >>>>>>>>> displays
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>>  service
>  >  > >>>>>>>>>  >> name and available functions, no Hyper-links like the one
>  >  > >>>>>>>>> showed
>  >  > >>>>>>>>> in
>  >  > >>>>>>>>>  >> AXIS/Java tutorial. Pls see the output of the browser
>  from my
>  >  > >>>>>>>>> previous
>  >  > >>>>>>>>>  >> email.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> - I believe that there must be some tool which will
>  create
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>> .wsdl
>  >  > >>>>>>>>> for
>  >  > >>>>>>>>>  >> any
>  >  > >>>>>>>>>  >> service that I write.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> - Am I missing anything here.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> Please help me get the clear picture of AXIS2/C web
>  service
>  >  > >>>>>>>>> deployment.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> Thanks & Regards,
>  >  > >>>>>>>>>  >> Rahil Ali
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> -----Original Message-----
>  >  > >>>>>>>>>  >> From: Senaka Fernando [mailto:senaka@wso2.com]
>  >  > >>>>>>>>>  >> Sent: Thursday, March 06, 2008 10:29 PM
>  >  > >>>>>>>>>  >> To: Apache AXIS C User List
>  >  > >>>>>>>>>  >> Subject: Re: Problem with Service deployed
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> Hi Rahil,
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> We do have support for displaying static .wsdl files.
>  But,
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>> issue
>  >  > >>>>>>>>> is
>  >  > >>>>>>>>>  we
>  >  > >>>>>>>>>  >> don't simply publish the .wsdl file. For the moment, you
>  can
>  >  > >>>>>>>>> find
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>>  >> required .wsdl file in the test/resources/wsdl/ folder.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> I have started a discussion on the developer list
>  regarding
>  >  > >>>>>>>>> this
>  >  > >>>>>>>>> concern,
>  >  > >>>>>>>>>  >> [1]. Hope to have this issue fixed soon.
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> [1] http://marc.info/?l=axis-c-dev&m=120481700919297&w=2
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >> Regards,
>  >  > >>>>>>>>>  >> Senaka
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>> Hello everyone,
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> I have configured AXIS2/C with apache2 web server. I
>  >  > >>>>>>>>> compiled
>  >  > >>>>>>>>> calculator
>  >  > >>>>>>>>>  >>> sample with the following command:
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> "gcc -shared -olibCalculator.o
>  >  > >>>>>>>>> -I/usr/local/axis2c/include/axis2-1.3.0
>  >  > >>>>>>>>>  >>> -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser
>  >  > >>>>>>>>> -laxis2_engine
>  >  > >>>>>>>>>  >>> -lpthread -laxis2_http_sender -laxis2_http_receiver
>  calc.c"
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Now when I access it through Internet explorer :
>  >  > >>>>>>>>>  >>> http://192.168.4.163/axis2/services/Calculator it
>  displays :
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Deployed Services
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Calculator
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> This is a testing service, named 'Calculator' to test
>  >  > >>>>>>>>> dynamic
>  >  > >>>>>>>>> client
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Available Operations
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> *   div
>  >  > >>>>>>>>>  >>> *   add
>  >  > >>>>>>>>>  >>> *   sub
>  >  > >>>>>>>>>  >>> *   mul
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Problem is when I try to access its WSDL file by adding
>  >  > >>>>>>>>> "?wsdl"
>  >  > >>>>>>>>> at
>  >  > >>>>>>>>> the
>  >  > >>>>>>>>>  >>> end
>  >  > >>>>>>>>>  >>> of URL it gives an error:
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> The XML page cannot be displayed
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Cannot view XML input using style sheet. Please correct
>  the
>  >  > >>>>>>>>> error
>  >  > >>>>>>>>> and
>  >  > >>>>>>>>>  >>> then
>  >  > >>>>>>>>>  >>> click the Refresh <javascript:location.reload()>
>  button, or
>  >  > >>>>>>>>> try
>  >  > >>>>>>>>> again
>  >  > >>>>>>>>>  >>> later.
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>   _____
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Invalid at the top level of the document. Error
>  processing
>  >  > >>>>>>>>> resource
>  >  > >>>>>>>>>  >>> 'http://192.168.4.163/axis2/services/Calculator?wsdl'.
>  ...
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Unable to retreive wsdl for this service
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> ^
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> When I tried to add this as a web-reference in VS.Net it
>  >  > >>>>>>>>> displayed
>  >  > >>>>>>>>> "The
>  >  > >>>>>>>>>  >>> HTML
>  >  > >>>>>>>>>  >>> document does not contain Web service discovery
>  >  > >>>>>>>>> information.".
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Please help me where I am doing wrong.
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Regards,
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>> Rahil Ali
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>>
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>>>>>>  >> To unsubscribe, e-mail:
>  axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>>>  >> For additional commands, e-mail:
>  >  > >>>>>>>>> axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >>
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>>>>>>  > To unsubscribe, e-mail:
>  axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>>>  > For additional commands, e-mail:
>  >  > >>>>>>>>> axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>>>>>>  > To unsubscribe, e-mail:
>  axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>>>  > For additional commands, e-mail:
>  >  > >>>>>>>>> axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>  >
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  --
>  >  > >>>>>>>>>  Samisa Abeysinghe
>  >  > >>>>>>>>>  Software Architect; WSO2 Inc.
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>  http://www.wso2.com/ - "Oxygenating the Web Service
>  Platform."
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>
>  ---------------------------------------------------------------------
>  >  > >>>>>>>>>  To unsubscribe, e-mail:
>  axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>>>  For additional commands, e-mail:
>  axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>
>  ---------------------------------------------------------------------
>  >  > >>>>>>>>>  To unsubscribe, e-mail:
>  axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>>>  For additional commands, e-mail:
>  axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>>
>  >  > >>>>>>>>>
>  >  > >>>>>>>>
>  >  > >>>>>>>>
>  >  > > ---------------------------------------------------------------------
>  >  > >>>>>>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>>> For additional commands, e-mail:
>  axis-c-user-help@ws.apache.org
>  >  > >>>>>>>>
>  >  > >>>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > ---------------------------------------------------------------------
>  >  > >>>>>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>>>>
>  >  > >>>>>>>
>  >  > >>>>>>
>  >  > >>>>>>
>  >  > >>>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>>>
>  >  > >>>>>>
>  >  > >>>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>>>
>  >  > >>>>>>
>  >  > >>>>>
>  >  > >>>>>
>  >  > >>>>>
>  ---------------------------------------------------------------------
>  >  > >>>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>>
>  >  > >>>>>
>  >  > >>>>
>  >  > >>>>
>  >  > >>>>
>  ---------------------------------------------------------------------
>  >  > >>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>
>  >  > >>>>
>  >  > >>>>
>  ---------------------------------------------------------------------
>  >  > >>>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>>
>  >  > >>>>
>  >  > >>>
>  >  > >>>
>  >  > >>>
>  ---------------------------------------------------------------------
>  >  > >>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>>
>  >  > >>>
>  >  > >>
>  >  > >>
>  >  > >>
>  ---------------------------------------------------------------------
>  >  > >> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > >> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >>
>  >  > >>
>  >  > >
>  >  > >
>  >  > > ---------------------------------------------------------------------
>  >  > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >
>  >  > >
>  >  > > ---------------------------------------------------------------------
>  >  > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  > >
>  >  > >
>  >  >
>  >  >
>  >  > ---------------------------------------------------------------------
>  >  > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  >
>  >  >
>  >  > ---------------------------------------------------------------------
>  >  > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  > For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message