473,325 Members | 2,805 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,325 software developers and data experts.

Web Services simulator

I'm really hoping someone can point me in a direction.

We're doing some work for a mjaor bank in the UK using Microsoft.NET.

They have provided us a WSDL file. We have generated a C# fileand then imported this into a C++ Managed DLL.

Here comes the problem.

1) There are several request objects and response objects. Iwould like to create a simulator which listens for the requestobjects, and somehow manages to send a reply object. I couldcreate a socket and listen to the web-service request, get theXML(?) data and then somehow, construct the XML reply and sendback?

The aim of the simulator is to take data from the request, thenbuild a response which could be arrays of account data forexample, then send it back. No idea how to start with .NET?

Can anyone point me in the right direction, i've looked at theclasses HttpChannel, IMessage, etc, am l looking in the rightdirection. Any help appreciated...

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>wgfnTHCe/EKpVJ9TjYRDog==</Id>
Nov 12 '05 #1
3 3748
PJ,

have you thought about getting Christian Weyer's contract first tool [0] to
generate Web services that conform to the WSDL that you received.

The tool will generate ASP.NET web serivce stub code for you. You can add
whatever code to the methods that were defined in the WSDL. In your case you
would probably log the request and return the response you need.

Let me know if that gets you started or if we need to figure out something
else.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0] http://weblogs.asp.net/cweyer/archiv.../21/39070.aspx

"PJ via .NET 247" <an*******@dotnet247.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
I'm really hoping someone can point me in a direction.

We're doing some work for a mjaor bank in the UK using Microsoft .NET.

They have provided us a WSDL file. We have generated a C# file and then
imported this into a C++ Managed DLL.

Here comes the problem.

1) There are several request objects and response objects. I would like to
create a simulator which listens for the request objects, and somehow
manages to send a reply object. I could create a socket and listen to the
web-service request, get the XML(?) data and then somehow, construct the XML
reply and send back?

The aim of the simulator is to take data from the request, then build a
response which could be arrays of account data for example, then send it
back. No idea how to start with .NET?

Can anyone point me in the right direction, i've looked at the classes
HttpChannel, IMessage, etc, am l looking in the right direction. Any help
appreciated...

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>wgfnTHCe/EKpVJ9TjYRDog==</Id>
Nov 12 '05 #2
And of course you can also use wsdl.exe /server to generate a server
skeleton from a wsdl file.

Then you either inherit from the generated skeleton and override the
webmethods, or just modify the generated skeleton and you have a webservice
implementation.

Christian's tool does the same thing (I think) but all within Visual Studio.
-Dino
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:Ox**************@TK2MSFTNGP09.phx.gbl...
PJ,

have you thought about getting Christian Weyer's contract first tool [0] to generate Web services that conform to the WSDL that you received.

The tool will generate ASP.NET web serivce stub code for you. You can add
whatever code to the methods that were defined in the WSDL. In your case you would probably log the request and return the response you need.

Let me know if that gets you started or if we need to figure out something
else.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0] http://weblogs.asp.net/cweyer/archiv.../21/39070.aspx

"PJ via .NET 247" <an*******@dotnet247.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
I'm really hoping someone can point me in a direction.

We're doing some work for a mjaor bank in the UK using Microsoft .NET.

They have provided us a WSDL file. We have generated a C# file and then
imported this into a C++ Managed DLL.

Here comes the problem.

1) There are several request objects and response objects. I would like to create a simulator which listens for the request objects, and somehow
manages to send a reply object. I could create a socket and listen to the
web-service request, get the XML(?) data and then somehow, construct the XML reply and send back?

The aim of the simulator is to take data from the request, then build a
response which could be arrays of account data for example, then send it
back. No idea how to start with .NET?

Can anyone point me in the right direction, i've looked at the classes
HttpChannel, IMessage, etc, am l looking in the right direction. Any help appreciated...

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>wgfnTHCe/EKpVJ9TjYRDog==</Id>

Nov 12 '05 #3
Actually, Christian's tool goes a little bit further than wsdl.exe /server.
It creates the abstract interface class and adds a stub implementation right
away.

It also has some other nice options, that are more relevant to client-side
proxies. It can generate properties instead of fields and it the proxies can
read the web service url from a .config file.

The only thing that's missing is a command-line interface ;)

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
And of course you can also use wsdl.exe /server to generate a server
skeleton from a wsdl file.

Then you either inherit from the generated skeleton and override the
webmethods, or just modify the generated skeleton and you have a webservice implementation.

Christian's tool does the same thing (I think) but all within Visual Studio.

-Dino
"Christoph Schittko [MVP]" <ch********************@austin.rr.com> wrote in
message news:Ox**************@TK2MSFTNGP09.phx.gbl...
PJ,

have you thought about getting Christian Weyer's contract first tool [0] to
generate Web services that conform to the WSDL that you received.

The tool will generate ASP.NET web serivce stub code for you. You can add whatever code to the methods that were defined in the WSDL. In your case

you
would probably log the request and return the response you need.

Let me know if that gets you started or if we need to figure out something else.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0] http://weblogs.asp.net/cweyer/archiv.../21/39070.aspx

"PJ via .NET 247" <an*******@dotnet247.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
I'm really hoping someone can point me in a direction.

We're doing some work for a mjaor bank in the UK using Microsoft .NET.

They have provided us a WSDL file. We have generated a C# file and then
imported this into a C++ Managed DLL.

Here comes the problem.

1) There are several request objects and response objects. I would like to
create a simulator which listens for the request objects, and somehow
manages to send a reply object. I could create a socket and listen to

the web-service request, get the XML(?) data and then somehow, construct the

XML
reply and send back?

The aim of the simulator is to take data from the request, then build a
response which could be arrays of account data for example, then send it
back. No idea how to start with .NET?

Can anyone point me in the right direction, i've looked at the classes
HttpChannel, IMessage, etc, am l looking in the right direction. Any

help
appreciated...

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>wgfnTHCe/EKpVJ9TjYRDog==</Id>


Nov 12 '05 #4

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

Similar topics

0
by: Alex Vinokur | last post by:
C++ Simulator of a Universal Turing Machine can be downloaded at : * http://alexvn.freeservers.com/s1/utm.html * http://sourceforge.net/projects/turing-machine/ The program simulates a...
9
by: Milk | last post by:
Hi all, Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't have any ideal pls help me here...
61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
0
by: SatishPasala | last post by:
Hi I am developing a Windows Mobile application. I want Visual Studio to use Palm Simulator to display the application. Now it is pointing to Default Simulator. I downloaded the Palm...
0
by: François | last post by:
Hi, My current job is to develop VoiceXML dialogs. The voice platform that we use provides neither a debugger nor a simulator, and each time I want to test a new dialog, I have to upload it on...
1
by: Ciko | last post by:
Was wondering how I could write a simple simulator (assembler CPU Z80). Thanks for any advice, link.
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
3
by: DanielJohnson | last post by:
I was wondering if anyblody can suggest me a network simulator written in python in which I can add on my own code and extend its functionality. I am looking for a simulator which will simualte...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.