none
Empty proxy class (reference.cs) when a add web reference RRS feed

  • Question

  • I have a web service written in Delphi 6. When you try to add a web reference to it, I get a file .wsdl but Referense.cs is empty. Tell me, please, how it can be corrected.

    Thanks in advance.

    Wsdl file text :

    <?xml version="1.0" encoding="utf-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ISoapSmetaInterfaceservice"
                 targetNamespace="http://www.borland.com/soapServices/" xmlns:tns="http://www.borland.com/soapServices/" 
                 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" >
      <message name="ImportSmetaFromGrandRequest">
        <part name="aXMLFileName" type="xs:string" />
        <part name="aErrorCode" type="xs:int" />
        <part name="aErrorMsg" type="xs:string" />
      </message>
      <message name="ImportSmetaFromGrandResponse">
        <part name="aErrorCode" type="xs:int" />
        <part name="aErrorMsg" type="xs:string" />
      </message>
      <portType name="ISoapSmetaInterface">
        <operation name="ImportSmetaFromGrand">
          <input message="tns:ImportSmetaFromGrandRequest" />
          <output message="tns:ImportSmetaFromGrandResponse" />
        </operation>
      </portType>
      <binding name="ISoapSmetaInterfacebinding" type="tns:ISoapSmetaInterface">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
        <operation name="ImportSmetaFromGrand">
          <soap:operation soapAction="urn:SmetaServiceIntfU-ISoapSmetaInterface#ImportSmetaFromGrand" />
          <input>
            <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:SmetaServiceIntfU-ISoapSmetaInterface" />
          </input>
          <output>
            <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:SmetaServiceIntfU-ISoapSmetaInterface" />
          </output>
        </operation>
      </binding>
      <service name="ISoapSmetaInterfaceservice">
        <port name="ISoapSmetaInterfacePort" binding="tns:ISoapSmetaInterfacebinding">
          <soap:address location="http://localhost:81/soap/ISoapSmetaInterface" />
        </port>
      </service>
    </definitions>


    • Edited by DenMpei Thursday, January 24, 2013 9:40 AM
    Thursday, January 24, 2013 9:39 AM

Answers

  • The problem was that, instead xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" , needed to use xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    • Marked as answer by DenMpei Thursday, January 31, 2013 7:09 AM
    Thursday, January 31, 2013 7:09 AM

All replies

  • Hi,

    If you mean consume the wcf service from a Delphi client, hope this blog can help you. You can use Svcutil.exe tool to generate proxy.

    If you mean Delphi web service, so I'd suggest you post the issue to a more appropriate forum to get better help. Thanks for your understanding.

    Best Regards.


    Haixia
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 25, 2013 5:38 AM
    Moderator
  • The problem was that, instead xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" , needed to use xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    • Marked as answer by DenMpei Thursday, January 31, 2013 7:09 AM
    Thursday, January 31, 2013 7:09 AM