Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

imtkmake -genwsdl creates code for first endpoint but not for second endpoint

imtkmake -genwsdl creates code for first endpoint but not for second endpoint

Problem

imtkmake -genwsdl generates code for the first endpoint, how can you make use of the second endpoint?

In a WSDL file used to generate the COBOL Proxy,  the service has different endpoints (See below).
<wsdl:service name="DosCom_1_SOAP.serviceagent">
       
     <wsdl:port name="ControlerAdrPstlAssiste_1_s12-edpt" binding="tns:ControlerAdrPstlAssiste_1_s12-edptBinding">
                         <soap1:address location="http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlAssiste_1_s12"/>
       
    </wsdl:port>
       
      <wsdl:port name="ControlerAdrPstlRNVP_1-edpt" binding="tns:ControlerAdrPstlRNVP_1-edptBinding">
           
            <soap:address location="http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlRNVP_1"/>
       
      </wsdl:port>
       
      <wsdl:port name="ControlerAdrPstlAssiste_1-edpt" binding="tns:ControlerAdrPstlAssiste_1-edptBinding">
           
             <soap:address location="http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlAssiste_1"/>
       
       </wsdl:port>
       
       <wsdl:port name="ControlerAdrPstlRNVP_1_s12-edpt" binding="tns:ControlerAdrPstlRNVP_1_s12-edptBinding">
                          <soap1:address location="http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlRNVP_1_s12"/>
       
         </wsdl:port>
   
        </wsdl:service>

Resolution

You will have to modify the WSDL manually in order to keep only the second endpoint to have the proxy code to access  http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlRNVP_1

      <wsdl:port name="ControlerAdrPstlRNVP_1-edpt" binding="tns:ControlerAdrPstlRNVP_1-edptBinding">
           
            <soap:address location="http://localhost:12345/esb/service/DosCom_1/ControlerAdrPstlRNVP_1"/>
       
      </wsdl:port>.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2016-10-05 13:17
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.