none
WCF - Set default OperationContract RRS feed

  • Question

  • Hi:

    I want to call a WCF service with SOAP. Now I can call to the service with this SOAP:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:san="http://xmlns.oracle.com/pcbpel/adapter/db/sp/CompanyService">
       <soapenv:Header/>
       <soapenv:Body>
          <san:CreateCompanyService>
        <san:CountryParameters xmlns:san="http://xmlns.oracle.com/pcbpel/adapter/db/sp/CompanyService">
      <san:COUNTRY>
        <san:ID_TOWN xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">123</san:ID_TOWN>
        <san:NAME xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">SPAIN</san:NAME >
        <san:TOWN></san:TOWN>

    </san:COUNTRY>

    </san:CreateCompanyService>

    </soapenv:Body>

    </soapenv:Envelope>

    But I want to do the call with this XML:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:san="http://xmlns.oracle.com/pcbpel/adapter/db/sp/CompanyService">
       <soapenv:Header/>
       <soapenv:Body>
         
        <san:CountryParameters xmlns:san="http://xmlns.oracle.com/pcbpel/adapter/db/sp/CompanyService">
      <san:COUNTRY>
        <san:ID_TOWN xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">123</san:ID_TOWN>
        <san:NAME xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">SPAIN</san:NAME >
        <san:TOWN></san:TOWN>

    </san:COUNTRY>

    </soapenv:Body>

    </soapenv:Envelope>

    Removing <san:CreateCompanyService> node, who is the OperationContract of the service. Is it possible to do this? I want to set CreateCompanyService as default operationContrat and don't show on WSDL files.

    Thanks!

    Tuesday, October 4, 2016 1:00 PM

Answers