[JBossWS] - Re: wsdl based web-service (like a paypal simulator)?
by oskar.carlstedt
Hi!
The WSDL file imports two XML-schemas that create a circular reference. A good point would be to ask them to change their design. The wsdl file at https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl imports two xml-schemas:
| <import namespace="urn:ebay:apis:CoreComponentTypes" schemaLocation="CoreComponentTypes.xsd"/>
| <import namespace="urn:ebay:apis:eBLBaseComponents" schemaLocation="eBLBaseComponents.xsd"/>
|
The CoreComponentTypes.xsd contains an import of eBLBaseComponents.xsd
| <xs:import namespace="urn:ebay:apis:eBLBaseComponents" schemaLocation="eBLBaseComponents.xsd"/>
|
and the eBLBaseComponents.xsd contains an import of CoreComponentTypes.xsd
| <import namespace="urn:ebay:apis:CoreComponentTypes" schemaLocation="CoreComponentTypes.xsd"/>
|
And all this makes a circular reference between the two schema imports. Maybe one can file this as an extra feature/bug in JBoss. It shall not hang and it could be a good if JBoss was controlling if a schema already has been imported during the scan for schema imports.
Hope this helps!
Kind regards
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092851#4092851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092851
18Â years, 7Â months
[Javassist user questions] - java.lang.NoSuchMethodException when invoking a method
by ssiddiqu
I am getting java.lang.NoSuchMethodException when running the following code. Any ideas how can I create a new class, add a method and invoke it?
String aMethod="printSomething";
String src="public static void "+aMethod+"()" +
"{" +
"System.out.println(\"Kia Hoa\");" +
"}";
System.out.println(src);
String className="mytest.MyTest";
// we assume that called methods have no argument
Class<?> params[] = {};
Object paramsObj[] = {};
try
{
ClassPool pool = ClassPool.getDefault();
CtClass cc = pool.makeClass(className);
CtNewMethod.make(src,cc);
cc.stopPruning(true);
//cc.freeze();
Loader cl = new Loader(pool);
// Class<?> thisClass = Class.forName(className);
Class thisClass = cl.loadClass(className);
// get the method
Method thisMethod = thisClass.getDeclaredMethod(aMethod);
// call the method
System.out.println
(thisMethod.invoke(thisClass, paramsObj).toString());
}
catch(Exception e)
{
e.printStackTrace();
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092846#4092846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092846
18Â years, 7Â months