Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
- Subject: Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
- From: Chuck Hill <email@hidden>
- Date: Wed, 4 Jul 2007 08:15:28 -0700
Why would you want to expose an editing context through a web
service? That seems like the wrong thing to even _want_ to do.
Chuck
On Jul 4, 2007, at 8:02 AM, Ricardo Strausz wrote:
Hola!
Apparently, it is not trivial (at least not easy) to publish an
EOEditingContex trough a web service (see below), nor a subclass of
it, so i decided to do so by "wrapping" such an object into one of
mine...
it works, but it is more tedious since I have to "bypass" each used
method...
If some one knows a better approach, I am looking forward to here
about...
Gracias,
Dino
Something is wrong...
my class looks like:
public class BAEditingContext extends EOEditingContext {
public BAEditingContext(){
super();
}
public int test(int n){
return n;
}
}
and I am publishing it trough
public Application() {
super();
System.out.println("Welcome to " + this.name() + "!");
/* ** Put your application initialization code here ** */
// Register Web service classes.
WOWebServiceRegistrar.registerWebService
(BAEditingContext.class, true);
}
but when I try to generate stubs with
/Developer/Tools/WSMakeStubs -x ObjC -name BAEditingContext -url
http://192.168.1.8:51123/cgi-bin/WebObjects/
EditingContextService.woa/
ws/BAEditingContext?wsdl
I get the following error in the service-run-log:
- The class java.lang.Class is defined in a java or javax package and
cannot be converted into an xml schema type. An xml schema anyType
will be used to define this class in the wsdl file.
- The class com.webobjects.eocontrol.EOKeyValueUnarchiver does not
contain a default constructor, which is a requirement for a bean
class. The class cannot be converted into an xml schema type. An
xml schema anyType will be used to define this class in the wsdl
file.
- The class java.lang.Number is defined in a java or javax package
and cannot be converted into an xml schema type. An xml schema
anyType will be used to define this class in the wsdl file.
- The class com.webobjects.foundation.NSNotification does not contain
a default constructor, which is a requirement for a bean class. The
class cannot be converted into an xml schema type. An xml schema
anyType will be used to define this class in the wsdl file.
- The class java.lang.Throwable is defined in a java or javax package
and cannot be converted into an xml schema type. An xml schema
anyType will be used to define this class in the wsdl file.
[2007-07-02 16:39:35 CDT] <WorkerThread4> AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix
for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be
set on the Definition object using the addNamespace(...) method.:
faultActor: null...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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