Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Java to call a .NET web service  RSS feed

 
Dave Ehrlich
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an aplication where a Java client must call a .NET web service. I am primarily a .NET developer. I was able to create the .NET web service relatively easily. I have created the Java client, but I am having trouble making the connection work.
I bought the book Java Web Services (Chappell/Jewell) and found out about the TcpTunnellGui utility. When I run my call my web service, I am receiving an error that the HTTP Header SOAPAction value is not correct. This error makes sense since I am not setting it.
Could anyone tell me how to set this? I can't find a method for setting it.
Thanks,
Dave
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you receiving this error back from the .NET web service? There are ways (using the odd little .NET bracket notation) to set the SOAP Action header in a .NET web service. It may not require it, but other SOAP engines do.
Kyle
 
Dave Ehrlich
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this thread on java.sun.com
Java forum
that seems to fix the problem. Through TcpTunnelGui, I verified that I successfully communicated with the .NET web service. Though when I attempted to display the return value, nothing displayed (even though the correct return value was in the TcpTunnelGui window).
Any thoughts?
Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!