on 07-03-2009 4:44 AM
Hi developers all around the world,
Currently I'm facing a problem on creating a SAP Connector Class. This is the step when i create it:
1. File > New Project
2. Under Project Types, I choose Visual C# Projects > SAP Connector Class. Then I click Ok.
3. SAP.Net Connector Wizard window appear. I choose SAP Server and hit Next button.
4. In "Enter Logon Information" window, I fill in everything. I also choose Client Proxy as Object Type, and tick both checkboxes (Beautify Names and Async Method). Then click Next.
5. I select the RFC I want (RFC_TVM_TEST_SVR) and click Next.
6. Wizard start generating code...
7. An error occured.
C:\Documents and Settings\Admin\My Documents\Visual Studio Projects\SAPProxyDll2\SAPProxyDll2\SAPProxyDll2.sapwsdl(1): Custom tool error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Xml.Xsl.XPathSortArrayIterator.get_Current()
at System.Xml.Xsl.ActionFrame.NewNextNode(Processor proc)
at System.Xml.Xsl.ForEachAction.Execute(Processor processor, ActionFrame frame)
at System.Xml.Xsl.ActionFrame.Execute(Processor processor)
at System.Xml.Xsl.Processor.Execute()
at System.Xml.Xsl.XslTransform.Transform(XPathNavigator input, XsltArgumentList args, TextWriter output)
at SAP.Connector.Design.Generators.MetadataDom.CreateProxies(String targetDir, XsltArgumentList arguments)
at SAP.Connector.Design.Generators.MetadataDom.CreateProxies(String dir, String namespaceName)
at SAP.Connector.Design.Generators.CodeGeneratorForSAPWSDL.Generate(IGenerationContext context)
at SAP.Connector.Design.Generators.GeneratorBase.Generate(String wszInputFilePath, String bstrInputFileContents, String wszDefaultNamespace, Byte[]& rgbOutputFileContents, UInt32& pcbOutput, IVsGeneratorProgress pGenerateProgress)
For information, this RFC will not give any input to SAP, it just to get a date and time from SAP. The purpose is to check the SAP connection if it is Ok or not.
I hope someone can help me with this.
Regards,
Leybra
p/s : Develop using Microsoft Windows XP, Microsoft Visual Studio .NET 2003 and SAP Connector 1.0
if you are on standalone machine , try fresh installation of studio and sap connector, or either you can try on another machine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.