From: Jung , D. C. <chr...@in...> - 2003-03-05 17:33:23
|
well, then I am a little bit wiser now and you made me curious: What = would be the return type for your Element[] and does invoking the service = work? =20 CGJ -----Urspr=FCngliche Nachricht----- Von: Pete Clark [mailto:pc...@se...]=20 Gesendet: Mittwoch, 5. M=E4rz 2003 17:55 An: jbo...@li... Betreff: RE: [JBoss-user] can't find prefix for 'http://www.w3.org/1999/XMLSchema' I just seemed to fix it... my allowedmethods was *, I changed it to = just my runQuery method... this generated WSDL fine. Seems like it happened = when it tried to generate WSDL for the session ejb methods... =20 Pete =20 -----Original Message----- From: jbo...@li... [mailto:jbo...@li...] On Behalf Of Jung , Dr. Christoph Sent: Wednesday, March 05, 2003 11:48 AM To: 'jbo...@li...' Subject: AW: [JBoss-user] can't find prefix for 'http://www.w3.org/1999/XMLSchema' =20 Hmm, I saw somebody asking a similar question a while ago.=20 =20 I am not sure whether services implemented using a java provider = (nothing else is the ejbprovider) can simply utter=20 xml-fragments to be incorporated into the message document.=20 =20 I have only seen this yet for rpc providers (which implement the message handling and WSDL generation by themselves and not via deserialization and reflection as the javaprovider does). =20 Have you tried to get it working with a POJO under plain Axis? I doubt whether this is possible without spending more metadata to the axis = engine. =20 CGJ =20 -----Urspr=FCngliche Nachricht----- Von: Pete Clark [mailto:pe...@qu...]=20 Gesendet: Mittwoch, 5. M=E4rz 2003 16:34 An: jbo...@li... Betreff: [JBoss-user] can't find prefix for 'http://www.w3.org/1999/XMLSchema' Hi there, =20 I'm running Jboss 3.2.0 RC 3 and when I try to get WSDL generated for = one of my services, I get this error:=20 =20 Fault - WSDLException: faultCode=3DOTHER_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.: =20 Has anyone seen anything like this? Here's my web-service.xml file: =20 <?xml version=3D"1.0" encoding=3D"UTF-8"?> =20 <deployment name=3D"Services" xmlns=3D"http://xml.apache.org/axis/wsdd/" xmlns:xsi=3D"http://www..w3.org/2000/10/XMLSchema-instance" xmlns:java=3D"http://xml.apache.org/axis/wsdd/providers/java"> =20 <ejb-ref> <ejb-ref-name>ejb/DatabaseService</ejb-ref-name> <ejb-link>DatabaseService</ejb-link> </ejb-ref> =20 <service name=3D"database" provider=3D"Handler"> <parameter name=3D"handlerClass" value=3D"org.jboss.net.axis.server.EJBProvider"/>=20 <parameter name=3D"beanJndiName" = value=3D"ejb/DatabaseService"/>=20 <parameter name=3D"homeInterfaceName" value=3D"DatabaseServiceHome"/> <parameter name=3D"allowedMethods" value=3D"*"/> <parameter name=3D"scope" value=3D"Session"/> <requestFlow name=3D"HelloRequest"> <handler name=3D"TransactionRequestHandler" type=3D"java:org.jboss.net.axis.server.TransactionRequestHandler" />=20 </requestFlow> <responseFlow name=3D"HelloResponse"> <handler name=3D"SerialisationResponseHandler" type=3D"java:org.jboss.net.axis.server.SerialisationResponseHandler" /> = <handler name=3D"TransactionResponseHandler" type=3D"java:org.jboss.net.axis.server.TransactionResponseHandler" />=20 </responseFlow> </service> =20 </deployment> =20 =20 And here's the stub for the DatabaseService session bean method I am exposing... (the only one in there): =20 public Element[] runQuery(DatabaseRequest lDatabaseRequest) { =20 ///////////// // (lResults XML document built here) /////////////// =20 Element [] lResult =3D new Element[1]; lResult[0] =3D lResults.getDocumentElement(); return lResult; } =20 =20 =20 Pete =20 ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft = Exchange. For more information, connect to http://www.F-Secure.com/ ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft = Exchange. For more information, connect to http://www.F-Secure.com/ |