Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a java web service which is configured in glassfish server. When I try to invoke it dynamically from ASP.NET it generates the following message

Unable to import binding 'foxwsPortBinding' from namespace 'http://fox/'. System.InvalidOperationException: Unable to import binding 'foxwsPortBinding' from namespace 'http://fox/'. ---> System.InvalidOperationException: Unable to import operation 'pop_inc'. ---> System.InvalidOperationException: The element 'http://fox/:pop_inc' is missing. at System.Xml.Serialization.XmlSchemaImporter.FindElement(XmlQualifiedName name) at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType) at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping(XmlQualifiedName name) at System.Web.Services.Description.SoapProtocolImporter.ImportLiteralMessage(String messageName, MessagePart[] parts, SoapBodyBinding soapBodyBinding, SoapBindingStyle soapBindingStyle, Boolean wrapped) at System.Web.Services.Description.SoapProtocolImporter.ImportMessage(String messageName, MessagePart[] parts, SoapBodyBinding soapBodyBinding, SoapBindingStyle soapBindingStyle, Boolean wrapped) at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod() at System.Web.Services.Description.ProtocolImporter.GenerateClassForBinding() --- End of inner exception stack trace --- at System.Web.Services.Description.ProtocolImporter.GenerateClassForBinding() --- End of inner exception stack trace --- at System.Web.Services.Description.ProtocolImporter.GenerateClassForBinding() at System.Web.Services.Description.ProtocolImporter.GenerateCode(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext) at System.Web.Services.Description.ServiceDescriptionImporter.Import(CodeNamespace codeNamespace, ImportContext importContext, Hashtable exportContext, StringCollection warnings) at System.Web.Services.Description.ServiceDescriptionImporter.Import(CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit) at real_time_integration.DynamicInvocation() in d:\prototype\framework\real_time_integration.aspx.cs:line 120
I have seen in some forums (e.g. http://support.microsoft.com/kb/820122) that the cause for this is when Wsdl.exe cannot obtain complete information about an element that is declared in an external XML Schema but I am not able to fix it. Would you please provide specific suggestion on it?
Posted
Updated 20-Feb-15 22:29pm
v2
Comments
Kuthuparakkal 21-Feb-15 15:44pm    
Please take a look : http://support.microsoft.com/kb/820122
getrelax 23-Feb-15 3:08am    
I have seen it, the challenge is how can I modify the WSDL file of java web service which is deployed in glassfish server.

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