Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread Amila Suriarachchi
On Sat, Jan 10, 2009 at 2:37 AM, ibrahim demir wrote:

> Hi;
>
> Thanks for the reply. But the order is changeable also. But today
> contract-first approach is hard to obey.
>
you may try with Xmlbeans data binding or jaxbri data binding. But if your
actuall response changes so often then better to use the Axiom it self. Then
you can get only the important parts of the response  in your code.

thanks,
Amila.

> So by the time the response changes. So will it make sense if I change my
> binding? Which binding methodology can easily work when the order of the
> elements change.?
>
> Yours
>
> Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
>
>
>
>
>
> --
> *From:* don t 
> *To:* axis-user@ws.apache.org
> *Sent:* Friday, January 9, 2009 10:18:57 PM
> *Subject:* Re: How to get rid of Unexpected SubElement Exception
>
>
> Hi, to make an element optional you can set minOccurs="0" in the WSDL.
> However elements in the SOAP body must appear in the same order specified
> in
> the WSDL.
>
>
> ibrahim demir wrote:
> >
> > Hi All;
> >
> > I have already said about my problem but want to repeat. I am using Axis2
> > and Axis2 Code Generator for Eclipse to generate my client codes.
> > (Choosing ABD binding)
> >
> > As you know when the response has extre elements or the order is
> different
> > than the wsdl than it causes and Unexpected Subelemenet exception. Is
> > there a way to void it. Is it possible to make Axis2 just use the coming
> > elemenst that are necceassary for it. Or should I change my binding
> > methodology?
> > This a very problem for me because the server is not stable about the
> > responses and is dynamic for being able to response for diffrent
> requests.
> >
> > yours.
> >
> >  Ibrahim DEMIR
> > CyberSoft Yazilim Muh.
> > http://www.ibrahimdemir.org
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Packaging axis2 with a web application

2009-01-09 Thread keith chapman
Hi,

This
http://www.keith-chapman.org/2008/10/how-to-embed-axis2-into-existing-web.htmlshould
help you.

Thanks,
Keith.

On Fri, Jan 9, 2009 at 10:46 PM, Wishing Carebear <
wishing.careb...@gmail.com> wrote:

> Thanks Sagara. I will try it out.Regards,
> Ravi
>
>
> On Fri, Jan 9, 2009 at 9:10 AM, Sagara Gunathunga <
> sagara.gunathu...@gmail.com> wrote:
>
>> If you want to integrate Axis2 web service as a part of  your web
>> application you can follow these steps.
>>
>> 1.) Within the WEB-INF directory create directory called "services" , you
>> can place web service's meta information files there (services.xml) . as a
>> example for "MyService" web serivce can have  following directory structure
>> WEB-INF/services/MyService/META-INF/services.xml
>>
>> 2.) Add requred Axis 2 jar files to lib directory of your web application.
>>
>> 3.) Define the servlet mapping for AxisServlet  in web .xml file as
>> follows .
>>
>> 
>> AxisServlet
>>
>> org.apache.axis2.transport.http.AxisServlet
>> 1
>>   
>>   
>> AxisServlet
>> /services/*
>>   
>>
>>
>> Also you can use Maven to package and testing (together with Jetty
>> plug-in) . Hope this will help you.
>>
>>
>>
>> On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <
>> wishing.careb...@gmail.com> wrote:
>>
>>> Hello:I have a war created for my enterprise application. Need to embed
>>> axis2 with that.
>>>
>>> Could someone point me to the instructions need to be followed to achieve
>>> this if possible.
>>>
>>> Thanks for your time and help,
>>> Regards,
>>> Ravi
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - ssagara.blogspot.com
>> Web - http://sagaras.awardspace.com/
>>
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Parameter name as Param0

2009-01-09 Thread Wishing Carebear
Thanks Keith. Adding the debug flag to the ant script for Java compilation
took care of the issue.

On Thu, Jan 8, 2009 at 10:18 PM, Wishing Carebear <
wishing.careb...@gmail.com> wrote:

> Thanks Keith, I will enable the debug option and try it out.
>
> Regards,
> Ravi
>
>   On Thu, Jan 8, 2009 at 5:48 PM, keith chapman 
> wrote:
>
>> Hi Ravi,
>>
>> Please have a look at http://wso2.org/library/3743 That will give you the
>> answer to your problem.
>>
>> Thanks,
>> Keith.
>>
>>
>> On Fri, Jan 9, 2009 at 6:37 AM, Wishing Carebear <
>> wishing.careb...@gmail.com> wrote:
>>
>>> Hello: I'm new to axis2. Trying the pojoguide samples of Weatherservice
>>> with a complextype Weather.
>>>
>>> When looking into the wsdl, noticed the Weather complexType has name as
>>> param0 as shown below:
>>>
>>>  
>>>
>>>
>>>
>>> 
>>>  >> type="ax22:Weather"/>
>>> 
>>>
>>> 
>>>
>>> Wondering if it is possible to give a logicalname.
>>>
>>> Thanks,
>>> Ravi
>>>
>>>
>>>
>>
>>
>> --
>> Keith Chapman
>> Senior Software Engineer
>> WSO2 Inc.
>> Oxygenating the Web Service Platform.
>> http://wso2.org/
>>
>> blog: http://www.keith-chapman.org
>>
>
>


Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread don t

You can try XMLBeans or working with the AXIOM model.


ibrahim demir wrote:
> 
> Hi;
> 
> Thanks for the reply. But the order is changeable also. But today
> contract-first approach is hard to obey.So by the time the response
> changes. So will it make sense if I change my binding? Which binding
> methodology can easily work when the order of the elements change.?
> 
> Yours
> 
>  Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
> 
>  
>
>  
> 
> 
> 
> 
> 
> From: don t 
> To: axis-user@ws.apache.org
> Sent: Friday, January 9, 2009 10:18:57 PM
> Subject: Re: How to get rid of Unexpected SubElement Exception
> 
> 
> Hi, to make an element optional you can set minOccurs="0" in the WSDL.
> However elements in the SOAP body must appear in the same order specified
> in
> the WSDL.
> 
> 
> ibrahim demir wrote:
>> 
>> Hi All;
>> 
>> I have already said about my problem but want to repeat. I am using Axis2
>> and Axis2 Code Generator for Eclipse to generate my client codes.
>> (Choosing ABD binding)
>> 
>> As you know when the response has extre elements or the order is
>> different
>> than the wsdl than it causes and Unexpected Subelemenet exception. Is
>> there a way to void it. Is it possible to make Axis2 just use the coming
>> elemenst that are necceassary for it. Or should I change my binding
>> methodology?
>> This a very problem for me because the server is not stable about the
>> responses and is dynamic for being able to response for diffrent
>> requests.
>> 
>> yours.
>> 
>>  Ibrahim DEMIR
>> CyberSoft Yazilim Muh.
>> http://www.ibrahimdemir.org
>> 
>> 
>>  
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
>   
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21381872.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread ibrahim demir
Hi;

Thanks for the reply. But the order is changeable also. But today 
contract-first approach is hard to obey.So by the time the response changes. So 
will it make sense if I change my binding? Which binding methodology can easily 
work when the order of the elements change.?

Yours

 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org

 
   
 





From: don t 
To: axis-user@ws.apache.org
Sent: Friday, January 9, 2009 10:18:57 PM
Subject: Re: How to get rid of Unexpected SubElement Exception


Hi, to make an element optional you can set minOccurs="0" in the WSDL.
However elements in the SOAP body must appear in the same order specified in
the WSDL.


ibrahim demir wrote:
> 
> Hi All;
> 
> I have already said about my problem but want to repeat. I am using Axis2
> and Axis2 Code Generator for Eclipse to generate my client codes.
> (Choosing ABD binding)
> 
> As you know when the response has extre elements or the order is different
> than the wsdl than it causes and Unexpected Subelemenet exception. Is
> there a way to void it. Is it possible to make Axis2 just use the coming
> elemenst that are necceassary for it. Or should I change my binding
> methodology?
> This a very problem for me because the server is not stable about the
> responses and is dynamic for being able to response for diffrent requests.
> 
> yours.
> 
>  Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
Sent from the Axis - User mailing list archive at Nabble.com.


  

Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread don t

Hi, to make an element optional you can set minOccurs="0" in the WSDL.
However elements in the SOAP body must appear in the same order specified in
the WSDL.


ibrahim demir wrote:
> 
> Hi All;
> 
> I have already said about my problem but want to repeat. I am using Axis2
> and Axis2 Code Generator for Eclipse to generate my client codes.
> (Choosing ABD binding)
> 
> As you know when the response has extre elements or the order is different
> than the wsdl than it causes and Unexpected Subelemenet exception. Is
> there a way to void it. Is it possible to make Axis2 just use the coming
> elemenst that are necceassary for it. Or should I change my binding
> methodology?
> This a very problem for me because the server is not stable about the
> responses and is dynamic for being able to response for diffrent requests.
> 
> yours.
> 
>  Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
> 
> 
>   
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
Sent from the Axis - User mailing list archive at Nabble.com.



[Axis2] Changing SSL provider when using axis

2009-01-09 Thread mohammad jouni
Hello Everyone ,

I was wondering if it is possible to change the SSL provider when
using Axis ( Need to use Jessie instead of JSSE ) . Since axis uses
http-client , is there a way to change the http-client's SSL provider
?

Thank you


RPCServiceClient

2009-01-09 Thread Wishing Carebear
Hello:In addition to Service and Operation client, found from one of the
examples that there is RPCServiceClient. Have couple of questions regarding
the same:
1) Is there any examples using RPCServiceClient where the service takes a
java bean say Class A. Class A has other java beans like Class B and Class
C.

2) With Axis1, I used to do the registration for the complex types with the
Call API. Is it still the same approach with Axis2.

3) I also need to send the request and get the response XML directly. Is it
possible with Axis2. With Axis1 it was not possible.

Thanks for your time and help,

Regards,
Ravi


Re: Packaging axis2 with a web application

2009-01-09 Thread Wishing Carebear
Thanks Sagara. I will try it out.Regards,
Ravi

On Fri, Jan 9, 2009 at 9:10 AM, Sagara Gunathunga <
sagara.gunathu...@gmail.com> wrote:

> If you want to integrate Axis2 web service as a part of  your web
> application you can follow these steps.
>
> 1.) Within the WEB-INF directory create directory called "services" , you
> can place web service's meta information files there (services.xml) . as a
> example for "MyService" web serivce can have  following directory structure
> WEB-INF/services/MyService/META-INF/services.xml
>
> 2.) Add requred Axis 2 jar files to lib directory of your web application.
>
> 3.) Define the servlet mapping for AxisServlet  in web .xml file as follows
> .
>
> 
> AxisServlet
>
> org.apache.axis2.transport.http.AxisServlet
> 1
>   
>   
> AxisServlet
> /services/*
>   
>
>
> Also you can use Maven to package and testing (together with Jetty plug-in)
> . Hope this will help you.
>
>
>
> On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear <
> wishing.careb...@gmail.com> wrote:
>
>> Hello:I have a war created for my enterprise application. Need to embed
>> axis2 with that.
>>
>> Could someone point me to the instructions need to be followed to achieve
>> this if possible.
>>
>> Thanks for your time and help,
>> Regards,
>> Ravi
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>


Re: Packaging axis2 with a web application

2009-01-09 Thread Sagara Gunathunga
If you want to integrate Axis2 web service as a part of  your web
application you can follow these steps.

1.) Within the WEB-INF directory create directory called "services" , you
can place web service's meta information files there (services.xml) . as a
example for "MyService" web serivce can have  following directory structure
WEB-INF/services/MyService/META-INF/services.xml

2.) Add requred Axis 2 jar files to lib directory of your web application.

3.) Define the servlet mapping for AxisServlet  in web .xml file as follows
.


AxisServlet

org.apache.axis2.transport.http.AxisServlet
1
  
  
AxisServlet
/services/*
  


Also you can use Maven to package and testing (together with Jetty plug-in)
. Hope this will help you.


On Fri, Jan 9, 2009 at 9:58 PM, Wishing Carebear  wrote:

> Hello:I have a war created for my enterprise application. Need to embed
> axis2 with that.
>
> Could someone point me to the instructions need to be followed to achieve
> this if possible.
>
> Thanks for your time and help,
> Regards,
> Ravi
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Packaging axis2 with a web application

2009-01-09 Thread Wishing Carebear
Hello:I have a war created for my enterprise application. Need to embed
axis2 with that.

Could someone point me to the instructions need to be followed to achieve
this if possible.

Thanks for your time and help,
Regards,
Ravi


Getting JSON Objects out of the request

2009-01-09 Thread Jan Freitag

Hi,

I'm trying to write a Web Service that gets aJSON Request and  
Responses in JSON as well. The Reuqest comes from the Google Gears  
Geolocation function getCurrentPosition. I can set a Paraameter in  
this function to use not Googles LocatioN proivder but my own, that is  
a web service The Services gets callde like this


gears.getCurréntPosition(locationProviderURL: http://localhost:8080/axis2/services/MyLocationService/getLocation) 
;


My question is ohw does my function getLocation in my Web Service  
"MyLocationService" gets the Request JSON Objects?? The reqeust from  
the gears function is send via HTTP POST.


And another question. Do i have to configure anything if i want to  
call my web service only by this URL http://localhost:8080/axis2/services/MyLocationService/getLocation?



Thanks

JF

Re: Next release of Axis2 (1.4.2 ?)

2009-01-09 Thread keith chapman
We did an RC late last year, I guess Glen is already working on the release.
Should be out soon.

Thanks,
Keith.

On Fri, Jan 9, 2009 at 10:55 AM, Saurabh Garg wrote:

> Hi Keith,
>
> Any updates on the release? Any idea when the new version will be released.
>
>
> Thanks
> Saurabh
>
>
>
> On Mon, Nov 24, 2008 at 7:22 AM, keith chapman wrote:
>
>> Hi Anders,
>>
>> We do not have any plans to do a 1.4.2 release. There were some
>> discussions about a 1.5 release but that didn't materialize either cause
>> most of the devs were busy. I guess the likely time for a release might be
>> early next year (my personal opinion).
>>
>> Thanks,
>> Keith.
>>
>>
>> On Mon, Nov 24, 2008 at 8:18 PM, Anders Nordström 
>> wrote:
>>
>>>
>>> Hi,
>>> We've a problem with the codegen (wsdl2java) in the 1.4.1 release.
>>> I can see that this is due to a known bug that's reported as fixed (
>>> http://issues.apache.org/jira/browse/AXIS2-3827).
>>> So, if possible, I would like to know when in time the next release is
>>> scheduled for the 1.4.X branch.
>>>
>>> Many thanks in advance,
>>> Anders Nordström
>>>
>>
>>
>>
>> --
>> Keith Chapman
>> Senior Software Engineer
>> WSO2 Inc.
>> Oxygenating the Web Service Platform.
>> http://wso2.org/
>>
>> blog: http://www.keith-chapman.org
>>
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org