WebService - Not All Properties Showing On Client
Jul 16, 2009
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).
View 1 Replies
ADVERTISEMENT
Jun 22, 2010
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?
View 2 Replies
Dec 28, 2011
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)
objreqheader.id = "abcd"
Finally the below line invokes the service
objresponsehead = objProxy.myoperation(objreqheader, objrequest, objresp)
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.
View 1 Replies
Aug 6, 2010
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?
View 10 Replies
Jan 14, 2010
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?
View 3 Replies
Aug 30, 2010
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.
[Code]...
View 11 Replies
Jul 28, 2011
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.
[Code]...
View 1 Replies
Jul 8, 2010
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
[Code].....
View 1 Replies
Feb 25, 2010
I'm using a masked text box control. It has a property, ValidatingType, that is not available at designtime so it doesn't appear in the properties window of the IDE. The IDE has two drop-downs where you can select an object in your project on the left drop-down and see the associated members on the right drop-down.
My question is: Why, if I select my masked text box control on the left drop-down, don't I see the ValidatingType property on the right drop-down? All the events for the text box appear, why not the property members as well? Perhaps because it only shows properties that I code for an object?
View 1 Replies
Dec 30, 2011
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.
View 2 Replies
Apr 17, 2012
in my program I have a section that is outlined as listed below - in the page load, the label's visibility is set to false.
lblLoading.visable = true
lblloading.text = "loading please wait"
UpdateData()
lblloading.text = "Loading Complete"
It takes about a minute or 2 to run updatedata as it is doing multiple things to a database - when I execute this code, it stalls and loads the data, then when done I do get my label that says loading complete, but I never see the label before it is done loading to tell the user that it is processing. Is there any way to force it to show before UpdateData() is called so that it shows during the load time?
View 1 Replies
Jul 2, 2010
I have a very simple setup, single mycontrol.ascx with assoicated mycontrol.ascx.designer.vb and mycontrol.ascx.vb file.
mycontrol.ascx embeds a single reference to a custom control: "MyMenu":
<mM:myMenu id="myMenu1" runat="server" />
This has created a protected reference in the mycontrol.ascx.designer.vb file:
Protected WithEvents myMenu1 As Global.CustomControls.MyMenu
Now, when I breakpoint the Page_Load() event of mycontrol.ascx, and inspect the members returned from the type via:
Me.GetType().GetMembers()
I cannot any reference to myMenu1. If I look at the control with intellisence, the property is accessible:
Me.myMenu1
what I'm missing and what I need to do to access designer created properties at runtime through reflection?
View 2 Replies
Mar 9, 2010
I have a custom class (Class1) with a bunch of properties. One of the properties of this class is another custom class (Class2) with its own properties.I have a property grid with the selected object set to Class 1. I can see Class 2 as a property, but i would like to expand Class 2 to show its properties in the same property grid.
Im basically trying to do the exact same thing as the Font Class on a form. If you look at the properties of a form in the designer, you can see the font property. You can then expand that to show the properties of the font class.
View 1 Replies
Sep 17, 2010
I've removed a few controls from my form, but they're still in the properties. I've looked in the Document Outline, but nothing. How can I remove them (save)?
View 6 Replies
Dec 4, 2009
I am use this code to transfer a file from a webservice to the clint:
[Code]...
View 1 Replies
Oct 15, 2010
Can one client call a public property within a VB.NET module and see the value of that public property changed by another client accessing it at the same time?
[Code].....
I'm running into random instances where it looks like another client might be modifying (by setting) the value of GetSetDateTime DURING the first client's run through of WhateverMethod(). This is alarming to me and I've been trying to figure out if that's a possibility.
View 2 Replies
Oct 6, 2011
I have combed these forums and the 'net and can't find an answer to my specific problem. My menu strip disappeared (after deleting a small secondary form within my project). I therefore created a new strip and while recreating the menu items realized that the original menu items are still present, showing in my properties list. I have checked my design file as well and the original menu strip is definitely gone but the original menu items are there. I don't have many items so I would have no problem just deleting the original ones but I can't see them to delete them! I have checked and they are all set to visible. I have also moved everything on my form to see if it is behind anything else.
View 4 Replies
Jun 21, 2010
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.
[Code]...
View 2 Replies
Jul 27, 2010
I'm trying to figure out how to set the form's location/size before calling the .show method. I figured out the location part, but still can't figure out the size part. No matter what size I set the form to in the designer, it never uses that, so I figured I would set it with code right after setting the location.
'set location before .show
Form2.StartPosition = FormStartPosition.Manual
Form2.Location = New Point(103, 449)
[code].....
View 4 Replies
Mar 31, 2011
I have a problem with the combox its only displaying the first item in the list its being populated by a webserice call the drop down in question is comboboxmodel now the manufacture one is fine and sets as it should any reason as to why the comboboxmodel would not. [code]
View 1 Replies
Dec 1, 2008
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.
View 14 Replies
Jun 29, 2010
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]....
View 7 Replies
Aug 18, 2009
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.
View 5 Replies
Jun 13, 2011
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)?
View 1 Replies
Apr 26, 2012
[code]I want to make the Properties Window to update the properties for X and Y at each MouseMove, so they become immediately visible for the user.
View 2 Replies
Apr 27, 2011
I'm making a control and I am trying to finalize my design time properties grid. I have several List(of Class) items as public properties and when I click on the design time menu (while testing the control) there is the word "Collection" and a button with an ellipsis (...) that brings up a neat pop up with the buttons Add/remove and all of the public properties of the collection's class on the right hand side. Basically for a non-collection instance of a class (with public properties) I'd like a similar button to show up. I know I could put all of the properties in the main control class and group them, but I like the pop up box feature. Anyway to duplicate this? (think font grid item etc.)
View 3 Replies
Mar 5, 2012
In the form design I set up a TableLayoutPanel, 20x20 cells and in cell (1,1) a PictureBox (called Target) containing the image of a small target. The properties box for Target shows some very promising properties, Column and Row - and if you overwrite the values in the properties box, the PictureBox obligingly shifts to the corresponding cell position in th design. However in VB it is not possible to refer to Me.Target.Row or .Column - neither appears during coding in the menu of properties, and deliberately coding either of them produces an error like
Error 1 'row' is not a member of 'System.Windows.Forms.PictureBox'.
1. Why does the properties box show properties that cannot be altered programmatically?
2. How can my program move Target around in the TableLayoutPanel?
View 10 Replies
Apr 19, 2012
Chat Client to Client Without Server Just Use IP Address For it?
View 1 Replies
Feb 7, 2011
for a school project i need to make a vb application that can stream from client to client.
View 4 Replies
Aug 19, 2009
Is there a way to expose a UserControl's properties to the Properties Window in the Designer?
View 3 Replies