473,387 Members | 3,801 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,387 software developers and data experts.

.NET XML Web Service interop

I found an article on calling a .NET web service from Java but it seemed to
rely on GLUE and I was unable to find out how to download that software.
There seems to be alot written on the Sun site, and I have downloaded the SDK
and the web services SDK but I am not sure where to proceed from there.
Basically I want to show how to do these simple tasks:

1) Call a .NET web service from a Java client
2) Build Java proxies based on a WSDL.
3) Assign a Username token to a Java proxy and call the web service using
WS-Security
4) Use MTOM to send a potentially large file to a web service again using a
Java client.

As a bonus I would like to get and associate a Kerberos ticket with a web
service call but it doesn't look like Sun supports Kerberos tokens.

Any help or pointers in getting these to work would be greatly appreciated.
It is fairly straightforward to implement all of the above when I have
control over both ends (in other words .NET to .NET) but my experience with
Java limits me at this point.

Thank you.

Kevin
Nov 5 '06 #1
4 2020
Hey Kevin,

I recently demo'ed a Java client to .NET web service scenario, where
messages in the IODEF format
(http://xml.coverpages.org/draft-ietf-inch-iodef-10.txt) were exchanged.

C# ASP.NET Web service, Java desktop client built using Borland JBuilder.

I'm not a Java programmer by far, but consuming the service was relatively
an easy matter.

I didn't do any security but plan to in the coming week. I'm gonna refer to
msdn.microsoft.com -Web Services Developer Center -Interopability
section. There are articles there on using WSE3 to provide security in an
disparate platform scenario.

Hopefully that helps you with tasks 1, 2, and 3.

There is also a tool named WSDL2Java which I've seen in google searches but
haven't tried out. As I mentioned, Borland JBuilder worked straight from the
installation for me. The Web service WSDL was defined completely in XML Spy
and I used wsdl.exe to generate the service interface code (thanks to Nick
Locke for posting his WSDL for me to learn that technique from).

Ron

Ron

"Kevin Burton" <Ke*********@discussions.microsoft.comwrote in message
news:63**********************************@microsof t.com...
>I found an article on calling a .NET web service from Java but it seemed to
rely on GLUE and I was unable to find out how to download that software.
There seems to be alot written on the Sun site, and I have downloaded the
SDK
and the web services SDK but I am not sure where to proceed from there.
Basically I want to show how to do these simple tasks:

1) Call a .NET web service from a Java client
2) Build Java proxies based on a WSDL.
3) Assign a Username token to a Java proxy and call the web service using
WS-Security
4) Use MTOM to send a potentially large file to a web service again using
a
Java client.

As a bonus I would like to get and associate a Kerberos ticket with a web
service call but it doesn't look like Sun supports Kerberos tokens.

Any help or pointers in getting these to work would be greatly
appreciated.
It is fairly straightforward to implement all of the above when I have
control over both ends (in other words .NET to .NET) but my experience
with
Java limits me at this point.

Thank you.

Kevin

Nov 5 '06 #2
For WS-Security, you may find a lot of good resources at
http://ws.apache.org/axis2/ as well.

"RYoung" wrote:
Hey Kevin,

I recently demo'ed a Java client to .NET web service scenario, where
messages in the IODEF format
(http://xml.coverpages.org/draft-ietf-inch-iodef-10.txt) were exchanged.

C# ASP.NET Web service, Java desktop client built using Borland JBuilder.

I'm not a Java programmer by far, but consuming the service was relatively
an easy matter.

I didn't do any security but plan to in the coming week. I'm gonna refer to
msdn.microsoft.com -Web Services Developer Center -Interopability
section. There are articles there on using WSE3 to provide security in an
disparate platform scenario.

Hopefully that helps you with tasks 1, 2, and 3.

There is also a tool named WSDL2Java which I've seen in google searches but
haven't tried out. As I mentioned, Borland JBuilder worked straight from the
installation for me. The Web service WSDL was defined completely in XML Spy
and I used wsdl.exe to generate the service interface code (thanks to Nick
Locke for posting his WSDL for me to learn that technique from).

Ron

Ron

"Kevin Burton" <Ke*********@discussions.microsoft.comwrote in message
news:63**********************************@microsof t.com...
I found an article on calling a .NET web service from Java but it seemed to
rely on GLUE and I was unable to find out how to download that software.
There seems to be alot written on the Sun site, and I have downloaded the
SDK
and the web services SDK but I am not sure where to proceed from there.
Basically I want to show how to do these simple tasks:

1) Call a .NET web service from a Java client
2) Build Java proxies based on a WSDL.
3) Assign a Username token to a Java proxy and call the web service using
WS-Security
4) Use MTOM to send a potentially large file to a web service again using
a
Java client.

As a bonus I would like to get and associate a Kerberos ticket with a web
service call but it doesn't look like Sun supports Kerberos tokens.

Any help or pointers in getting these to work would be greatly
appreciated.
It is fairly straightforward to implement all of the above when I have
control over both ends (in other words .NET to .NET) but my experience
with
Java limits me at this point.

Thank you.

Kevin


Nov 6 '06 #3
This was helpful. Thank you for your interest.

In building one of the samples (security) the message is "SUCCESSFUL" but I
get a stack trace. Was it really successful?

Thanks again.

Kevin
C:\axis2\samples\security>ant
Buildfile: build.xml

securitySample:
[java] log4j:WARN No appenders could be found for logger
(org.apache.axiom.
om.impl.builder.StAXOMBuilder).
[java] log4j:WARN Please initialize the log4j system properly.
[java] org.apache.axis2.AxisFault: Trying to engage a module which is
not a
vailable : addressing
[java] at
org.apache.axis2.engine.AxisConfiguration.engageMo dule(AxisCo
nfiguration.java:291)
[java] at
org.apache.axis2.deployment.DeploymentEngine.engag eModules(De
ploymentEngine.java:743)
[java] at
org.apache.axis2.deployment.FileSystemConfigurator .engageGlob
alModules(FileSystemConfigurator.java:128)
[java] at
org.apache.axis2.context.ConfigurationContextFacto ry.createCo
nfigurationContext(ConfigurationContextFactory.jav a:41)
[java] at
org.apache.axis2.context.ConfigurationContextFacto ry.createCo
nfigurationContextFromFileSystem(ConfigurationCont extFactory.java:90)
[java] at sample.security.Client.main(Client.java:48)

BUILD SUCCESSFUL
Total time: 1 second

"Scott Seely" wrote:
For WS-Security, you may find a lot of good resources at
http://ws.apache.org/axis2/ as well.

"RYoung" wrote:
Hey Kevin,

I recently demo'ed a Java client to .NET web service scenario, where
messages in the IODEF format
(http://xml.coverpages.org/draft-ietf-inch-iodef-10.txt) were exchanged.

C# ASP.NET Web service, Java desktop client built using Borland JBuilder.

I'm not a Java programmer by far, but consuming the service was relatively
an easy matter.

I didn't do any security but plan to in the coming week. I'm gonna refer to
msdn.microsoft.com -Web Services Developer Center -Interopability
section. There are articles there on using WSE3 to provide security in an
disparate platform scenario.

Hopefully that helps you with tasks 1, 2, and 3.

There is also a tool named WSDL2Java which I've seen in google searches but
haven't tried out. As I mentioned, Borland JBuilder worked straight from the
installation for me. The Web service WSDL was defined completely in XML Spy
and I used wsdl.exe to generate the service interface code (thanks to Nick
Locke for posting his WSDL for me to learn that technique from).

Ron

Ron

"Kevin Burton" <Ke*********@discussions.microsoft.comwrote in message
news:63**********************************@microsof t.com...
>I found an article on calling a .NET web service from Java but it seemed to
rely on GLUE and I was unable to find out how to download that software.
There seems to be alot written on the Sun site, and I have downloaded the
SDK
and the web services SDK but I am not sure where to proceed from there.
Basically I want to show how to do these simple tasks:
>
1) Call a .NET web service from a Java client
2) Build Java proxies based on a WSDL.
3) Assign a Username token to a Java proxy and call the web service using
WS-Security
4) Use MTOM to send a potentially large file to a web service again using
a
Java client.
>
As a bonus I would like to get and associate a Kerberos ticket with a web
service call but it doesn't look like Sun supports Kerberos tokens.
>
Any help or pointers in getting these to work would be greatly
appreciated.
It is fairly straightforward to implement all of the above when I have
control over both ends (in other words .NET to .NET) but my experience
with
Java limits me at this point.
>
Thank you.
>
Kevin
Nov 6 '06 #4
Thank you for your reply.

I am sure it is an easy matter to consume a web service but I seem to be hit
with a number of problems just getting the environment right. I installed an
evaluation copy of JBuilder and I got:

C:\Borland\JBuilder2005\bin>jbuilder
Error occurred during initialization of VM
Could not reserve enough space for object heap

"RYoung" wrote:
Hey Kevin,

I recently demo'ed a Java client to .NET web service scenario, where
messages in the IODEF format
(http://xml.coverpages.org/draft-ietf-inch-iodef-10.txt) were exchanged.

C# ASP.NET Web service, Java desktop client built using Borland JBuilder.

I'm not a Java programmer by far, but consuming the service was relatively
an easy matter.

I didn't do any security but plan to in the coming week. I'm gonna refer to
msdn.microsoft.com -Web Services Developer Center -Interopability
section. There are articles there on using WSE3 to provide security in an
disparate platform scenario.

Hopefully that helps you with tasks 1, 2, and 3.

There is also a tool named WSDL2Java which I've seen in google searches but
haven't tried out. As I mentioned, Borland JBuilder worked straight from the
installation for me. The Web service WSDL was defined completely in XML Spy
and I used wsdl.exe to generate the service interface code (thanks to Nick
Locke for posting his WSDL for me to learn that technique from).

Ron

Ron

"Kevin Burton" <Ke*********@discussions.microsoft.comwrote in message
news:63**********************************@microsof t.com...
I found an article on calling a .NET web service from Java but it seemed to
rely on GLUE and I was unable to find out how to download that software.
There seems to be alot written on the Sun site, and I have downloaded the
SDK
and the web services SDK but I am not sure where to proceed from there.
Basically I want to show how to do these simple tasks:

1) Call a .NET web service from a Java client
2) Build Java proxies based on a WSDL.
3) Assign a Username token to a Java proxy and call the web service using
WS-Security
4) Use MTOM to send a potentially large file to a web service again using
a
Java client.

As a bonus I would like to get and associate a Kerberos ticket with a web
service call but it doesn't look like Sun supports Kerberos tokens.

Any help or pointers in getting these to work would be greatly
appreciated.
It is fairly straightforward to implement all of the above when I have
control over both ends (in other words .NET to .NET) but my experience
with
Java limits me at this point.

Thank you.

Kevin


Nov 6 '06 #5

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

Similar topics

17
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
2
by: Joris Dobbelsteen | last post by:
Is it possible to make a Windows Service that has a COM interop. I want to synchronize my database and ISA server blocklist. The application is quite simple and should do the trick, provided I...
0
by: W Akthar | last post by:
Hi All, I have created a simple Windows Service which needs to be able to send appointments to Outlook. I have no problem makeing a reference to Microsoft Outlook 11.0 Object Library and...
4
by: Jasleen | last post by:
I have written one Widows Service in ATL, having a ATL component running. Now it is very easy to create the VC client by calling CoCreateINstanceEx to create the component running in the service...
5
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown :...
0
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
2
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web...
3
by: Joseph Geretz | last post by:
Our application is primarily VB6, however we are migrating toward .NET and a newer architecture. For the time being though, we're stuck with a hybrid approach with our ActiveX client application...
41
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
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,...

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.