Click here to Skip to main content
16,022,339 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi friends,
I am using Asp.Net 2.0 application. I am using web services in my application. Here i need your suggestion to answer for 3 questions. I list out my questions here.
1. Web services developed in Java. what configuration i have to do from .net to use java ws?
2. I don't have WS access. I just have wsdl alone only. I need to start the paralled
development until I get ws access from customer. How to understand the ouput type and....
3. As per my understanding Services are developed using JAX-WS programming APIs.
I believe this ws will return the output as xml.
4.Is there any option that i can convert this xml to dataset. that will be helpful to assign this as data

Regards
Guvera
Posted
Comments
OriginalGriff 7-Feb-11 5:23am    
Change your userID!
Never post your email to any public forum unless you really like spam.
If you get a reply, you will get an email (like this one) sent automatically to the address you registered with.
Pavel Yermalovich 7-Feb-11 5:30am    
You need to learn the basics of Web Services. You will find this information almost in every book about ASP.NET.

1 solution

1. Web services developed in Java. what configuration i have to do from .net to use java ws?
If properly written, the web service doesn't care what the client was written in, it just serves up answers, more often than not these are in an XML format called SOAP. You will need configuration to connect to the server. *

2. I don't have WS access. I just have wsdl alone only. I need to start the paralled
development until I get ws access from customer. How to understand the ouput type and....

Backwards engineering is tricky. Contact the customer to see if they have a test server, if not your time will be better spend researching Web Service basics (this is probably true anyway). Write a simple web service in .net and consume it, there are plenty of examples around. Once you've done this you could write your own stub service in .net based on the WSDL that replicates the original, but do not make any assumptions about how the internals of the service will work*

3. As per my understanding Services are developed using JAX-WS programming APIs.
I believe this ws will return the output as xml.

I've never used JAX-WS, a brief look at the documentation here[^] and it looks like it will not merely serve up XML, but SOAP (a Service targeted subset of XML) which is good, as the .net framework already understands SOAP (see answer 4).*

4.Is there any option that i can convert this xml to dataset. that will be helpful to assign this as data
No need, you have been given a wsdl, there is an MS tool called WSDL.exe [^] which generates a proxy class for calling the service, and serializes/deserializes the SOAP XML directly into objects for request and response. So in calling a web service method you open a connection, and call a method on the client as if it were running locally, then close the connection (if not re-used).

* All my answers come with the caveat that you could well experience some unexpected difficulties because the server uses Java and the client is .net. Broadly these should be compatible, but you might find stuff that catches you out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900