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