Click here to Skip to main content
16,018,518 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I am consuming a JAVA based AsymmetricBinding web service through ASP.NET
I have created Object of that web service, and consumed the Method which has Four parameters
eg:
C#
try{
     MyService objWebRef = new MyService();
     objWebRef.funSample("UserName","Password","RefNo","OptionalField");
   }
catch( Exception ex)
   {
      response.write(ex.tostring());
   }


when I am running this I am getting ERROR as Follows in the catch exception block

Invalid Security

C#
System.Reflection.TargetInvocationException: Exception has been thrown by the target of invocation, --- System.Web.Service.Protocal.SoapException: SOAP Header Missing
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall

Can You please help me with the same.
Posted
Updated 12-Jan-14 1:08am
v3
Comments
Kornfeld Eliyahu Peter 12-Jan-14 7:13am    
It seems that the specific Java service you try to consume is not SOAP...

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900