Code To Use AX 2009 ReturnOrderInService Web Service
Jul 22, 2011
Need to use the create method of the AX 2009 ReturnOrderInService web service in a vb.NET aspx page to create an RMA in AX.The code I've written below creates the RMA in AX, but doesn't show the line details in the AX RMA form, even though the records are in SalesTable and SalesLine.Is a record needed in InventTrans or is there a missing InventRefId value somewhere?[code]
I am currently writing a program in Visual Basic 2008 express edition to read and write to tags on an Omron PLC. I am using the DeviceXPlorer OPC Server V4.1.1.1 program to connect to the Omron PLC. I have made two programs, one is a form program which works fine, two is a windows service program where it does not let me connect to the OPC Server. The connection code is identical, the only difference is the windows service code is called by a timer. The timer works fines and jumps into the connection code, but stops at the line
My OS is Vista Home Premium (64-bit) SP2. I've been working with VS 2010 Beta 2, wrote a few apps, and downloaded the Aug 2009 DirectX SDK. I have all of the source code for a game I wrote ten years ago (with VB5 using DirectSound and DirectInput from DX7) and I would like to get it working with the latest VB and DirectX (and use Direct2D also) but the first problem is that I can't even find how to "include" directx into a project. I was hoping to make a small example app to figure out what I need to do to update my code and what capabilities D2D has, but I can't even get out of the gate with DirectX.
Dim startDate as Datetime startDate = Convert.ToDateTime(datepicker1.text).ToString("dd-MMM-yyyy")
In the immediate window if I try Convert.toDate(datepicker1.text).toString("dd-MMM-yyyy")it is showing date as 29-Sep-2009 but the value of startDate is 09/29/2009 I really don't understand why the value is not set in startDate variable as 29-Sep-2009
I am looking to do a presentation at work to our development team. I was wondering if their is any new tool which would be easy to demonstrate. It is just an after work thing for talking about new technologies.
Im currently working in integrating GR Fingerprint SDK with vb.net application. I am using MSSQL 2008 as my database and vb.net as the front end. I have completed almost 90% of the application and im stuck in integrating this SDK with my application. It has an error such as Unable to connect to database and also grfinger is not initialized cannot be converted to double and stuffs like dat. [Code]
i need to create a function for transforming an xml document using xslt. I am able to copy the document using xsl:copy-of, however it's not copying the root of the source xml document. As shown below, the root of the xml should be <List xsi:noNamespaceSchemaLocation ~>: [Code]. My IDE is Visual Basic .Net 2008. I need to reproduce the xml file with the SName attributes sorted in ascending order.
I'm a rookie in Visual Basics 2008 and i am trying to make a program to communicate and read tags from an Omron PLC. I am trying to connect to the PLC via devicexplorer opc server, because it can let me read DInts and Reals from the PLC tags. I have referenced Microsoft ActiveX Datas Objects 2.5 Library and OPC DA Automation Wrapper 2.02. I have made some code which connects to the PLC "in a form", but I cannot use the same code and connect through as a Windows Service program.Here is my code,
Public Sub OpcConnect(ByRef Items() As String, ByVal PLCType As Integer) Dim j As Integer Dim TempSvrHandles As Array[code].....
Note: this code is run in a timer on the windows service, it connects properly to the "RSLinx OPC Server", but "Takebishi. Dxp.1" (devicexplorer shortcut) exits the sub routine at MyServer.Connect(PLCServer) ' connect to the opc server.
Basically I have a test tomorrow in CPS 110, my programming class that I am completely lost in. I plan on becoming a network admin and not a programmer but I had to take the class. Anyways, here is the email of the review my professor sent me. Following that I am going to say what I need help with.
CPS 110 Spring 2009 (Singh) Review topics for Test 2(You are expected to remember the previous stuff: datatypes,if / if-else statements and booleans).I. Select case statements: write code/walk through
II. Strings and built-in methods. You CAN use the handout about strings and characters from class on the test.
i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:
Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute.
It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.
Is it possible to consume a web service via code and not the normal way? Reason I ask is my app makes a decision on which of two web services it needs to connect to at run time, and I need to be able to do this with changing it at design time.
I want to make a program that will ask the user to enter the service reference URL in the text box then click a button to add the service reference. how to add and remove a service reference?
I'm working in VB.Net and I'm trying to make a piece of code more generic.In fact, there's a big Select Case statement that build a ProxyServer based on a value passed in parameter (a string).
Select Case _strNteraHL7 Case Constantes.NomPRPMIN306010 strUrl = ObtenirUrl("ProviderDetailsQuery", _strVersion, _strEnvir, True, _blnSimulCAIS, _blnSimulPDS, _blnSimulPDSSIIR, _blnSimulPDSInteg)
[code]....
or something similar, so I can remove all those big switch cases, that repeat the same thing 30 times.objWsHL7 being an object or type "object" at compiling.Again, in another switch case statement,
objMsgHL7Out = _objWsHL7.ProviderDetailsQuery(_objMsgIn) objMsgHL7Out is a System.ServiceModel.Channels.Message _objMsgIn is a System.ServiceModel.Channels.Message _objWsHL7 is an Object
What I'm trying to do is monitor a file and if it exists then then copy it's contents to a database, then delete the file. Currently it only adds the data one time and does not delete the file.why it will not keep adding the data or deleting the file?
I did a search on the internet but came up with very limited results. I'm using asp/vb and need to create a n application that does the following steps:
1. User defines web service URLs to WSDL pages .. populated in combo drop down (already coded) 2. User selects web service - Clicks Connect 3. User is prompted for any input fields the web service requests. 4. Output (in XML) is displayed after input fields are populated.
I know how to reference web services in the development environment, and use them... but have no idea how to dynamically create them and show the input fields requested.
I'm currently starting work on my first windows service and I've encountered what I find to be a strange error. For some reason the compiler is telling me that a whole bunch of typical classes (such as Image, Bitmap, Graphics, etc) do not exist. For example, these simple lines of code, which work perfectly in a normal project, return a bunch of errors:
Bitmap b = new Bitmap(destWidth, destHeight); //Error 13 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?) Graphics g = Graphics.FromImage((Image)b); //Error 17 The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?)
I am creating an XML web service that passes an array of custom types. In my consuming code I am referencing the code as a web reference which I have given the namespace MYWS. Now in code I am trying to assign the results of my web service call to an array of my type like so..[code]When I do this the complier complains, saying: "Value of 1 dimensional array of my.namespace.MyClass cannot be converted to 1 dimensional array of my. namespace. MYWS.MyClass because my.namespace.MYSW.MyClass is not derived from my.namespace.MyClass"Now I understand the message, the thing is they are the same class. The class is declared in my calling code by the web service references a dll from that project. How do I tell the compiler that these are the same type?
I have a VB2008 application which can control a windows service i.e. start, stop, pause etc. This runs ok on a Windows XP machine but not on a Win 7 machine (message is - Service error cannot open <service name> service on computer '.') ( if I stop the UAC then it runs ok ). It seems to be a rights issue,
I am having some trouble getting the correct syntax for a bit if code. I am using vb to insert data into a db and outputting the data as XML, here is the code
<WebMethod()> _ Public Function addTrack(ByVal tTitle As String, ByVal tAlbum As String, ByVal tGenre As String) As String Dim conn As New SqlConnection("Data Source=MARTIN-LAPTOPSQLEXPRESS;Initial Catalog=mp3_playlists;Integrated Security=True") Dim sql As String = "INSERT INTO Tracks (trackTitle, trackAlbum, trackGenre) VALUES ('" & tTitle & "', '" & tAlbum & "', '" & tGenre & "') FOR XML AUTO, ELEMENTS"
[code]....
The code is for a ASP.NET web service, when I click invoke on the website i get the error Incorrect syntax near the keyword 'FOR'. If I remove FOR XML AUTO, ELEMENTS everything works find, db updates but I dont get the data to output as XML. I think the issue is with the brackets required for the insert values because this issue does not occur if the SQL statement is a SELECT statement which has no brackets but i just cant figure out the correct syntax?
I have some shared code I need to use both in a WinForm and a service. How can I test if my code is running in a service, so I can avoid problems with modal dialogs.
I already know how to call insert, update, delete & select procedures in DataSet.xsd window. And I also know how to call queries by table adapters. But I just found out that its not possible to call all functions by queries (such as insert). It works when I test the query but when I try to add it, it says "Failed to get schema for this query". So I built a few stored procedures which do many functions (such as transaction, insert, update etc...). But I am unable to use these stored procedures in VB form. I found some tutorials mentioning that it can be done by defining connections and some other stuffs with which I don't want this to be. I want to call these procedures by writing code in VB code editor window with DataSets, TableAdapters, BindingSource etc...
My DataGridView sorts by date. For grins I entered the date 11-02-2010 fully expecting it to be at the bottom of the list, not listed right after the last 11-02-2009 row and before the first 11-03-2009 row.How do I handle this so that come January 1, I won't see all the 01-01-2009 rows listed first followed by the 01-01-2010 rows then the 01-02-2009 rows, etc?
I got this warning that I don't know what it means.Warning1 The service System.ComponentModel.Design.IInheritanceService already exists in the service container.Parameter name: serviceType00
I am trying to communicate with a Windows service on a remote machine on the network but i keep getting an exception saying the following: "System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.
Is it possible to have a dotnet windows service which monitor other services and upon stop of any service, the monitoring service would be able to start the stopped service.