[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsif-dev
Subject:    Re: WSIF / Parser
From:       Aleksander Slominski <aslom () cs ! indiana ! edu>
Date:       2005-12-01 16:57:42
Message-ID: 438F2B86.8020602 () cs ! indiana ! edu
[Download RAW message or body]

hi Martti,

i applied a patch for this problem few days ago (see [1]) - please check 
the latest version of WSIF from SVN and see if it works for you (i think 
it should - and there are some other bug fixes). svn repository is 
http://svn.apache.org/repos/asf/webservices/wsif/trunk (see 
http://www.apache.org/dev/version-control.html#anon-svn on how to use svn)
 
what was the problem you are getting when you try to subscribe to wsif-dev?

thanks,

alek

Kauppinen Martti wrote:

> I tried to use the latest nightly build for wsif (wsif-2.0.1_IB3).
> However I did not succeed to get the ejb binding sample to work. The
> same sample worked fine with the official release (wsif-2.0). I traced
> the problem to the wsdl4j component, which has added support for
> schemas. What happens is that WSDLReader returns a javax.wsdl.xml.Schema
> instance instead of javax.wsdl.extensions.UnknownExtensibilityElement.
> Later in org.apache.wsif.schema.Parser.getTypesSchemas() the Schema
> instance is not handled correctly.
> 
> I made a quick patch on Parser.java (attached) to handle Schema
> instances in getTypesSchemas() method. I did not manage to subscribe to
> wsif-dev mailing list so that is why I send this mail directly to you.
> You can do a diff against the current version to find out the changes I
> made. If you find the patch acceptable, maybe you can add it to the CVS.
> 
> regards
> Martti Kauppinen
> 
> <<Parser.java>> 
> 
> 

[1]
-------- Original Message --------
Subject: 	svn commit: r349553 - 
/webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java
Date: 	Mon, 28 Nov 2005 23:16:29 -0000
From: 	aslom@apache.org
Reply-To: 	wsif-dev@ws.apache.org
To: 	wsif-cvs@ws.apache.org



Author: aslom
Date: Mon Nov 28 15:16:24 2005
New Revision: 349553

URL: http://svn.apache.org/viewcvs?rev=349553&view=rev
Log:
applied fix for WSIF-75 The current version of org.apache.wsif.schema.Parser does not \
work with WSDL4J1.5.1 http://issues.apache.org/jira/browse/WSIF-75

Modified:
    webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java

Modified: webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java
URL: http://svn.apache.org/viewcvs/webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java?rev=349553&r1=349552&r2=349553&view=diff
 ==============================================================================
--- webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java (original)
+++ webservices/wsif/trunk/java/src/org/apache/wsif/schema/Parser.java Mon Nov 28 \
15:16:24 2005 @@ -508,10 +508,22 @@
                 if(!(nextEl instanceof UnknownExtensibilityElement)) {
                     continue;
                 }
-                UnknownExtensibilityElement typesElement =
-                    (UnknownExtensibilityElement) nextEl;
+//                UnknownExtensibilityElement typesElement =
+//                    (UnknownExtensibilityElement) nextEl;
+
+                //Element schemaEl = typesElement.getElement();
+                Element schemaEl;
+                
+                if(nextEl instanceof javax.wsdl.extensions.schema.Schema) {
+                    javax.wsdl.extensions.schema.Schema typesElement = \
(javax.wsdl.extensions.schema.Schema)nextEl; +                    schemaEl = \
typesElement.getElement(); +                } else if (nextEl instanceof \
UnknownExtensibilityElement) { +                    UnknownExtensibilityElement \
typesElement = (UnknownExtensibilityElement) nextEl; +                    schemaEl = \
typesElement.getElement(); +                } else {
+                    continue;
+                }
 
-                Element schemaEl = typesElement.getElement();
                 if (QNameUtils.matches(schema2001, schemaEl)
                     || QNameUtils.matches(schema2000, schemaEl)
                     || QNameUtils.matches(schema1999, schemaEl)) {





-- 
The best way to predict the future is to invent it - Alan Kay


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic