.NET Framework - Try to make a web service out of a wsdl ...

Asked By g-forsm
01-Mar-08 02:44 PM
Hi!

Can I ask you to try this?

Below you see a wsdl? could you try to make a .NET web service out of
ths wsdl (under localhost)? Some criterias must be met in the new .net
web service:

- target namespace must be the same (http://no/brreg/BReMS/WebService/
services) and
name="OutboundLegacyDataReceiverSoapPort">

I need a web service that is exactly the same (except address location
of course).

When testing the new web service method it should be like this

string ret = objWS.submitMessage(cpaid, securitykey, message);

regards
Geir F

----

targetNamespace="http://no/brreg/BReMS/WebService/services" xmlns=""
xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://no/brreg/
BReMS/WebService/services" xmlns:s2="http://schemas.xmlsoap.org/wsdl/
soap/">
elementFormDefault="qualified" targetNamespace="http://no/brreg/BReMS/
WebService/services" xmlns:s0="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://no/brreg/BReMS/WebService/services" xmlns:s2="http://
schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/
XMLSchema">
type="s1:OutboundLegacyDataReceiver">
soap/http"/>
name="OutboundLegacyDataReceiverSoapPort">
WebService/OutboundLegacyDataReceiver"/>
Windows Server
(1)
WebService
(1)
BReMS
(1)
ObjWS.submitMessage
(1)
Database
(1)
Geir
(1)
D322e2a4009c
(1)
Securitykey
(1)
  John Saunders [MVP] replied...
01-Mar-08 03:05 PM
I tried this, but couldn't find a way to specify the port name.

You are making a serious design error. Consider:

* Your callers have published a WSDL defining the contract they expect you
to adhere to. They have a database listing the URL for the WSDL (and
hopefully also the address) of the service they want you to implement. This
means that they have created a static contract that they require you to
fulfill.
* On the other hand, you're trying to figure out how to get .NET to look at
a class you've created and to get it to generate the same WSDL.

You are trying to dynamically generate a static WSDL. That's a mistake.
Instead, serve the WSDL at some location in your web server; have them place
that URL into their database; then, write your web service to be callable by
your caller. Do not expect .NET to dynamically generate something static.

BTW, if they are using the WSDL at runtime to dynamically generate the proxy
code that they will then use to call your code, then they, too are making a
mistake. If the WSDL is static, then they should be using a statically
created proxy class, not a dynamically created proxy
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
class.
Create New Account
help
WSE 3.0 and I get this WSE 3.0 error when someone calls a webservice (windows server 2003 event viewer): HTTP / ASMX Message Receive Failure: System.InvalidOperationException: The value may not be from ASP.NET 2.0) related to the first one: Exception type: HttpException Exception message: Server cannot clear headers after HTTP headers have been sent. Any Idea? Thanks Juan Puebla .NET all that good stuff Try increasing the size of your maximum request packet in the server's web.config file. Look up "maxRequestLength" in MSDN. keywords: WSE, 3.0 description: Hi WSE 3.0 and I get this WSE 3.0 error when someone calls a webservice (windows server 2003 event viewer): HTTP / ASMX Message Receive Failur
OT] Windows Server 2003 Cluster was ist das? Und welche Fallstricke gibts es wenn man darauf einen Webservice installiert? .NET Framework Hallo NG, leicht OT aber ich weiss im moment nicht in welche dotnet newsgroup das sonst hineinpassen sollte, Also: Wir haben hier eine dotnet *.exe die eine Webservice Schnittstelle zur Verfügungn stellt, bis jetzt haben wir diesen Webservice immer auf einem "normalen" Windwos 2003 Server oder auch auf einem einzelnen Windows XP Professinal Rechner laufen lassen. Jetzt fragt ein Kunde an ob man diesen Webservice auch auf einem Windwos 2003 Cluster laufen lassen kann. 1) Grundsätzlich fehlt mir erstmal der
Windows Dienst auf Server 2008 .NET Framework Hallo, ich habe einen Windows Dienst der einen .NET Webservice konsumiert und diesen in regelm????igen Abst??nden auf neue Inhalte abfragt. Beide Systeme sind in .NET 2.0 geschrieben. Auf Windows Server 2003 l??uft der Windows Dienst einwandfrei. Installiere ich diesen auf Windows Server 2008 kann er den Webservice nicht abfragen (der Webservice l??uft auf einem anderen
what's the difference between WebService & WCF Service? .NET Framework Can someone compare in detail? I feel WebService is part of WCFservice now. Thanks, soworl .NET Framework Discussions Windows Server (1) WebService (1) WCF (1) WCFservice (1) Soworl (1) You are correct. - - - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - John Saunders | MVP - Windows Server System - Connected System Developer keywords: what's, the, difference, between, WebService, &, WCF, Service? description: Can someone compare in detail I feel WebService is part of WCFservice
service deployment? Just during build using command line tool? Thanks ASP.NET Web Services Discussions Windows Server (1) WebService (1) Generate (1) OutputDirectory (1) CmdHelper (1) GetWsdl (1) Sinkevich (1) LyPath (1) What would you generate it _from_? - - - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - John Saunders | MVP - Windows Server System - Connected System Developer From class that implements WEB service, (class with attrribute WebService), or asmx page. I don't know of any existing command-line tool that would run unit tests against the built code, in a continuous integration scenario. - - - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - John Saunders | MVP - Windows Server System - Connected System Developer Thanks, I have already implement such tool myself. Problem solved. I