473,396 Members | 1,799 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.

Calling C#-Webservice from a java client

Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha
Nov 23 '05 #1
6 8930
CG
It's not hard to use .net webservice using Java Client. You just need to make
sure of some data type etc. other than that i did not have any problem. It
was very smooth.

"Sascha Schmidt" wrote:
Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha

Nov 23 '05 #2
Hi,

to add a litte; Just don't be fooled by the toolkits. Like CG wrote;
your main concern will be the datatypes you expose over the wire
(in/out parameters & return values).

If you stick to the XSD definable types (i.o.w. RecordSet = .Net, not
XSD! don't use in WS) you should be fine.

Hope this helps,

Marvin Smit.

On Tue, 8 Nov 2005 18:41:02 -0800, "CG" <CG@discussions.microsoft.com>
wrote:
It's not hard to use .net webservice using Java Client. You just need to make
sure of some data type etc. other than that i did not have any problem. It
was very smooth.

"Sascha Schmidt" wrote:
Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha

Nov 23 '05 #3
Hi.

I'm programing in Visual Fox Pro 9 and I have the same problem with Java
Cliet. I follow these recomendation, but the problem is the same. This is
part of my WSDL file:

<message name='Vivienda.recibirVivienda'>
<part name='cViviendaXML' type='xsd:string'/>
</message>

<message name='Vivienda.recibirViviendaResponse'>
<part name='Result' type='xsd:string'/>
</message>

The client in VFP9 and VB6, receive the answer correct. But the java client
receive a NULL answer.

Thanks
"Marvin Smit" wrote:
Hi,

to add a litte; Just don't be fooled by the toolkits. Like CG wrote;
your main concern will be the datatypes you expose over the wire
(in/out parameters & return values).

If you stick to the XSD definable types (i.o.w. RecordSet = .Net, not
XSD! don't use in WS) you should be fine.

Hope this helps,

Marvin Smit.

On Tue, 8 Nov 2005 18:41:02 -0800, "CG" <CG@discussions.microsoft.com>
wrote:
It's not hard to use .net webservice using Java Client. You just need to make
sure of some data type etc. other than that i did not have any problem. It
was very smooth.

"Sascha Schmidt" wrote:
Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha

Nov 23 '05 #4
Hi,

Is there any chance that the java client was written using a toolkit
that is causing the error? If all clients work, but the Java one
doesn't, i would start looking at the java toolkit that is used, not
the server.

Marvin Smit.

On Wed, 9 Nov 2005 16:33:44 -0800, "Mario Casas" <Mario
Ca***@discussions.microsoft.com> wrote:
Hi.

I'm programing in Visual Fox Pro 9 and I have the same problem with Java
Cliet. I follow these recomendation, but the problem is the same. This is
part of my WSDL file:

<message name='Vivienda.recibirVivienda'>
<part name='cViviendaXML' type='xsd:string'/>
</message>

<message name='Vivienda.recibirViviendaResponse'>
<part name='Result' type='xsd:string'/>
</message>

The client in VFP9 and VB6, receive the answer correct. But the java client
receive a NULL answer.

Thanks
"Marvin Smit" wrote:
Hi,

to add a litte; Just don't be fooled by the toolkits. Like CG wrote;
your main concern will be the datatypes you expose over the wire
(in/out parameters & return values).

If you stick to the XSD definable types (i.o.w. RecordSet = .Net, not
XSD! don't use in WS) you should be fine.

Hope this helps,

Marvin Smit.

On Tue, 8 Nov 2005 18:41:02 -0800, "CG" <CG@discussions.microsoft.com>
wrote:
>It's not hard to use .net webservice using Java Client. You just need to make
>sure of some data type etc. other than that i did not have any problem. It
>was very smooth.
>
>"Sascha Schmidt" wrote:
>
>> Hi again!
>>
>> Well, the first part of my "mission" (calling remoting objects from a
>> webservice) is solved. But there's another part: Calling
>> this C#-Webservice from a java client.
>>
>> Is this a difficult task? Or is this quite easy, like just a few lines
>> of source and using some of the packages from apache.org?
>> Has anybody done this before and will like to tell me about his/her
>> experiences?
>>
>> Thanks in advance!
>> Sascha
>>

Nov 23 '05 #5
There's more to it, even sticking to XSD does not guarantee
interoperability. I have found that deriving types using complex type
extensions does not work cross-platform - .Net uses the default namespace
for its messages and jax-rpc ri chokes on that, it expects all namespaces to
be prefixed (it does not resolve the value of xsi:type in the default
namespace). Also .Net does not handle nillable types well, you need to
define them with minoccurs set to 0, if you set minoccurs to 1 and nillable
to true .Net 1.1 (but not 2.0) will throw during deserialization. There's
probably more then this.

Jerry

"Marvin Smit" <ma*********@gmail.com> wrote in message
news:g4********************************@4ax.com...
Hi,

to add a litte; Just don't be fooled by the toolkits. Like CG wrote;
your main concern will be the datatypes you expose over the wire
(in/out parameters & return values).

If you stick to the XSD definable types (i.o.w. RecordSet = .Net, not
XSD! don't use in WS) you should be fine.

Hope this helps,

Marvin Smit.

On Tue, 8 Nov 2005 18:41:02 -0800, "CG" <CG@discussions.microsoft.com>
wrote:
It's not hard to use .net webservice using Java Client. You just need to
make
sure of some data type etc. other than that i did not have any problem. It
was very smooth.

"Sascha Schmidt" wrote:
Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha

Nov 23 '05 #6
Hi,

reading the specs of the WS-I stuff, it are the toolkits that are
failing us, not the XSD usage in WebServices by itself.

That does not help us in the real world out there since there are only
so many toolkits that are 'accepted' and usable.

There are some 'validation tools' out there. My advise is still to
build up from the contracts (WSDL, XSD) and have the toolkits generate
the code. Its the best option between "code first->gen contracts->gen
code" and "contract first->gen server/client code".

Marvin Smit.

On Tue, 15 Nov 2005 11:57:51 -0800, "Jerry Pisk"
<je******@hotmail.com> wrote:
There's more to it, even sticking to XSD does not guarantee
interoperability. I have found that deriving types using complex type
extensions does not work cross-platform - .Net uses the default namespace
for its messages and jax-rpc ri chokes on that, it expects all namespaces to
be prefixed (it does not resolve the value of xsi:type in the default
namespace). Also .Net does not handle nillable types well, you need to
define them with minoccurs set to 0, if you set minoccurs to 1 and nillable
to true .Net 1.1 (but not 2.0) will throw during deserialization. There's
probably more then this.

Jerry

"Marvin Smit" <ma*********@gmail.com> wrote in message
news:g4********************************@4ax.com.. .
Hi,

to add a litte; Just don't be fooled by the toolkits. Like CG wrote;
your main concern will be the datatypes you expose over the wire
(in/out parameters & return values).

If you stick to the XSD definable types (i.o.w. RecordSet = .Net, not
XSD! don't use in WS) you should be fine.

Hope this helps,

Marvin Smit.

On Tue, 8 Nov 2005 18:41:02 -0800, "CG" <CG@discussions.microsoft.com>
wrote:
It's not hard to use .net webservice using Java Client. You just need to
make
sure of some data type etc. other than that i did not have any problem. It
was very smooth.

"Sascha Schmidt" wrote:

Hi again!

Well, the first part of my "mission" (calling remoting objects from a
webservice) is solved. But there's another part: Calling
this C#-Webservice from a java client.

Is this a difficult task? Or is this quite easy, like just a few lines
of source and using some of the packages from apache.org?
Has anybody done this before and will like to tell me about his/her
experiences?

Thanks in advance!
Sascha

Nov 23 '05 #7

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

Similar topics

2
by: Shailan | last post by:
Hi Im having trouble with the following code that seems to be behave differently when called from the browser as opposed to the command line. The calling script is a cgi that forks, with the...
4
by: Paul | last post by:
Hi, In SQL Books Online in the section on @@Error it gives the following example: -- Execute the INSERT statement. INSERT INTO authors (au_id, au_lname, au_fname, phone, address, city,...
8
by: Vinod | last post by:
Hi, I have a problem, i am calling an exe from asp program. Its not working fine. When i execute the exe through the dos program directly i get the desired result. My exe will convert files in...
1
by: Asapi | last post by:
1. Are linkage convention and calling convention referring to the same thing? 2. Does calling convention differ between languages C and C++? 3. How does calling convention differ between...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
2
by: Geler | last post by:
A theoretical question: Sorry if its a beginner question. Here is a quote from the MSDN explaning the C/C++ calling convention.. It demonstrates that the calling function is responsible to clean...
47
by: teju | last post by:
hi, i am trying 2 merge 2 projects into one project.One project is using c language and the other one is using c++ code. both are working very fine independently.But now i need to merge both...
10
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.