473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

return value from wsdl(cross)

i created an proxy class .. it named webreference1 my code is like
following. how can i learn the return message from wsdl (it works or not)
how can i learn it(wsdl's respond)
Dim ws As New WebReference1.ProductDefinitionType()

Try

With ws

.Description = xx.Item("ozellikleri")

.Dm3 = 300

End With

Label1.Text = "it is ok about wer service"

Catch ex As Exception

Label1.Text = "web service doesnt work "

End Try


Nov 23 '05 #1
1 1232
Hi Savas,

This code, if I miss my guess, always returns the error path, correct?

The reason is that you seem to be trying to treat the web service as if it
were a remote class. The code that tries to set properties on the WS class
would throw an error, since the proxy that is generated by
add-web-reference will not have any properties.

In general, you should avoid exposing fields/properties on web service
classes, and instead limit them to a pure method interface. The Web
Service SOAP specifications don't support remoting of this style - and can
best be thought of as a remote method invocation protocol, and not object
remoting.

Best regards,

Dan Rogers
Microsoft Corporation
--------------------
From: "Savas Ates" <sa***@indexinteractive.com>
Subject: return value from wsdl(cross)
Date: Fri, 17 Dec 2004 17:18:11 +0200
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <uF**************@TK2MSFTNGP12.phx.gbl>
Newsgroups:
microsoft.public.dotnet.framework.aspnet.webservic es,microsoft.public.dotnet
.framework.webservices,microsoft.public.webservice s
NNTP-Posting-Host: dsl81-215-13749.adsl.ttnet.net.tr 81.215.53.181
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!cpmsftn gxa06.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8169
microsoft.public.webservices:2606
microsoft.public.dotnet.framework.aspnet.webservic es:27275
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

i created an proxy class .. it named webreference1 my code is like
following. how can i learn the return message from wsdl (it works or not)
how can i learn it(wsdl's respond)
Dim ws As New WebReference1.ProductDefinitionType()

Try

With ws

.Description = xx.Item("ozellikleri")

.Dm3 = 300

End With

Label1.Text = "it is ok about wer service"

Catch ex As Exception

Label1.Text = "web service doesnt work "

End Try

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jm | last post by:
I am new to WSDL and familiar with XML, but have used them very little. What I am used to is ASP and now ASP .NET using a datagrid or something like that. What I am trying to find out is when...
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
1
by: Savas Ates | last post by:
i was given an url bla bla.wsdl i am asked for entering data using this wsdl url? is it possible? how can i do it? must i use asp.net werb services .. any url or example or way t solve it...
1
by: tomzji | last post by:
I am using Sql server 2005. I have one table named 'tblJob'. This table have two fields say 'Staus' and 'ExpiryDate'. when 'Expirydate' come to less than current date, i want to upadte 'Status'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.