 |
Try to make a web service out of a wsdl ... - g-forsm |
01-Mar-08 02:44:20
|
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"/> |
 |
| |
| |
|
| |
|
Try to make a web service out of a wsdl ... - John Saunders [MVP] |
01-Mar-08 03:05:23
|
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. |
 |
| |
|
|
| Web Service Start Up |