You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
The SayHelloService is running in TOS for ESB. It is consumed successfully by SayHelloConsumer and SoapUI 4.5.
In Visual Studio 2010, there is a Service Reference added to http://localhost:8090/services/SayHelloService?wsdl.
When calling the operation with the following,
string ret;
ServiceReference1.SayHelloServicePortTypeClient ws = new ServiceReference1.SayHelloServicePortTypeClient();
ret = ws.SayHelloServiceOperation("klaus");
it completes without error but ret is null.
Has anyone successfully called an ESB service from VS? What is the correct syntax?
Last edited by jtc007 (2012-05-02 19:22:54)
Offline

Hi jtc007
just check it and it worked fine:
Follow the steps outlined here: http://msdn.microsoft.com/en-us/library/ms733133.aspx (with 3 subsequent pages linked from this page as 'Next')
(Use the http://localhost:8090/services/SayHelloService?WSDL URL for the WSDL)
And then create / add the following into your program.cs might look like:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
namespace SayHelloConsumer
{
class Program
{
static void Main(string[] args)
{
string ret;
SayHelloServicePortTypeClient ws = new SayHelloServicePortTypeClient();
ret = ws.SayHelloServiceOperation("Dietmar");
Console.WriteLine("Service returned with: {0}", ret);
Console.ReadLine();
}
}
}
And then my console Window showed the response as:
"Service returned with: Hello Dietmar - Welcome to Talend ESB"
So hope this would also work for you,
Dietmar
Offline
Hi Dietmar, thanks for the reply.
I created a new console app per the instructions. Unfortunately, the return value is still null (see service2.png). I did notice on the SayHelloService running in TOS for ESB that when the call is made, there is one row from tESBProviderRequest_1 to tXMLMap_1 and 0 rows coming out of tXMLMap_1 (service3.png). So it looks like something is failing within tXMLMap_1 (service4.png). Is your tXMLMap_1 set up the same?
Offline

Hi,
hm, this all looks good. Most likely there could be two reasons:
1) the request is wrong (e.g. a wrong namespace is send from your .NET code)
2) the tXMLMap mapping has an issue (but from the image it looks good)
So if you like I could take a look at your VS Solution / Talend Data Service. In this case, please open a bug in our bug tracker (http://jira.talendforge.org) under the TESB project and post the Bug ID here. To this bug report please attach your VS Solution and an export of your Data Service (as ZIP) by this I can use your code to see if it is different somehow.
Thanks
Dietmar
Offline
Pages: 1