473,661 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8962
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='cVivienda XML' type='xsd:strin g'/>
</message>

<message name='Vivienda. recibirVivienda Response'>
<part name='Result' type='xsd:strin g'/>
</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***@discussio ns.microsoft.co m> 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='cVivienda XML' type='xsd:strin g'/>
</message>

<message name='Vivienda. recibirVivienda Response'>
<part name='Result' type='xsd:strin g'/>
</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
interoperabilit y. 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*********@gm ail.com> wrote in message
news:g4******** *************** *********@4ax.c om...
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******@hotma il.com> wrote:
There's more to it, even sticking to XSD does not guarantee
interoperabili ty. 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*********@gm ail.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
4744
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 child trying to call another cgi script and pass arguments to it. It works fine from the command line, and calls the required script and passes the arguments correctly. However, when it is run on the browser, it calls the script but does not pass...
4
23491
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, state, zip, contract) values (@au_id,@au_lname,@au_fname,@phone,@address,
8
8329
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 the folder to encrypted files. But when i call it thru asp program its not working fine. I have tried the following method.
1
2313
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 static and non-static class member function? 4. Could it be possible to specify different calling convention for each "global" or each class member function? Even in a single file scope?
8
2953
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 p3); The parameters here can be read either in the forward order from p1 till p3 or reverse order from p3 till p1. Can anyone explain what is the advantage/disadvantage of either of
5
3414
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 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
2
3143
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 the stack pointer and it does it by the command "add esp,8" after returning from the called function. My questions: 1. Is the stack pointer common in a certain thread(or process)? 2. How does the called function get the parameters, is it by...
47
4944
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 and my c++ code should call c code.but when i tried to call a function in c code externing that function in my c++ code, i am getting unresolved external symbol error. Whatever i try its giving more and more errrors...so is it possible to merge 2...
10
3249
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 programming system places on how a procedure is called and how data is passed between a calling program and procedures are called calling conventions"
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8630
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7362
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.