VS 2005 Error Check For Webservices?
Oct 9, 2009how to do an error check on WebServices i.e. to check if the site which has the webservices is not down and also if internet connection exists?
View 2 Replieshow to do an error check on WebServices i.e. to check if the site which has the webservices is not down and also if internet connection exists?
View 2 RepliesIs there a way in Win App to do a check whether internet is available before connecting to Webservices?
View 1 RepliesWhen the web service is uploaded to the external server the desktop application has no problem finding and using the web service which access an Oracle DB to send/retrieve information. However, when I go to properties and change the 'Web Reference URL' of the Web Reference to localhost there seems to be a problem with communicating with the DB.
[Code]...
I am trying to consume the webservice from the .Net environment which was build in Java environment. Currently am trying to forward the ArrayList of type object array as parameter to the WSDL file.Am experiencing the following error message : "There was an error generating the XML document"let me know the whether I need to manually convert the ArrayList to XML . May I know the best procedure to forward the ArrayList to webservice in Java ?
View 1 RepliesHow can i list all the available webservices by just providing the server name?I require that i will just specify the server name, and then a list will be populated with names of all the webservices available.
View 2 RepliesNet 3.5 has lots of enhancements on secure and transacted webservices ? Does anyone here have experience of this ? does it add overhead ? Can these webservices (in a LAN environment and assumed stateless / lightweight) be relied upon to be used in realtime (by realtime I mean response of 1 second or less ?). I realise that this cannot be guaranteed as it depends heavilly on what the service is doing and what network it is deployed upon etc etc etc, but assuming there are no issues here, what I am simply asking is, is the benefit of 'knowing' your webservice will return impaired by any overhead that prevent such a webservice from being generally reliable enough to be used in a real time application ?
View 3 RepliesI am a complete newbie when it comes to working with SOAP/Web Services and I am looking for some assitance.... the code below keeps returning the following error message: "A first chance exception of type 'System.Net.WebException' occurred in System.dll"I have utilized SOAPUI to test out the requests to the webservice and everything appears to be fine. What am I missing?
[Code]...
I am developing an ecommerce app that is using the UPS shipping webservice. I have read that it is good to create a singleton so there is only one instance of a webservice at any time. My code for that is below.
Public Class Ship
Private Shared sync As New Object()
Private Shared _Service As New ShipService
[code].....
I'm having problems with parsing the XML results that a webservices is sending me. Mostly due to the format this result is sent in. I can succesfully send a request and I get the response back in a string. Now the (truncated) result looks like this:
- <tr>
<td field="fin.trs.line.dim2" hideforuser="false" type="String">01249</td>
<td field="fin.trs.line.openbasevaluesigned" hideforuser="false" type="Value">-100.00</td>
[Code]....
This is where my problem starts. Because I've found various pieces of code that let me take out the nodes I need. So in the above example <Office> and <code> come out perfectly. But the problem appears when reading the other lines because they start with <td SPACE field=> etc etc. When I readout those lines all I get back is TD.
I need to specifically filter the results based on those TR/TD fields. I'm using an XMLreader and xmlnodetype to filter out the results, but maybe I'm using the wrong method.
I've got the unenviable task of cleaning up a rather messy VB.Net client. The general plan is to move all calculations to WebServices, and I can see exactly how to do this, but it involves passing a large number of different variables to the WebServices. I chose to use an ArrayList as I've worked with them heavily in Java, and have had no issues passing ArrayLists between the C# (ASMX) WebService and a C# client (Windows Forms-based).
[Code]...
How can I get a list of available webservices from a server/directory?For example from:[URL]Which should at least give me ReportService2005.asmx I was wondering if there wasn't a ReportService2008.asmx
View 1 RepliesAm pretty new to web services and have been trying to implement Soap Faults. I used Apache Axis2 to generate webservice in the following manner.
[Code]
Now, I created a dynamic project using Eclipse and with the help of Axis2 plugin I created webservice for my "Webservice" class which generates wsdl file. I deployed the webcontent in the Tomcat folder and able to access the WSDL file in the .Net environment. I am able to pass array of objects (User[]) from .Net to Java and able to do my task. Now, I need to implement Soap Faults in Java which I am not sure how to implement.
I am calling Classic ASP Webservices from a .NET application. I have two instances of slow processing of the webservice and fast processing. The slow way (several seconds at the most) is where I actually read the data returned as such:
Dim oRequestAOCP As WebRequest
Dim oResponseAOCP As HttpWebResponse = Nothing
Dim dataStreamAOCP As Stream = Nothing
Dim readerAOCP As StreamReader = Nothing
[code]....
What can I do to speed things up when I need data returned?
I am trying to create a purchase order in Dynamics GP 2010 using the webservices. I get the following error VendorItemNumber not setup for ItemKey First off, I am not sure what that error actually means. Second off, I am not sure why I am getting it. My code is below.
Public Sub PO()
Dim context As Context
Dim purchaseOrderKey As PurchaseTransactionKey
Dim vendorKey As VendorKey
[code]....
I have worked out how to pass my custom objects into ASP.Net json webservices. Works a charm. Problem I am having is passing in straight arrays of my custom objects or alternatively passing in arrays that are parameters of my custom objects. So for example...
Public Class WebService1
Inherits System.Web.Services.WebService
<WebMethod()> _
[code]....
Fails with error: The value "System.Collections.Generic.Dictionary`2[System.String,System.Object]" is not of type "WebApplication1.WebService1+Person" and cannot be used in this generic collection. Parameter name: value
So how do I explain to ASP.net that it is infact an array of Person? note: That changing the function to as List(of Person) or ArrayList does work but given that I implement my own custom collections this is not optimal for me.
UPDATE: Ok so what I have worked out so far is that this problem is definitely associated with how the JavascriptSerializer uses the SimpleTypeResolver to resolve types. Basically if I do something like this
Public Function AddPersonList(ByVal PersonList As String) As PersonList
I can recreate the error using the following code.
Dim PersonList As PersonList = jsonSerializer.Deserialize(Of PersonList)(PList)
However when I provide my own custom type resolver along the lines of
Dim jsonSerializer As New JavaScriptSerializer(New MyCustomTypeResolver)
I can successfully create an instance of my custom list.Now I have worked out how to provide my own custom convertor in the web.config file. Along the lines of this....
<system.web.extensions>
<scripting>
<webServices>
[code]....
PSS: I have tried to use the assembly fully qualified name as specified in the docs for the SimpleTypeResolver (SimpleTypeResolver MSDN) but this throws a "Operation is not valid due to the current state of the object." exception - which is an error caused when the TypeResolver cannot resolve the name?
My problem was never passing in a List(of Object) into my webservice (I simply posed the question as such to simplify it for stackoverflow). In such a case I would be willing to completely accept using a Generic List(of) but my problem was actually that one of my custom objects implemented a property with a strong typed List(of) so for example:
Customer {CustomerID AS Guid, FirstName AS String, LastName AS String, EmailAddresses AS EmailAddressList}
which now needs to be changed to
Customer {CustomerID AS Guid, FirstName AS String, LastName AS String, EmailAddresses AS List(Of EmailAddress)}
This is admittedly not the end of the world and is probably better in the webservice context (as you have suggested) but definitely a detriment when it comes to internal application usage of my Collection properties. What this means is that once I have this property I either need to cast it to my CustomCollectionList every time I want to use some advanced feature or I need to implement another property which exposes the CustomCollectionList.
I have the following web-service which works perfectly as long as it is accessed from a clientside script (javascript, jquery)
<%@ WebService Language="VB" Class="WebService" %>
Imports System.Web.Script.Services
Imports System.Web.Services
[code].....
i got error that is not familiar to me in the line with bold font... i'm using windows 7 with MS Office 2010 and Visual studio 2005 in this application
[Code]...
I got "Unrecoverable build error" when building setup project.I try the solution in [URL].. but did not work out.
View 1 RepliesUsing vb.net 2005 - FtpWebRequest for ListDirectory always gets 550 error The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
On both FTPListDirRequest.Method = System.Net.WebRequestMethods.Ftp.ListDirectory
FTPListDirRequest.Method = System.Net.WebRequestMethods.Ftp.ListDirectoryDetails
[Code]...
I have distributed a simple VB 2005 application that generally runs just fine without any installation: the user just inserts the CD and it starts via autorun.inf. The rare problem the users have is if they do not have .Net Framework 2 installed. I want to catch this error in my application, and display an appropriate message. I also want to test this on my own computer (which of course has the Framework installed). So my questions are
1. Should I be using a try-catch-end try in the form load sub, or somewhere else? and
2. How can I test this on my own computer without un-installing the Framwork? If I can raise an error while debugging, what error number should I raise?
When filling controls on a form, I want to check the DB value of a Field, if it Yes one RB is set to checked, if it is No the other one is set. I know I have doen this before but can't remeber how or find a sample.
vb.net
If Not dsSearch.Tables(0).Rows(dbCursor).Item(12) Is DBNull.Value Then
If dsSearch.Tables(0).Rows(dbCursor).Item(12) Is "Yes" Then
Me.rbtActive.Checked = CBool(CheckState.Checked)
[code]....
I want to check what are in the dataset, how?
?daLS.GetDataset.Tables.Item(0).Rows
16
Table contains 2 columns Tags10 and TU. Its values are:
NDX___________TUI48
JJI_________ NULL
CmdSelect.CommandText = "Select * From Tags Where Tags10='" & s_temp02 & "'" 'OK
ReaderSelect= CmdSelect.ExecuteReader() 'OK
[code]....
How to check this? If NULL there is nothing to do, if not NULL, we should put the value into s_temp03.
I need to check for a registry cubkey I know how to check for an empty value but not if the subkey is missing In particluar this key
[code]...
here is code that i have for checking an empty registry value for instance a registry value named run. So if the key RUN has no value it returns true on the checkbox. Im not sure how to modify this code to check for an entire subkey as there is other subkeys where the one above is contained.
[code]...
I am using VS 2005 Professional and writing a guitar tuner app with visual basic. I have a 6 wav files that play in button click events using the My.Computer.Audio.Play() method. I need to animate a picture box meter while a wav file is playing. I have searched in the library, but I can't find any relevant info for checking if a sound is playing for vb. Is there a way I can check to see if the wav file is playing?
View 6 RepliesI am working on my project as I am trying to create a boolean which I want to check the matched string using with the html tags whether if the strings is matched then display the messageboxes.
Here's the
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
'Address of URL
[code]....
What I am trying to do: I want to check the strings in the php page using with the htmltagsstrings and check if the strings is matched or not. If the strings is matched, display the messagebox that says "I am going to ban you", otherwise if it not matched then display the messagebox that says "Ok, let get some details".
I need to check to see what version of windows is running. How do I do this from VB .NET 2005? and how comprehensive can I get... can I also check for Vista and Windows 7?
View 9 RepliesI'm working on my listview to extract the strings from my php source. I want to check for each array in my listview when i finds the matches of html tags "<span id=""mystrings2"">Enabled", then tick for each checkbox in the listview when the matches are found.
[Code]...
i want to check if the computer is in sleep mode or not...Suppose my project is in normal state..I change the state to sleep mode,I want that now when the computer wakes from sleep mode,I want that my project is in minimized state..How to check dat?
I have searched on the google,But didnt find anything...
I am importing alot of data from a text file into an access database with the code below. (From a Comma delimited text file) The problem is that I do not want to import duplicate records. I have the "IDNr" column in my access database set to "not allow duplicates" and need my code to check if there is already a record in the database before trying to import the data. Otherwise it will just give me an error or not import the rest of the data. I could do to make sure that there are no duplicates for the IDNr column?
[Code]...