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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to