From a .NET application, how do I consume a Web Service developed using gSoap c/C++ library? I can create a C/C++ client using gSoap library to consume the web service. But I need to consume it from within a .NET (C#) application. I tried Adding a Web Reference but that doesn't seem to work. Would I need to work with raw Soap Packets?
How do I send/Receive SOAP messages usiung .NET I wanted to invoke a webservice, however not like the way shown in the link above.What I did was, created a service reference with the wsdl url(in a windows application with a button click event)
[URL]
have created a client object
Dim objProxy As MyClient = New MyClient()
I have populated the objrequest and objreqheader using the below methods, (assigning string values and not xml)
From reference vb, this is the myoperation public function
Public Function myoperation(ByVal RequestHeader As AFA.RequestHeaderType, ByVal GetTransactionDetailsReq As AFA.GetTransactionDetailsReqType, <System.Runtime.InteropServices.OutAttribute()> ByRef GetTransactionDetailsResp As AFA.GetTransactionDetailsRespType) As AFA.ResponseHeaderType
[code]....
I checked the property of objProxy, it is having basic http binding as the property. Anyone invoked the service like this? From soapui, the response is fine, after i populate the request fields.How can i enable the trace to see what is the request going and where is the problem.
I have a vb.net baseclass in a dll in my c# project. I created a derived class in c#. I fill the C# class with all its properties, including the base properties from the vb class. Now I send them through a webservice (c# ) to a jQuery client. But on the client I only see the vb properties?
public class FilmItem : ContentItem // ContentItem is from VB DLL { public string Zender { get; set; } public string Jaar { get; set; } [WebMethod] public IEnumerable GetContentItems(VBLib.GridRequest gridRequest) { ContentCache contentCache = new ContentCache(); return contentCache.GetFilms(gridRequest); // gives back a List<FilmItem> }
Just found out that if I remove the vb.net class, all the properties are showing fine from the C# class. Also found out that the vb.net is declared like this: Public Class ContentItem Inherits System.Collections.Generic.Dictionary(Of String, Object) Implements IContentItem Could it be the dictionary or the interface? (Which sums up the properties I was seeing).
I have written a vb.net app that runs in multiple hospital networks. THe vb client periodically contacts a off-site webservice for datatransfers.The issue I am getting at a particular hospital is that the client PC's are not on the hospital's domain. So they are sort of off the radar. They do use the hospital network for internet access. When the user opens a web browser they are asked for domain
userid and password. If not are provided then they cannot proceed. What do I need to do with my vb.net code to make the webserver calls prompt for and use the proper domain user id and password?
I have web service on server! This service is calling from the clients applications!Now how i can get user name and computer name of clients that using this service, for example if application from Clint1 calling this service i want to get computer name and user name of Clint1?
I have problems finding the correct forum for this question, but hope this will get me there. I have converted a C# Windows Forms project to VB. The project connects to a java-based webservice within a local network. When running the C# project I receieve 8 rows of data which is placed in a listbox.
I am building a client in VB.net for calling webservices methods from a partner organisation.[URL]../system.web.services.protocols.soaphttpclientprotocol%28v=VS.71%29.aspx because I can't get it to work using the Web References feature of Visual Studio 2010 (when I try to do that it turns the methods from the WSDL into classes).I have created a proxy class and can instantiate an object of that class no problem.
However, when I try to call a method which requires arguments I get this error:
Unmarshalling Error: unexpected element (uri:"http://api.service.apimember.emailvision.com/", local:"key"). Expected elements are <{}key>,<{}login>,<{}pwd> Does anyone have any idea why this might be? (If it's helpful I can post my code and the location of the WSDL.) (P.S. I can get the whole thing to work fine in PHP using ZF Soap classes, but for various reasons I need to get it to work using .Net)
Edit to add: I have used Wireshark to examine the outgoing and incoming SOAP message to compare them with the messages being sent via SoapUI, where it all works fine.What this has shown is that my VB client is sending a message where the namespace of the web service I am trying to access is declared as an attribute of the method, and not in the soap:envelope attributes.
I have a 3rd party webservice (happens to be a peoplesoft EIP service) that I'm trying to call from .net. I've tried using a service reference and the old web reference to call this service and every time I call it I get a response of "nothing" back from the service.
I've ran the service call through SoapUI and it works fine. I've captured the network traffic using Fiddler and notice that when i call the service from SoapUi or from .Net I get the same resulting xml back from the call. So that means the call is working. I've turned on tracing and logging within WCF and I'm not seeing any errors. Nor is it throwing an exception.
So my theory is that .net is having a hard time translating the xml from the service back into a .net object.
Here is a snippet of my code:
Dim psclient As New psService.LSS_WEBORDER_PortTypeClient Dim psreq As New psService.LSS_WEBORDER_REQ_MSG_TypeShape psreq = New psService.LSS_WEBORDER_REQ_MSG_TypeShape
I run a server for a project of mine. The clients invoke an Update check function running as a webservice at start-up. These requests are logged to file. I use the following function to log to file:
[Code]....
O_O How can this be returned? Is this normal? Is this possible? How can the request have originated from localhost (127.0.0.1) and at the same time from a remote IP-address? Was the server hacked? Is this a glitch? This was posted some time ago on [URL]: [URL] but no one answered, so I am asking it here again.
We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.
I'm pushing the bounds of what one should ask of others with this one, but I'm totally stuck, so here goes.This is my first web service. Not only that, it's my companies first web service - nobody I work with has ever written or consumed anything like this one. I know these things are not complicated, but for a first kick at the can, this is killing me because the API is so large.
I need to write a Windows forms app in VB 2008 to communicate with a Web Service.I have searched MSDN and many other sites trying to find a good tutorial or example code with no luck. The one really good piece of code I found did not compile.It needed to import Microsoft.UDDI.I found numerous references to the UDDI SDK, but could not find any site where I could successfully download it.I have the UDDI.dll but it is in my VB 8 folder and would not register.There is no such ddl in my VB 9 folder.
i would like to ask if how can my vb.net app client consumes dynamic web service (URL). sometimes my webservice changes its IP thus my vb.net client can't connect to the webservice during compilation of my code. in vb6... i can simply do some dynamic change in my webservice using SOAP
We are in the process of creating a new WCF web service (WCF service that has an basicHttpBinding Endpoint) to carry out some of our business logic. The web application connects not problem at all, however our legacy Compact framework application doesn't seem to see the service at all. Are we on to a loser here and should we just revert to ASMX web service (the Compact framework cannot be upgraded) or is there a way around this?
I want to create a class library .NET web project that encapsulates the functionality of consuming a web service. I can create the .NET class web project and add a web service (Visual Studio 2005) but I cannot seem to figure out how to reference it. It's easy to reference in a web site (simply address it by name), but apparently in the class library project things are different because I cannot figure out the namespace or reference name.
how to publish or consume web service at my server?how to reference web service from different web forms? i have a webservice it works fine at local host. i need to upload web service on my website which is written in visual basic 2008 asp .net and my website is written in c# asp .net. how do i reference web service in my c# page.
I'm building a .NET component that will call an external web service. I used the "Add Service Reference" dialog to add the web service to my component, which generates the code needed to consume the service and adds the settings to the app.config file.I'm testing the component by adding a reference to its DLL from a Console application and calling the appropriate method that creates a new instance of the web service: ... = new MyServiceSoapClient(). However, when I do this, I get the following exception:
InvalidOperationException
Could not find default endpoint element that references contract 'MyServicesSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.This makes sense since the app.config isn't being brought over with the component's DLL. How can I call the web service without having to rely on the settings in the App.Config?
I created a dll project in visual studio 2008, and i dont see the add web reference option, only the Service Reference option whish looks like it takes a WCF not a regular asmx web service, is that correct?
I experimenting with the Twitter streaming api, an am trying to open a stream for a user to consume events as they happen. I using a standard set of classes for making REST api calls to twitter. When using url... in a "GET" call the response stream never ends.I'm opening a StreamReader and reading the response as I would with any other REST call to Twitter. This is probably obvious to others, but how do I "consume" this stream... Is there a way to read the StreamReader as it's reading (meaning before it closes)? or maybe there a different method I can user to consume this stream.... again, I apologize if this seams to be elementary to some, but I can't figure it out at the moment. Here is the original source I started troubleshooting this with.This method was fabricated from a set of C# Classes I found in a forum on LinkedIn. At the line that reads "responseData = responseReader.ReadToEnd()" the method starts to "drink" the stream... but do so like a bottomless cup... reading this stream of data in real time before it closes (which is essentially until I stop debugging or kill the process) is the question I'm tackling.[code]
This write the opened twitter stream to the file, and every time I Tweet, Retweet, Delete, Direct Message... and so on.The file grows with a JSON object appended to the text. I used the Do While 0 < 1 for testing here, because I just wanted to see it working. I see on MSDN StreamReader Constructor Description that the New constructor is supposed to accept a Boolean value for "leaveOpen", but no such argument allowed when I try to add this to the constructor.Does anyone have a good example of how to do this with forcing and infinite loop or just a better approach than this... I would like to simply read new updates sent each time from Twitter, and address them accordingly? There is obviously a way, I'm just new to the concept of consuming a stream like this with out it being closed.
I am getting a System.OutOfMemoryException from my vb.net application, it happened from one certain user. I am trying to figure out whether my application takes too much memory space or the PC has low memory. But she just upgraded her desktop as i3 Intel CPU and higher memory.
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
I have an application that takes a series of reports and sends them as attachments in an email to a specified group of email accounts.
When I run the Java version of this using apache commons and the same setting, the email is sent. However, when I run the VB.NET version of the code, it fails on my local machine and on the client machine.
I have a VB.NET web application running on a server that uses similar code. I tried that code locally and it fails. Yet, the web application is working perfectly.
Why is it that the Java application can send the email, but the .NET application cannot?[code]....
Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...
Private Sub getMessage() For infiniteCounter = 1 To 2
[CODE]...
And this line...
serverStream.Read(inStream, 0, buffSize) gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."
Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.
I have to send a request to Webservice and I have a working PHP solution, that I have to translate in VB.net
Here's the code working in PHP
//fill in the details of the contacts.userId is obtained from loginResult. $contactData = array('lastname'=>'Valiant', 'assigned_user_id'=>$userId); //encode the object in JSON format to communicate with the server.
[code]....
Naturally I imported a reference to a Json library and Imported (Imports Newtonsoft.Json)?