HighTechTalks DotNet Forums  

Try to make a web service out of a wsdl ...

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Try to make a web service out of a wsdl ... in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
g-forsmo@hotmail.com
 
Posts: n/a

Default Try to make a web service out of a wsdl ... - 02-29-2008 , 08:08 AM






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
<s0:service name="OutboundLegacyDataReceiverService">
<s0ort binding="s1:OutboundLegacyDataReceiverServiceSoapB inding"
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

----

<?xml version='1.0' encoding='UTF-8'?>
<s0:definitions name="OutboundLegacyDataReceiverServiceDefinitions "
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/">
<s0:types>
<xs:schema attributeFormDefault="unqualified"
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">
<xs:element name="submitMessage">
<xs:complexType>
<xs:sequence>
<xs:element name="cpaid" type="xs:string"/>
<xs:element name="securitykey" type="xs:string"/>
<xs:element name="message" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="submitMessageResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</s0:types>
<s0:message name="submitMessage">
<s0art element="s1:submitMessage" name="parameters"/>
</s0:message>
<s0:message name="submitMessageResponse">
<s0art element="s1:submitMessageResponse" name="parameters"/>
</s0:message>
<s0ortType name="OutboundLegacyDataReceiver">
<s0peration name="submitMessage" parameterOrder="parameters">
<s0:input message="s1:submitMessage"/>
<s0utput message="s1:submitMessageResponse"/>
</s0peration>
</s0ortType>
<s0:binding name="OutboundLegacyDataReceiverServiceSoapBinding "
type="s1:OutboundLegacyDataReceiver">
<s2:binding style="document" transport="http://schemas.xmlsoap.org/
soap/http"/>
<s0peration name="submitMessage">
<s2peration soapAction="" style="document"/>
<s0:input>
<s2:body parts="parameters" use="literal"/>
</s0:input>
<s0utput>
<s2:body parts="parameters" use="literal"/>
</s0utput>
</s0peration>
</s0:binding>
<s0:service name="OutboundLegacyDataReceiverService">
<s0ort binding="s1:OutboundLegacyDataReceiverServiceSoapB inding"
name="OutboundLegacyDataReceiverSoapPort">
<s2:address location="https://wss-test.brreg.no:443/BReMS/
WebService/OutboundLegacyDataReceiver"/>
</s0ort>
</s0:service>
</s0:definitions>

Reply With Quote
  #2  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Try to make a web service out of a wsdl ... - 03-01-2008 , 02:05 PM






<g-forsmo (AT) hotmail (DOT) com> wrote

Quote:
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
s0:service name="OutboundLegacyDataReceiverService"
s0ort binding="s1:OutboundLegacyDataReceiverServiceSoapB inding"
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);
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.




Reply With Quote
  #3  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Try to make a web service out of a wsdl ... - 03-01-2008 , 02:05 PM



<g-forsmo (AT) hotmail (DOT) com> wrote

Quote:
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
s0:service name="OutboundLegacyDataReceiverService"
s0ort binding="s1:OutboundLegacyDataReceiverServiceSoapB inding"
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);
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.




Reply With Quote
  #4  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Try to make a web service out of a wsdl ... - 03-01-2008 , 02:05 PM



<g-forsmo (AT) hotmail (DOT) com> wrote

Quote:
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
s0:service name="OutboundLegacyDataReceiverService"
s0ort binding="s1:OutboundLegacyDataReceiverServiceSoapB inding"
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);
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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.