Failed to generate code for the service reference on a webservice - asp.net

EgoPay's website has a WebService that i'm trying to work with, But there is a problem when i add it to my Asp.Net project( I added it through "Add Service Reference" option) after building solution i have got an error :
Custom tool error: Failed to generate code for the service reference 'ServiceReference1'.  Please check other error and warning messages for details.
and i have got 3 Warning :
1- Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: The datatype 'schemas.xmlsoap.org/soap/encoding/:Array' is missing.
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
2- Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
XPath to Error Source: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:service[#name='API_EgoPay_SoapService']/wsdl:port[#name='API_EgoPay_SoapPort']
3- Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[#targetNamespace='www.egopay.com/api/soap']/wsdl:portType[#name='API_EgoPay_SoapPort']
XPath to Error Source: //wsdl:definitions[#targetNamespace='https://www.egopay.com/api/soap']/wsdl:binding[#name='API_EgoPay_SoapBinding']
the webservice address is : https://www.egopay.com/api/soap?wsdl
i searched in the net for this error and most of answers were "uncheck Reused types in referenced assemblies" but it did'nt work to me.
i'll be thankfull if anyone help me or anyone could test this webservice in asp.net and tell me the result.

Related

Compilation Error on my server on SmartStore App

I have installed SmartStore on my server. everything is working fine except the add category module. when ever I try to Add or Edit any category an error pops saying :
Compilation Error Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source
code appropriately.
Compiler Error Message: CS0121: The call is ambiguous between the
following methods or properties:
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Action>)'
and
'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory.Template(System.Func,object>)'
Line 441: .ToolBar(commands => commands.Template(CategoryProductsGridCommands))
Please help me out. I m stuck :(
After working on it, we got the solution for this. So kindly try like this.
Hope will work
.ToolBar(commands => commands.Template(pp=>GridCommands(pp)))

Robot framework - Red Editor - Unknown library error message

I'm trying to import some classes using the "Library" keyword. I get the error message:
"Unknown library. Try to use Quick Fix (Ctrl+1) or add
library to red.xml for proper validation
Some of these classes exist in the same folder, other exists in another one. But same error for both cases.
ctrl+1 doesn't help, it shows this error message:
"Additional info: ((u"Importing test library '' failed:
ImportError: No module named infra".
And I'm not sure where to add to red.xml.
Any idea how to import classes and fix this error?
Any help would be appreciated!

NetBeans IDE 8.0.1 gives Redefinition failed with error 62 Check JVMTI documentation for this error code

I am using NetBeans IDE 8.0.1,jdk1.7.0_67,tomcat apache-tomcat-7.0.47. I have written a sample HelloWorld Spring MVC application and trying to profile the application. when i profile the application i get the following error
Redefinition failed with error 62
Check JVMTI documentation for this error code.
I have gone through the following links
https://netbeans.org/bugzilla/show_bug.cgi?id=191297
https://netbeans.org/bugzilla/show_bug.cgi?id=59085
As said in the links i have set the property "-Xverify:none" in netbeans.conf. After setting the property i get the same error.
This is the default options present in netbeans.conf
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Xverify:none"
Can some one please help me. Thanks in advance

Server Error in '/IIS' Application

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'PropertiesLayer' could not be found (are you missing a using directive or an assembly reference?)
Looks like your code could not findout "PropertiesLayer" which you are refering in your code.
Where is PropertiesLayer defined ? Is it a seperate assembly ? Did you add a reference to that ? If not, add that. That would fix your problem.
Also make sure you are really using something inside that namespace, If you are not using,just remove the import /using statement. I have seen code where namespaces are refereed and not being used.

Could not load type 'NavigateWebApp.Global'

Recently we have moved our project to web app and everything is good but suddenly I do not know when I am trying to debug my application its showing me the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'NavigateWebApp.Global'.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="NavigateWebApp.Global" Language="C#" %>
Source File: /global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
I am sure that there are no build errors.
This is probably caused by your 'NavigateWebApp.Global' class/namespace not being available in the location you've specified.
Check where you define this and ensure it's accessible to the Global.asax page.
The root of the problem is your Global.asax file is referencing a class which no longer exists (or at least at the location you have specified). Simple fix is to update the Inherits attribute with the fully qualified path to your Global.asax class name (which you will find in the Global.asax.cs file).

Resources