Re: Problems with Web Services
Re: Problems with Web Services
- Subject: Re: Problems with Web Services
- From: Atli Páll Hafsteinsson <email@hidden>
- Date: Tue, 18 Nov 2008 18:42:34 +0000
- Thread-topic: Problems with Web Services
Hi
To bad :) We had some realy interesting "challenges" implementing the
simplest things in SOAP :S Wish you good luck.
Atli
On 11/18/08 6:38 PM, "Pascal Robert" <email@hidden> wrote:
> The other end is using SOAP and they want to use the same protocols.
> But since I don't need to send EOs, I think I will simply use normal
> Axis calls.
>
>>
>> Unless you are forced by some evil empire to use SOAP I would strongly
>> advice you too look at some other web service implemntation, like
>> XML-RPC.
>> SOAP is a real pain in the you know what.
>>
>> Atli
>>
>> On 11/18/08 5:52 PM, "Pascal Robert" <email@hidden> wrote:
>>
>>> Same exception :-/
>>>
>>>> Hi Pascal.
>>>>
>>>> There was a bug in WOWebServiceRegistrar in the first versions of WO
>>>> 5.4 where an exception was thrown when registering a service using
>>>> the method you're using. The workaround was to use this method
>>>> instead:
>>>>
>>>> WOWebServiceRegistrar.registerWebService( ".AccountMgrService",
>>>> AccountMgrService.class, null, true );
>>>>
>>>> I don't remember if this critter affected WO 5.3.3, but it can't
>>>> hurt to try :-).
>>>>
>>>> Cheers,
>>>> - hugi
>>>>
>>>>
>>>>
>>>> On 18.11.2008, at 16:58, Pascal Robert wrote:
>>>>
>>>>> Hi list,
>>>>>
>>>>> I'm creating some Web services (yes, with SOAP...) and when I start
>>>>> the app, I get :
>>>>>
>>>>> [2008-11-18 11:53:32 EST] <main> A fatal exception occurred:
>>>>> com.webobjects.webservices.support.WOXMLProvider.getRoles()Ljava/
>>>>> util/List;
>>>>> [2008-11-18 11:53:32 EST] <main> java.lang.AbstractMethodError:
>>>>> com.webobjects.webservices.support.WOXMLProvider.getRoles()Ljava/
>>>>> util/List;
>>>>> at org.apache.axis.AxisEngine.refreshGlobalOptions(AxisEngine.java:
>>>>> 502)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .webservices
>>>>> .support.WOXMLProvider.doConfigureEngine(WOXMLProvider.java:94)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .webservices
>>>>> .support.WOXMLProvider.configureEngine(WOXMLProvider.java:108)
>>>>> at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
>>>>> at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
>>>>> at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .appserver._private.WOWebService.initServer(WOWebService.java:121)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .appserver._private.WOWebService.registerService(WOWebService.java:
>>>>> 155)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .appserver
>>>>> .WOWebServiceRegistrar
>>>>> .registerWebService(WOWebServiceRegistrar.java:160)
>>>>> at
>>>>> com
>>>>> .webobjects
>>>>> .appserver
>>>>> .WOWebServiceRegistrar
>>>>> .registerWebService(WOWebServiceRegistrar.java:94)
>>>>> at
>>>>> com.prospectsweb.syncservice.Application.<init>(Application.java:
>>>>> 24)
>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>> Method)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .NativeConstructorAccessorImpl
>>>>> .newInstance(NativeConstructorAccessorImpl.java:39)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .DelegatingConstructorAccessorImpl
>>>>> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>>> at java.lang.Class.newInstance0(Class.java:350)
>>>>> at java.lang.Class.newInstance(Class.java:303)
>>>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:
>>>>> 323)
>>>>> at com.prospectsweb.syncservice.Application.main(Application.java:
>>>>> 19)
>>>>>
>>>>> Line 24 is when I call WOWebServiceRegistrar :
>>>>>
>>>>> WOWebServiceRegistrar.registerWebService(AccountMgrService.class,
>>>>> true);
>>>>>
>>>>> I'm linking against Axis 1.1 and WO 5.3.3, and I don't have another
>>>>> Axis version in the classpath, so I don't know why I'm getting
>>>>> this.
>>>>>
>>>>> -------------------------------------------------------
>>>>> Pascal Robert
>>>>>
>>>>> http://www.macti.ca
>>>>> http://www.linkedin.com/in/macti
>>>>>
>>>>> Skype: MacTICanada
>>>>> AIM/iChat : MacTICanada
>>>>>
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list (email@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>
>>>
>>> -------------------------------------------------------
>>> Pascal Robert
>>>
>>> http://www.macti.ca
>>> http://www.linkedin.com/in/macti
>>>
>>> Skype: MacTICanada
>>> AIM/iChat : MacTICanada
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
>
> -------------------------------------------------------
> Pascal Robert
>
> http://www.macti.ca
> http://www.linkedin.com/in/macti
>
> Skype: MacTICanada
> AIM/iChat : MacTICanada
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden