There is a WCF service with the configuration:
<services> <service name="MyService" behaviorConfiguration="MyServiceBehavior"> <endpoint binding="basicHttpBinding" contract="IMyService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8001/MyService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="MyServiceBehavior"> <serviceMetadata httpGetEnabled="True" /> </behavior> </serviceBehaviors> </behaviors>
This script should call it:
Option Explicit Dim soapClient Dim serviceUri Dim serviceName Dim portName Dim result serviceUri = "http://localhost:8001/MyService" serviceName = "MyService" portName = "BasicHttpBinding_IMyService" Set soapClient = CreateObject("MSSOAP.soapClient") soapClient.ClientProperty("ServerHTTPRequest") = True soapClient.mssoapinit serviceUri & "?WSDL", serviceName, portName
When the script starts, this error appears:
Client: WSDLReader: could not parse the WSDL file HRESULT = 0x8 0004005 - WSDLReader: Service initialization failed HRESULT = 0x80004005 - WSDL service: Initialization of the port for MyService failed HRESULT = 0x80004005 - WSDLPort: analysis of the binding information for the Basic_ BasicTypper_support = 0 <b> Basic_Support = Reference_Support = 0 = Basic_Support = 0x8bvice - WSDLPort: operation for the port BasicHttpBinding_IMyService cannot be initialized HRESULT = 0x8000 4005 - WSDLOperation: operation // def: portType [@ name = "IMyService"] / def: operation [@ name = "MyMethod"] was not found in the porttype HRESULT section = 0x80004005
What is going wrong? Please, help.
Edit:
Thank you, Chiso, for the answer. The problem with MSSOAP is that it requires all xsd schemas to be included in the line in the generated WSDL file. WCF does not do this by default.
vbscript wcf msxml
Alex Jun 03 '09 at 14:08 2009-06-03 14:08
source share