Skip to main content

Consuming a metro secure java service with .NET client

1 reply [Last post]
somia_razzaq
Offline
Joined: 2009-05-17
Points: 0

Hi 
I am facing a problem and hope your help will solve my problem. I sent this issue on metro forum but nobody replied.The problem is that i have developed a secure web service in java using metro. 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.
Best Regards

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
metro_01
Offline
Joined: 2010-08-06
Points: 0

Re-post
Anybody if knows the solution, kindly help....
Regards
Somia