• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EOEditingContext and WO Services (was Subclassing EOEditingContext)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOEditingContext and WO Services (was Subclassing EOEditingContext)


  • Subject: EOEditingContext and WO Services (was Subclassing EOEditingContext)
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 4 Jul 2007 10:02:04 -0500

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
      • From: Guido Neitzer <email@hidden>
    • Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
      • From: Chuck Hill <email@hidden>
  • Prev by Date: EOCopyable Problems
  • Next by Date: Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
  • Previous by thread: Re: EOCopyable Problems
  • Next by thread: Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
  • Index(es):
    • Date
    • Thread