[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 7: Timeout occurred while trying to connect to server



Phil,

The name of the _setHost() procedure is generic and consists of the 'NameOfTheWebServicePort' and the 
fix portion '_setHost'. Hence in your case the name of the setHost() procedure most likely is 
different from "DownloadDocumentSoapBinding_setHost". Open the generated test program and search for 
"_setHost". You should find the procedure you are looking for there.

Thomas.

Phil Huynh schrieb:
>    Thomas,
> 
>    I have the same "connection time-out" error and follow your advice to
>    add the line "DownloadDocumentSoapBinding_setHost('10.1.177.85')" to
>    my webservice test program WS0001T and compile failed because it
>    cannot find this function.  Can you tell me where is this function
>    defined?  I searched source file QWSDL2RPG but cannot find its
>    definition anywhere.
> 
>    =============================
>    Regards,
>    Phil
> 
>    On Tue, Dec 1, 2009 at 11:59 AM, Thomas Raddatz
>    <[1]thomas.raddatz@xxxxxxxxxxx> wrote:
> 
>      Hi,
>      the wsdl file specifies the server name as 'localhost'. Hence
>      'localhost' is the server the stub
>      module generated by WSDL2RPG tries to connect to. In order to
>      specify a different host you have to
>      call DownloadDocumentSoapBinding_setHost('192.168.59.175') before
>      calling the web service. Did you do
>      that?
>      Thomas.
>      B&R Informatica Sas schrieb:
> 
>    >    help everyone
>    >    I have this situation:
>    >    I created a program with the command WSDL2RPG providing the WSDL
>    file
>    >    described below.
>    >    The input parameter is a string representing the name of an image
>    file
>    >    stored on another server visible in the address 192.168.95.175
>    port
>    >    9080;
>    >    Return should have the stream of the image file to be displayed
>    on the
>    >    client's browser. The link is as follows
>    >
>    [2]http://192.168.59.175:9080/DDTViewer/services/DownloadDocument?wsdl
>    >    I make a call to the program but I returned the following error:
>    >    7: Timeout occurred while trying to connect to server
>    >    someone tell me where is the error?
>    >
>    >    File WSDL:
>    >    <?xml version="1.0" encoding="UTF-8"?>
>    >    <wsdl:definitions
>    >    targetNamespace="[1][3]http://tools.documentviewer.cst.com";
>    >    xmlns:impl="[2][4]http://tools.documentviewer.cst.com";
>    >    xmlns:intf="[3][5]http://tools.documentviewer.cst.com";
>    >    xmlns:wsdl="[4][6]http://schemas.xmlsoap.org/wsdl/";
>    >    xmlns:wsdlsoap="[5][7]http://schemas.xmlsoap.org/wsdl/soap/";
>    >    xmlns:wsi="[6][8]http://ws-i.org/profiles/basic/1.1/xsd";
>    >    xmlns:xsd="[7][9]http://www.w3.org/2001/XMLSchema";>
>    >     <wsdl:types>
>    >      <schema
>    targetNamespace="[8][10]http://tools.documentviewer.cst.com";
>    >    xmlns="[9][11]http://www.w3.org/2001/XMLSchema";
>    >    xmlns:wsdl="[10][12]http://schemas.xmlsoap.org/wsdl/";
>    >    xmlns:xsd="[11][13]http://www.w3.org/2001/XMLSchema";>
>    >       <element name="retriveDDTObjectResponse">
>    >        <complexType>
>    >         <sequence>
>    >          <element name="retriveDDTObjectReturn"
>    type="xsd:base64Binary"/>
>    >         </sequence>
>    >        </complexType>
>    >       </element>
>    >       <element name="retriveDDTObject">
>    >        <complexType>
>    >         <sequence>
>    >          <element name="barcode" nillable="true" type="xsd:string"/>
>    >         </sequence>
>    >        </complexType>
>    >       </element>
>    >      </schema>
>    >     </wsdl:types>
>    >       <wsdl:message name="retriveDDTObjectRequest">
>    >         <wsdl:part element="intf:retriveDDTObject"
>    name="parameters"/>
>    >      </wsdl:message>
>    >       <wsdl:message name="retriveDDTObjectResponse">
>    >         <wsdl:part element="intf:retriveDDTObjectResponse"
>    >    name="parameters"/>
>    >      </wsdl:message>
>    >       <wsdl:portType name="DownloadDocument">
>    >         <wsdl:operation name="retriveDDTObject">
>    >           <wsdl:input message="intf:retriveDDTObjectRequest"
>    >    name="retriveDDTObjectRequest"/>
>    >           <wsdl:output message="intf:retriveDDTObjectResponse"
>    >    name="retriveDDTObjectResponse"/>
>    >        </wsdl:operation>
>    >      </wsdl:portType>
>    >       <wsdl:binding name="DownloadDocumentSoapBinding"
>    >    type="intf:DownloadDocument">
>    >     <wsaw:UsingAddressing wsdl:required="false"
>    >    xmlns:wsaw="[12][14]http://www.w3.org/2006/05/addressing/wsdl"/>
>    >         <wsdlsoap:binding style="document"
>    >    transport="[13][15]http://schemas.xmlsoap.org/soap/http"/>
>    >         <wsdl:operation name="retriveDDTObject">
>    >           <wsdlsoap:operation soapAction="retriveDDTObject"/>
>    >           <wsdl:input name="retriveDDTObjectRequest">
>    >             <wsdlsoap:body use="literal"/>
>    >          </wsdl:input>
>    >           <wsdl:output name="retriveDDTObjectResponse">
>    >             <wsdlsoap:body use="literal"/>
>    >          </wsdl:output>
>    >        </wsdl:operation>
>    >      </wsdl:binding>
>    >       <wsdl:service name="DownloadDocumentService">
>    >         <wsdl:port binding="intf:DownloadDocumentSoapBinding"
>    >    name="DownloadDocument">
>    >           <wsdlsoap:address
>    >
>    location="[14][16]http://localhost:9080/DDTViewer/services/DownloadDoc
>    umen
>    >    t"/>
>    >        </wsdl:port>
>    >      </wsdl:service>
>    >    </wsdl:definitions>
>    >
>    > References
>    >
>    >    1. [17]http://tools.documentviewer.cst.com/
>    >    2. [18]http://tools.documentviewer.cst.com/
>    >    3. [19]http://tools.documentviewer.cst.com/
>    >    4. [20]http://schemas.xmlsoap.org/wsdl/
>    >    5. [21]http://schemas.xmlsoap.org/wsdl/soap/
>    >    6. [22]http://ws-i.org/profiles/basic/1.1/xsd
>    >    7. [23]http://www.w3.org/2001/XMLSchema
>    >    8. [24]http://tools.documentviewer.cst.com/
>    >    9. [25]http://www.w3.org/2001/XMLSchema
>    >   10. [26]http://schemas.xmlsoap.org/wsdl/
>    >   11. [27]http://www.w3.org/2001/XMLSchema
>    >   12. [28]http://www.w3.org/2006/05/addressing/wsdl%22/
>    >   13. [29]http://schemas.xmlsoap.org/soap/http%22/
>    >   14.
>    [30]http://localhost:9080/DDTViewer/services/DownloadDocument%22/
>    >
>    >
>    >
> 
>      >
>      -------------------------------------------------------------------
>      -----
>      >
>      >
>      -------------------------------------------------------------------
>      ----
>      > This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      > [31]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >
>      -------------------------------------------------------------------
>      ----
>      -------------------------------------------------------------------
>      ----
>      This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      [32]http://www.scottklement.com/mailman/listinfo/ftpapi
>      -------------------------------------------------------------------
>      ----
> 
> References
> 
>    1. mailto:thomas.raddatz@xxxxxxxxxxx
>    2. http://192.168.59.175:9080/DDTViewer/services/DownloadDocument?wsdl
>    3. http://tools.documentviewer.cst.com/
>    4. http://tools.documentviewer.cst.com/
>    5. http://tools.documentviewer.cst.com/
>    6. http://schemas.xmlsoap.org/wsdl/
>    7. http://schemas.xmlsoap.org/wsdl/soap/
>    8. http://ws-i.org/profiles/basic/1.1/xsd
>    9. http://www.w3.org/2001/XMLSchema
>   10. http://tools.documentviewer.cst.com/
>   11. http://www.w3.org/2001/XMLSchema
>   12. http://schemas.xmlsoap.org/wsdl/
>   13. http://www.w3.org/2001/XMLSchema
>   14. http://www.w3.org/2006/05/addressing/wsdl
>   15. http://schemas.xmlsoap.org/soap/http
>   16. http://localhost:9080/DDTViewer/services/DownloadDocumen
>   17. http://tools.documentviewer.cst.com/
>   18. http://tools.documentviewer.cst.com/
>   19. http://tools.documentviewer.cst.com/
>   20. http://schemas.xmlsoap.org/wsdl/
>   21. http://schemas.xmlsoap.org/wsdl/soap/
>   22. http://ws-i.org/profiles/basic/1.1/xsd
>   23. http://www.w3.org/2001/XMLSchema
>   24. http://tools.documentviewer.cst.com/
>   25. http://www.w3.org/2001/XMLSchema
>   26. http://schemas.xmlsoap.org/wsdl/
>   27. http://www.w3.org/2001/XMLSchema
>   28. http://www.w3.org/2006/05/addressing/wsdl%22/
>   29. http://schemas.xmlsoap.org/soap/http%22/
>   30. http://localhost:9080/DDTViewer/services/DownloadDocument%22/
>   31. http://www.scottklement.com/mailman/listinfo/ftpapi
>   32. http://www.scottklement.com/mailman/listinfo/ftpapi
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------