axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Carleton <scarle...@gmail.com>
Subject Re: using faults w/ wsdl2c
Date Fri, 12 Feb 2010 04:00:30 GMT
Ok, I am trying to figure out to use faults with Axis2/C.  There was a
thread back in December that said there is some new features in the "latest
axis2 WSDL2C generator code".  Is my understanding that on this mailing list
when folks refer to axis2, they mean axis2/java not axis2/c, correct?

At this time are there binaries for the latest axis2 WSDL2C generator code
or does one still need to go to the nightly build to get it?

It looks to me like the nightly build can be found in the following SVN
repository:

http://svn.apache.org/viewvc/webservices/axis2/trunk/java/

When I try to use TortoiseSVN 1.6.1 to check out the code, I get the
following error:

Repository moved permanently to '/viewvc/webservices/axis2/trunk/java/';
please relocate

Any thoughts on what the problem is?

Sam

On Tue, Dec 15, 2009 at 3:32 PM, Dimuthu Gamage <dimuthuc@gmail.com> wrote:

>
>
> On Sat, Dec 5, 2009 at 5:56 AM, Samisa Abeysinghe <samisa@wso2.com> wrote:
>
>>
>>
>> On Fri, Dec 4, 2009 at 11:09 PM, Sam Carleton <scarleton@gmail.com>wrote:
>>
>>> Dimuthu,
>>>
>>> Where EXACTLY does one find the latest WSDL2C code?  Is it in an build or
>>> is it in the Axis2/Java SVN repository?
>>>
>>
>> Hi,
>
> In fact right now we are not maintaining an Axis2 nightly build. So you
> have to do your own build of Axis2/Java to get the latest WSDL2C code.
>
> Thanks
> Dimuthu
>
>
>> Axis2 svn.
>>
>> Samisa...
>>
>>
>>>
>>> Sam
>>>
>>>
>>>  On Thu, Dec 3, 2009 at 10:57 PM, Dimuthu Gamage <dimuthuc@gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> If you use the latest axis2 WSDL2C generator code, you don't need to
>>>> create soap fault message manually as the generated code provide lot of
>>>> support in generating fault message.
>>>>
>>>> Please have a look at this for the improved API,
>>>> http://www.dimuthu.org/blog/2009/02/09/code-generate-custom-soap-faults-for-axis2c/
>>>>
>>>>
>>>> Thanks
>>>> Dimuthu
>>>>
>>>>
>>>>
>>>> On Wed, Nov 18, 2009 at 3:49 AM, Doug Price <Doug.Price@presagis.com>wrote:
>>>>
>>>>> While I see that this approach allows the creation of user-defined
>>>>> fault types, is it possible to also use it to specify the standard
>>>>> SOAP-ENV:Fault?  I see a struct named axiom_soap_fault_t in the
>>>>> distribution, but I can't seem to return it from the
>>>>> axis2_svc_skel_*_on_fault() function because it requires a pointer to
the
>>>>> SOAP body to create one.  Is there some other way to return a standard
SOAP
>>>>> fault from a service?
>>>>>
>>>>>
>>>>> --
>>>>> Doug Price
>>>>> Research Director | Presagis
>>>>>
>>>>> T. +1 972 943.2433  F. +1 469 467.4564  C. +1 469 867.8399
>>>>>
>>>>> DISCLAIMER: This e-mail message is for the sole use of the intended
>>>>> recipient(s) and may contain confidential and/or proprietary information.
Do
>>>>> not read, copy, or disseminate this message unless you are the addressee.
>>>>> Any unauthorized review, use, disclosure or distribution is strictly
>>>>> prohibited. If you have received this message in error, please contact
the
>>>>> sender by reply e-mail and delete the original and any copies from your
>>>>> system.
>>>>>
>>>>> -----Original Message-----
>>>>>
>>>>> From: Amir Mousavizadegan [mailto:amir.mousavizadegan@cox.net]
>>>>> Sent: Tuesday, November 17, 2009 10:29 AM
>>>>> To: Apache AXIS C User List
>>>>> Subject: Re: using faults w/ wsdl2c
>>>>>
>>>>> I did not write the sample codes  nor the document,  however  in order
>>>>> to
>>>>> get it working, you have to change the body of the generated  code, or
>>>>> create a replacement function as I did.
>>>>> thx
>>>>> Amir
>>>>> ----- Original Message -----
>>>>> From: "Doug Price" <Doug.Price@presagis.com>
>>>>> To: "Apache AXIS C User List" <axis-c-user@ws.apache.org>
>>>>> Sent: Tuesday, November 17, 2009 11:05 AM
>>>>> Subject: RE: using faults w/ wsdl2c
>>>>>
>>>>>
>>>>> Just what I was looking for.  Thanks so much.
>>>>>
>>>>> A quick follow up question on the code though.  Is there a reason that
>>>>> axis2_svc_skel_Division_on_fault() doesn't use the adv_divFault api to
>>>>> create the fault?
>>>>>
>>>>>
>>>>> --
>>>>> Doug Price
>>>>> Research Director | Presagis
>>>>>
>>>>> T. +1 972 943.2433  F. +1 469 467.4564  C. +1 469 867.8399
>>>>>
>>>>> DISCLAIMER: This e-mail message is for the sole use of the intended
>>>>> recipient(s) and may contain confidential and/or proprietary
>>>>> information. Do
>>>>> not read, copy, or disseminate this message unless you are the
>>>>> addressee.
>>>>> Any unauthorized review, use, disclosure or distribution is strictly
>>>>> prohibited. If you have received this message in error, please contact
>>>>> the
>>>>> sender by reply e-mail and delete the original and any copies from your
>>>>> system.
>>>>>
>>>>> -----Original Message-----
>>>>>
>>>>> From: Amir Mousavizadegan [mailto:amir.mousavizadegan@cox.net]
>>>>> Sent: Tuesday, November 17, 2009 7:52 AM
>>>>> To: Apache AXIS C User List
>>>>> Subject: Re: using faults w/ wsdl2c
>>>>>
>>>>> Please see attached document
>>>>> ----- Original Message -----
>>>>> From: "Doug Price" <Doug.Price@presagis.com>
>>>>> To: <axis-c-user@ws.apache.org>
>>>>> Sent: Monday, November 16, 2009 4:47 PM
>>>>> Subject: using faults w/ wsdl2c
>>>>>
>>>>>
>>>>> I created a simple web service w/ Axis2c using wsdl2c on a WSDL file
I
>>>>> created in Eclipse.  The default functionality of this works fine.
>>>>>  However,
>>>>> now I'd like to incorporate faults into my SOAP messages.  I created
a
>>>>> fault
>>>>> type in my WSDL and wsdl2c creates the wrappers for the fault message,
>>>>> but
>>>>> the service skeleton and client stubs files seem to hard coded to
>>>>> assume no
>>>>> faults are ever sent / received.  For example, the client
>>>>> axis2_stub_op_*()
>>>>> function takes my request message type and returns my response message
>>>>> type,
>>>>> but doesn't seem to account for my fault type.  Modifying the code, I
>>>>> can
>>>>> see that the fault is received and correctly deserialized, but I'll
>>>>> have to
>>>>> continually hand edit the axis2_stub*.c and my client.c file as I make
>>>>> modifications to my WSDL in order to make this work.
>>>>>
>>>>> The same is true on the service side w/ the axis2_skel*() functions.
>>>>>  Am I
>>>>> missing something here, or are faults not supported w/ wsdl2c?
>>>>>
>>>>> --
>>>>> Doug Price
>>>>> Research Director | Presagis
>>>>>
>>>>> T. +1 972 943.2433 F. +1 469 467.4564 C. +1 469 867.8399
>>>>>
>>>>> DISCLAIMER: This e-mail message is for the sole use of the intended
>>>>> recipient(s) and may contain confidential and/or proprietary
>>>>> information. Do
>>>>> not read, copy, or disseminate this message unless you are the
>>>>> addressee.
>>>>> Any unauthorized review, use, disclosure or distribution is strictly
>>>>> prohibited. If you have received this message in error, please contact
>>>>> the
>>>>> sender by reply e-mail and delete the original and any copies from your
>>>>> system.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks,
>>>> Dimuthu Gamage
>>>>
>>>> http://www.dimuthu.org
>>>> http://www.wso2.org
>>>>
>>>
>>>
>>
>>
>> --
>> Samisa Abeysinghe
>> Director, Engineering - WSO2 Inc.
>>
>> http://www.wso2.com/ - "The Open Source SOA Company"
>>
>
>
>
> --
> Thanks,
> Dimuthu Gamage
>
> http://www.dimuthu.org
> http://www.wso2.org
>

Mime
View raw message