Can Webservices As Singltons With Different Users

Jun 23, 2010

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].....

View 1 Replies


ADVERTISEMENT

How To List All The Available Webservices

Dec 23, 2010

How 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 Replies

Reliability Of .Net Webservices?

Jul 9, 2009

Net 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 Replies

Webservices With .net 2010?

Aug 3, 2011

I 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]...

View 2 Replies

Parsing Webservices XML Reply?

Oct 31, 2011

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.

View 1 Replies

Passing ArrayList From C# WebServices

Sep 23, 2010

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]...

View 2 Replies

C# - Get A List Of Available Webservices From A Server/directory?

Sep 15, 2010

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 Replies

VS 2005 Error Check For Webservices?

Oct 9, 2009

how 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 Replies

Implement Soap Faults In Java Webservices?

Mar 15, 2012

Am 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.

View 3 Replies

Speed Up .NET Webservice Calls To Classic ASP Webservices?

Sep 1, 2010

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?

View 2 Replies

VS 2005 Can't Access OracleDB With Localhost Webservices

Jun 23, 2010

When 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]...

View 20 Replies

VS 2005 Check If Internet Is Available Before Connecting To Webservices?

Oct 7, 2009

Is there a way in Win App to do a check whether internet is available before connecting to Webservices?

View 1 Replies

Create A Purchase Order In Dynamics GP 2010 Using The Webservices?

Aug 30, 2011

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]....

View 1 Replies

Javascript - JSON Array Type Resolution In ASP.Net Webservices?

Jan 6, 2011

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.

View 5 Replies

WebServices Giving Errors When Accessed Directly From The Browser?

Jul 15, 2011

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].....

View 1 Replies

Administer Website (create New Users, Assign Users To Roles) From A Windows App?

Feb 9, 2010

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:

<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"

[code].....

View 3 Replies

VS 2008 Database Search - Using SQLClient That Loops Though All Users In A Users Table

Dec 29, 2010

I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.

I get this error

HTML

There is already an open DataReader associated with this Command which must be closed first.

Here is my code

vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",

[CODE]...

View 3 Replies

.net Desktop App : Log Users Application's Usage By Users After Remote Deployment?

Apr 3, 2012

1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.

2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.

View 2 Replies

Vb.net Desktop App : Log Users Application's Usage By Users After Remote Deployment

Apr 4, 2012

1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.

View 1 Replies

.net - There Was An Error Generating The XML Document" While Forwarding An ArrayList To Webservices

Feb 24, 2012

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 Replies

Get Path Of 'All Users' Desktop And 'All Users' Start Menu

Jun 10, 2008

I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.

View 5 Replies

Webservices, SOAP : How Does The Data Actually Get "sent"

Sep 24, 2009

Webservices are the address to deliver to, SOAP is the envelope, but how does the data actually get "sent"?For example:I have a class called "GetMeAResult", which calls WebService1.GetMeResult(Param1). Another class declares an instance object of GetMeResult and then serializes it using SoapFormatter.Serialize (memorybuffer,objGetMeAResult).Now how do I send this SOAP envelope to WebService1?

View 3 Replies

Log The Ip's Of The Users?

Feb 18, 2010

I want to log the ip's of the users that use my vb.net program.

First of all, is this legal?

If it is, how can i log the ip's in a textfile on a webserver?

Im thinking about a small non-visible webbrowser that sends the ip to a .txt file.

View 2 Replies

.net - Get Users IP Address When Many NIC?

Oct 24, 2010

I am wanting to get the users IP address (the logged in user will be running the application under there user context on there local PC), but many PC's in our environment have multiple NIC's that have been added by VMWare Workstation, I would like to exclude these type of bridged connections and only show the "primary" NIC on the PC.The following function will get the IPv4 address, however on my test PC it is returning the bridged connection and not the IP Address of the network facing NIC.

Shared Function GetIP(ByVal computerName As String) As String
'Dim ipEntry As IPHostEntry = Dns.GetHostEntry(computerName)
'Dim tmpAddr As IPAddress() = ipEntry.AddressList

[code]....

My users have a mixture of DHCP and static addresses so cannot limit the NIC to either of these connection types. We tend to have a 172.16.x.x IP range, so is there a way to modify the above function so that it will only return a 172.16.x.x address?

View 2 Replies

Allow Users To Use The Enter Key Instead Of Just The Tab Key?

Jun 12, 2009

My form's KeyPreview is set to True. I want to allow my users to use the Enter Key instead of just the Tab key. I have the following code in my form's KeyPress event:

Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If e.KeyChar = vbkeyreturn Then

[Code]....

It doesn't like vbkeyreturn, which I used in Visual Basic 6.0. I think I must be close to having it right.

View 3 Replies

ASP.NET / VB ... Users Log On And See The Own Data Only?

Nov 19, 2011

I'm attempting to make a system that stores employees details...name address etc. I would like the users to be able to log on, see and change their own details only. Is this possible is asp.net and if so how? I'm really new at this so if you could keep answers as simple as possible.

View 2 Replies

Get All The Users Under A Tree From AD?

Mar 18, 2011

i am trying to get all the users under a tree from AD with the following code:

Code:
Dim RootEntry As New DirectoryEntry("LDAP://OU=Mayor,OU=IS,OU=Users,DC=*******gatn,dc=gov", "myusername", "mypassword")

[Code].....

View 2 Replies

Get All Users And Domain Name?

Mar 27, 2010

i am trying to get a list of domains' and users' name on a computer so that users can select to run a program in other identity, but I can only find the current user and I can't find any post about getting these. Is there any post or any Identity classes that can help me to get all users and domains?

View 3 Replies

Get All Users Of Windows?

Aug 13, 2010

How can I get all 'local' users of windows ?I know how to get the currently logged in username, but don't know how to get a list of all the users.

View 2 Replies

Get Rid Of Message When Users Run App?

Jun 22, 2010

When users run my vb2008 executable they get the windows security message "The published could not be published. Are you sure you want to run this software?"

Is there any way to get rid of this message when users run my app? Or do individual users need to change their security settings?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved