Problem solve Get help with specific problems with your technologies, process and projects.

WSDL parsers

Anne Thomas Manes discusses how to go about generating XML files that can be used to integrate two different applications.

How do I parse WSDL files? I need to generate a common XML file, which can be used to integrate two different applications (say for example, one is J2EE and another is .NET application ). I need to transfer messages from J2EE to .NET. What files should be generated (in the form of XML) to achieve this task? Note: I do not want to use any Web server to achieve this task (i.e. there should not be any middle Web server in between J2EE and .NET applications).

Because you are talking about WSDL, I assume you also intend to use SOAP rather than just plain old XML. Most SOAP frameworks include a utility that parses WSDL and generates client stub and server skeleton code. This generated code automatically serializes your native language types into XML and packages it into a SOAP message. Your application typically doesn't need to work with XML directly. In .NET the utility is called wsdl.exe. In Java, the name of the tool is dependent on the framework you're using, but it's often called wsdl2java, wsgen, or wscompile.

If you prefer, most frameworks also allow you to construct your own XML structures using DOM, SAX, or (in Java) StAX or using an XML binding framework, such as JAXB or XMLBeans.

In no circumstances is it necessary to put an additional web server in between the Java and .NET applications. Both applications are natively speaking XML, and no intermediary is required (unless you want to use one). Keep in mind, though, that the SOAP messages (or plain old XML messages for that matter) are transferred using HTTP, which implies that the Java and .NET applications are both hosted by their respective HTTP servers.

Dig Deeper on Topics Archive

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.