Accessing Webservice

Hello,

i am trying to access a ASP.NET Webservice by SOAP, but i don't get any result back. Here is my BuddyScript Code:

Code Snippet

// WSDLhttp://localhost/agenttest/Service.asmx?WSDL
datasource HelloWorldTest() => HelloWorldResult {timeout=40}
soap
proxyhttp://localhost/agenttest/Service.asmx
name HelloWorld
namespacehttp://localhost/services/
actionhttp://localhost/services/HelloWorld
simple xml
return
HelloWorldResult

+ hello
RES = HelloWorldTest()
- Test RES

This is the Debug Info:

Code Snippet

Soap Request thruhttp://localhost/agenttest/Service.asmx
http://localhost/agenttest/Service.asmx">http://localhost/agenttest/Service.asmx
<?xmlversion="1.0" encoding="utf-8"?>>" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><HELLOWORLDRESPONSE< A> xmlns="http://localhost/services/">Hallo Leute
Request cluster : MenuCore for user 4
Need to load from the DB
Loaded MenuCore:
Set Next Offset to 0
enumeration: Closing the enumeration

A "hello" gives me only "Test" back, nothing more. Anyone can help me?

Greetings

Boris

Edit:

Here is the code of my Webservice, very simple:

Code Snippet

Imports System.Web

Imports System.Web.Services

Imports System.Web.Services.Protocols

<WebService(Namespace:="http://localhost/services/")> _

<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

PublicClass Service

Inherits System.Web.Services.WebService

<WebMethod()> _

PublicFunction HelloWorld()AsString

Return"Hallo Leute"

EndFunction

EndClass

[4194 byte] By [BorisWilhelms] at [2008-2-11]
# 1

Hi Boris,

If you remove "return" from your simple XML statement you should get the result you are looking for. So, the new code would be something like this (with your web address though):

Code Snippet

datasource HelloWorldTest() => HelloWorldResult {expire="now"}
soap
proxy http://localhost:50643/Service1.asmx
name HelloWorld
namespace http://localhost/services/
action http://localhost/services/HelloWorld
simple xml
HelloWorldResult

? call ws
RES <= HelloWorldTest()
- Test RES

Good luck with the rest of your development!

Gruia

GruiaPitigoi-Aron-MSFT at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Agents Development...

Windows Live Developer Forums

Site Classified