Question
· Feb 9, 2022

Inbound SOAP Service WSDL - incorrect portType name

For our WSDL the portType value is being suffixed with "Soap" at the end.

When i update the the SERVICENAME parameter. in the Service I can update the start of the portType value. Is there a way to prevent the suffix being added?

WSDL segment

<portType name="BillingDocumentRequestConfirmation_OutSoap">
<operation name="BillingDocumentRequestConfirmationOut">
<input message="s0:BillingDocumentRequestConfirmationOutSoapIn"/>
<output message="s0:BillingDocumentRequestConfirmationOutSoapOut"/>
</operation>
</portType>
<binding name="BillingDocumentRequestConfirmation_OutSoap" type="s0:BillingDocumentRequestConfirmation_OutSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="BillingDocumentRequestConfirmationOut">
<soap:operation soapAction="" style="document"/>
<input>
<soap:body use="literal"/>
<soap:header message="s0:IRISSessionHeader" part="CSPCHD" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
<soap:header message="s0:IRISSessionHeader" part="CSPCHD" use="literal"/>
</output>
</operation>
</binding>
<service name="BillingDocumentRequestConfirmation_Out">
<port name="BillingDocumentRequestConfirmation_OutSoap" binding="s0:BillingDocumentRequestConfirmation_OutSoap">
<soap:address location="https://myaddress:443/MyService.cls"/>
</port>
</service>
</definitions>

Config segment

XData service
{
<cfg:configuration xmlns:cfg="http://www.intersystems.com/configuration" name="service">
  <cfg:service classname="MyClass.Acknowledgement.Service.COSDBILESRBDRCONFOUTportsoap11">
    <!-- <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" cfg:wsdlElement="portType">
      <wsp:PolicyReference URI="#IF_IF_BillingDocumentRequestConfirmation_Out"/>
    </wsp:Policy> -->
    <cfg:method name="BillingDocumentRequestConfirmationOut">
      <!-- <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" cfg:wsdlElement="portType">
        <wsp:PolicyReference URI="#OP_IF_OP_BillingDocumentRequestConfirmation_Out"/>
      </wsp:Policy> -->
    </cfg:method>
  </cfg:service>
</cfg:configuration>
}

Inbound Service Class segment

Include %occInclude Class MyService.Service Extends EnsLib.SOAP.Service [ Language = objectscript, ProcedureBlock ]
{ 
Parameter SOAPSESSION = 1; 
Parameter SECURITYIN = "REQUIRE"; 
Parameter SERVICENAME = "BillingDocumentRequestConfirmation_Out"; 
Parameter NAMESPACE = "n0"; 
Parameter SOAPPREFIX = "soap-env"; 
Parameter USECLASSNAMESPACES = 1; 
Parameter ELEMENTQUALIFIED = 0;  }
Product version: IRIS 2019.2
$ZV: IRIS for Windows (x86-64) 2019.1.2 (Build 718U)
Discussion (3)1
Log in or sign up to continue