Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member, |
|
 |

05-15-2008, 12:00 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
Can I easily create an XML Document in Java and pass to a .NET Web Service?
If I have a .NET Web Service with a method that accepts an XMLDocument as an input parameter, can a Java Program supply that same datatype, or is an "XMLDocument" in .NET different from what is available in Java (I have .NET but basically no Java experience).
Also - I know in .NET programs, you can easily call WS methods much like any other class/obj methods; is it similar in Java, or much more complex to do something like this (eg, do you have to manually take care of all the SOAP stuff).
Thx.
|

05-15-2008, 12:15 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 16
|
|
If you can obtain the WSDL file for the Web Service, you can use a variety of Java tools to help generate stub code and object types to work with the .NET Web Service. The beauty of web services is that they tend to be application agnostic. I say "tend to be" because it is possible to embed binary objects in the XML document, but that sort of goes against the spirit of services.
Take a look at the Apache XML Bean website for one way to work with the XML document. Another option is the Sun JAXP (Java XML Parser). I tend to like the Apache XML Bean option as more of the IDEs seem to be moving that way.
** Edit **
Oh, you can also work with the xsd files for the document types too. If you plan to call the service though, the WSDL file is probably more convenient to work with.
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 07:20 PM.