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

 
0 Likes

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>.

Comment List
Related
Recommended