473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Java client and .net web service - please help

Hi,
We are developing a java client that need to call a .net web service in
another server.
I have 2 methods in .net WS,one returns a dataset and other returns a boolean.
We have to use plain java client(not a java WS) using httpconnection or URL
Connection.
I'm able to recieve a string value.

However I had following problems

1.How to assign a dataset in java
or
If I return a XML representation of dataset,how to fetch that in URL
Connection or Inputstream?

2.How to add method parameters to a soap request that are needed by .net WS
method??

3.How can i transform a returned string value to a XML document in java??

Please help me to sort this out.

Thanks
Regards

--
Guhan
Nov 23 '05 #1
4 3208
"=?Utf-8?B?R3VoYW5hdGg=?=" <Gu******@discussions.microsoft.com> wrote in
news:70**********************************@microsof t.com:
1.How to assign a dataset in java
Datasets are purely a .NET thing, Java has no knowledge of this concept. To Java its just another set
of XML and you will have to parse it with an XML parser, or see if someone has made a wrapper in
Java for .NET datasets.
2.How to add method parameters to a soap request that are needed by
.net WS method??
Just use normal Java procedures for consuming a webservice.
3.How can i transform a returned string value to a XML document in
java??


This woudl be much better asked on a Java group.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #2
"=?Utf-8?B?R3VoYW5hdGg=?=" <Gu******@discussions.microsoft.com> wrote in
news:70**********************************@microsof t.com:
1.How to assign a dataset in java
Datasets are purely a .NET thing, Java has no knowledge of this concept. To Java its just another set
of XML and you will have to parse it with an XML parser, or see if someone has made a wrapper in
Java for .NET datasets.
2.How to add method parameters to a soap request that are needed by
.net WS method??
Just use normal Java procedures for consuming a webservice.
3.How can i transform a returned string value to a XML document in
java??


This woudl be much better asked on a Java group.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Nov 23 '05 #3
Hi,
I have 2 parameters in .net web service method(factype as string,reqdate
as string).
My SOAP request is as follows
<soap:Envelope>
<soap:Body>
.......
<factype>string</factype>
<reqdate>string</reqdate>
......
</soap:Body>
</soap:Envelope>

I have printed the SOAPRequest string in java console and found that it
matches the XML that is shown, when running the asmx file and the
corresponding method call from IIS

When I run the java application it returns that "Parameter is
incorrect".what could be the problem??

<
--
Guhan
"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?R3VoYW5hdGg=?=" <Gu******@discussions.microsoft.com> wrote in
news:70**********************************@microsof t.com:
1.How to assign a dataset in java


Datasets are purely a .NET thing, Java has no knowledge of this concept. To Java its just another set
of XML and you will have to parse it with an XML parser, or see if someone has made a wrapper in
Java for .NET datasets.
2.How to add method parameters to a soap request that are needed by
.net WS method??


Just use normal Java procedures for consuming a webservice.
3.How can i transform a returned string value to a XML document in
java??


This woudl be much better asked on a Java group.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

Nov 23 '05 #4
Hi,
I have 2 parameters in .net web service method(factype as string,reqdate
as string).
My SOAP request is as follows
<soap:Envelope>
<soap:Body>
.......
<factype>string</factype>
<reqdate>string</reqdate>
......
</soap:Body>
</soap:Envelope>

I have printed the SOAPRequest string in java console and found that it
matches the XML that is shown, when running the asmx file and the
corresponding method call from IIS

When I run the java application it returns that "Parameter is
incorrect".what could be the problem??

<
--
Guhan
"Chad Z. Hower aka Kudzu" wrote:
"=?Utf-8?B?R3VoYW5hdGg=?=" <Gu******@discussions.microsoft.com> wrote in
news:70**********************************@microsof t.com:
1.How to assign a dataset in java


Datasets are purely a .NET thing, Java has no knowledge of this concept. To Java its just another set
of XML and you will have to parse it with an XML parser, or see if someone has made a wrapper in
Java for .NET datasets.
2.How to add method parameters to a soap request that are needed by
.net WS method??


Just use normal Java procedures for consuming a webservice.
3.How can i transform a returned string value to a XML document in
java??


This woudl be much better asked on a Java group.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions...
1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
7
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully...
1
by: Vaibhav Modak | last post by:
Hi All, I have a Web Service written in Java (Web Logic) and I am trying to call it in my ASP. NET client. I am facing a problem while getting the data from the Web Service Method. My Web...
0
by: Guhanath | last post by:
Hi, We are developing a java client that need to call a .net web service in another server. I have 2 methods in .net WS,one returns a dataset and other returns a boolean. We have to use plain...
5
by: Niall | last post by:
I'm experience problems very similar to those reported in this thread on dotnet.framework on May 16 at...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.