This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Need Help w.r. to interoperability of java secure service with .net client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need Help w.r. to interoperability of java secure service with .net client" Watch "Need Help w.r. to interoperability of java secure service with .net client" New topic
Author

Need Help w.r. to interoperability of java secure service with .net client

somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Hi
I have developed a secure web service in java using metro 2.0.1 and Netbeans 6.5 with Glassfish v2. It's working fine. I have developed a client (Console Application) using Visual Studio .Net 2010 to consume the secure java service. But i am getting the exception of "No Security Header Found" . The following is the stack trace of this error:

System.ServiceModel.FaultException was unhandled
Message=ERROR: No security header found in the message
Source=mscorlib
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at test_java_client.ServiceReference1.test_VSnet_WS.Add(AddRequest request)
at test_java_client.ServiceReference1.test_VSnet_WSClient.test_java_client.ServiceReference1.test_VSnet_WS.Add(AddRequest request) in E:\.NET Programs\test_java_client\test_java_client\Service References\ServiceReference1\Reference.cs:line 91
at test_java_client.ServiceReference1.test_VSnet_WSClient.Add(Int32 a, Int32 b) in E:\.NET Programs\test_java_client\test_java_client\Service References\ServiceReference1\Reference.cs:line 98
at test_java_client.Program.Main(String[] args) in E:\.NET Programs\test_java_client\test_java_client\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


I think i have to set configuration of metro in VS .net . But i don't know how? I googled for a tutorial for dealing such kind of situation but did not find the exact one.

Please tell me what should i do and if there is any useful link of a tutorial, kindly tell me.
Thanks in advance.

Regards
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44
Repost. Please help if someone know about the problem.

Thanks in advance
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
The obvious question is: *Is* there a security header?
somia razzaq
Ranch Hand

Joined: Jan 26, 2010
Posts: 44

Hi
There is not. Thats why i need help how and which kind of configurations are required at .net client to communicate with java web service which is secured using Metro ws-security.
Actually i have no idea how ws-security is implemented in .net and how java web service using metro is interoperable with .net in the context of ws-security specificatins.

Regards and Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help w.r. to interoperability of java secure service with .net client
 
Similar Threads
Consuming a .NET Typed DataSet from Java
printStackTrace creates and runs a thread?
Problem with security
Why does this recursion try each permutation?
WCF client to WSIT enabled Java service.