Re: .NET XML Web Service interop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.engageModule(AxisCo
nfiguration.java:291)
[java] at
org.apache.axis2.deployment.DeploymentEngine.engageModules(De
ploymentEngine.java:743)
[java] at
org.apache.axis2.deployment.FileSystemConfigurator.engageGlob
alModules(FileSystemConfigurator.java:128)
[java] at
org.apache.axis2.context.ConfigurationContextFactory.createCo
nfigurationContext(ConfigurationContextFactory.java:41)
[java] at
org.apache.axis2.context.ConfigurationContextFactory.createCo
nfigurationContextFromFileSystem(ConfigurationContextFactory.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" <KevinBurton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:63A0C0EA-DA84-43D2-86A8-46A4813B66AB@xxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • .Net 2005 /WSE 3.0 and Java client
    ... Security interoperability between Java and .NET web services. ... This web service needs to interact with an external web service ... We are using .Net 2005 and WSE 3.0 and Java client is built ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • WS - .Net to Java interop
    ... Security interoperability between Java and .NET web services. ... This web service needs to interact with an external web service ... Security Token itself i.e the "KeyInfo" element. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: wse (.net) client to wss4j web service allows all passwords, why?
    ... WSE 3.0 to securely connect to my java web service. ... userid (as long as my callback method does not throw an exception). ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: [OT] Of Java and C#
    ... the book and still think it is the best "Teach Yourself Programming" book I ... Week 1 - The Java Language ... The validation engine is the heart of it, ... The next step is to wrap the engine as a Web Service and put it on a server. ...
    (comp.lang.cobol)
  • TS5820: Java / J2ee Developer with strong Unix experience at Minneapolis, MN
    ... Java / J2ee Developer with strong Unix experience at ... Job Tilte: Java Developer ... "2+ years experience developing SOA web service application ... competitive services in IT consulting and staff augmentation providing ...
    (comp.databases.sybase)