Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > WSDL Type Parser

Reply
Thread Tools

WSDL Type Parser

 
 
Philipp Leitner
Guest
Posts: n/a
 
      04-12-2007
Hi all,

sorry in advance - I know that this is not quite the right group for
such a question, but for lack of a better one I am trying my luck
anyway

I need to parse the type information contained in a standard WSDL file
using Java, i.e. I want to have an in-memory representation of the
types (type names and "structure", for complex types as well as simple
types), which I can then use to compare to some input provided by a
user.

So far I have (with some success) used the fine parser that comes
along with WSIF (http://publib.boulder.ibm.com/infocenter/adiehelp/
index.jsp?topic=/com.ibm.wasee.doc/info/ee/javadoc/wsi/org/apache/wsif/
schema/Parser.html), but it turns out that this parser only parses top-
level types. A WSDL file containing element-local types like

<xs:element name="sendOrderConfirmationResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true"
type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>

(as produced by Axis2) will not by parsed completely. Unfortunately
this restriction renders the utility more or less useless for document/
wrapped ... I have already asked a similar question on the WSIF
mailing list, but the whole project seems to be quite dead at the
moment.

Does anybody of you know of a good open-source WSDL or XSD parser
which I could use to generate an in-memory representation of these
types?

many thanks in advance (and sorry for the slightly off-topic Web
Services question),
philipp

 
Reply With Quote
 
 
 
 
Manfred Rosenboom
Guest
Posts: n/a
 
      04-12-2007
Have a look at soapUI 1.7: http://www.soapui.org/
If this tool can read your WSDL files, you can download the sources
of this tool and see, how they do it.
 
Reply With Quote
 
 
 
 
Karl Uppiano
Guest
Posts: n/a
 
      04-13-2007
You might try WSDL4J (http://sourceforge.net/projects/wsdl4j) -- you can
read in WSDL to a DOM-like structure, and write it back out, or
programmatically create new WSDLs.


 
Reply With Quote
 
Philipp Leitner
Guest
Posts: n/a
 
      04-13-2007
Yes, I have been using WSDL4J for all other WSDL-specific tasks in my
application, but dealing with types is rudimentary (better said, not
available) with WSDL4J.

I have also checked in the soapUI* source code, they are using
XMLBeans combined with some rather ugly namespaces and XPath tricks.

/philipp

* nice application btw., didn't know that one yet.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
wsdl.exe fails with WebMethods generated wsdl file mrnu ASP .Net Web Services 0 06-07-2004 04:51 PM
WSDL file produces useless class when imported with WSDL.exe RH ASP .Net Web Services 1 05-27-2004 09:40 PM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM
WSDL.EXE: WSDL Import Directive Stephen Edgecombe ASP .Net Web Services 0 08-13-2003 06:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57