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...