Sean,
Ok, thanks. I have a serious doubt: My server Ubuntu where gemstone run, is in local network ( i have a router for www external request ). My SOAP request are from a Mac in the same local network. On the Mac i have host file with entry for redirect the request relative to the server 192.168.1.100 www.myservername.com Now i think SOAP don't work with this entry. When i do SOAP request from MAC: SoapExampleClient new callHelloWorld i found the error : 'Server does not respond - ''host: www.tobehungry.com port: 9001' What do you think about it ? Thanks for any considerations, Dario |
On Wed, May 5, 2010 at 5:15 AM, Dario Trussardi
<[hidden email]> wrote: > Sean, > > > > For setup SOAP client request i do: > > SoapExampleClient hostAddress: 'www.myserver.com' > > SoapExampleClient port: 9001 > > It's right ? > > For do SOAP request i do: SoapExampleClient new callHelloWorld > > It's right ? > > > You tried to start multiple things on a single port. > Only one application can listen on a single port. > So if you start the fast cgi service on port 9001, > you cant then start a SOAP server on that port. > > Because they don't play nice together and you will get all sorts of > > weird errors. > > No, i don't have any swazoo category. > > I have a version of the Soap Client that works in the same gemstone > > image as swazoo, haven't tested the server. > > > I have some entry in lighttpd.conf file to intercept the seaside web > > application request and go it on the gems. > > fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , > > "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) > > > This is for a fast cgi server. > > If you start the soap server on port 9001 and then tell the client to > connect to port 9001, > then there is no proxy server needed. > > So, dont start fast cgi on the same port as the soap server and you > dont need lighttpd > if you are trying to connect directly to the soap server. > > Ok, thanks. > > > I have a serious doubt: > My server Ubuntu where gemstone run, is in local network ( i have a router > for www external request ). > My SOAP request are from a Mac in the same local network. > On the Mac i have host file with entry for redirect the request relative to > the server > 192.168.1.100 www.myservername.com > > Now i think SOAP don't work with this entry. > When i do SOAP request from MAC: SoapExampleClient new callHelloWorld > > i found the error : 'Server does not respond - ''host: www.tobehungry.com > port: 9001' > > What do you think about it ? > Does it work when you ask it to connect to 192.168.1.100 on port 9001? |
In reply to this post by dario trussardi
Hi, i have do some test.
The setup in gemtools client workspace is: SoapExampleClient hostAddress: 'www.myservername.com' SoapSetting defaultSendingPort: 9001 SoapExampleClient port: 9001 With this setup i have:
If i change the first setup line to: SoapExampleClient hostAddress: 'localhost'. the SOAP request from MAC: SoapExampleClient new callHelloWorld work fine. Now my test final test is to send SOAP client request from one stone client to another stone server. in other word: I have a first gemtools open on the stone run on my Ubuntu server name www.myservername.com. On it i do the setup: "Soap server "
SoapSetting defaultPort: 9001
SoapExampleServiceImpl registerAllServices
(Delay forMilliseconds: 100) wait. The second gemtools is open on the stone run on my Mac On it i do the setup: SoapExampleClient hostAddress: 'www.myservername.com'
SoapSetting defaultSendingPort: 9001
SoapExampleClient port: 9001
Now when i do the SOAP request from Mac : SoapExampleClient new callHelloWorld Because this ? It's a problem link to my last email ?
The SOAP SoapExampleClient hostAddress: support only the : 'localhost' ? In the SoapExampleDoc class howToRunExample method i read: (If you register services in some remote machine, you have to set class inst var "hostAddress".)
"SoapExampleClient hostAddress: #yourServerName" Any pointers would be greatly appreciated ! Thanks, Dario |
Can you connect not using the hosts file entrty name, just using the ip address?
On Wed, May 5, 2010 at 7:22 AM, Dario Trussardi <[hidden email]> wrote: > > Hi, > i have do some test. > > Sean, > > > > For setup SOAP client request i do: > > SoapExampleClient hostAddress: 'www.myserver.com' > > SoapExampleClient port: 9001 > > It's right ? > > For do SOAP request i do: SoapExampleClient new callHelloWorld > > It's right ? > > > You tried to start multiple things on a single port. > Only one application can listen on a single port. > So if you start the fast cgi service on port 9001, > you cant then start a SOAP server on that port. > > Because they don't play nice together and you will get all sorts of > > weird errors. > > No, i don't have any swazoo category. > > I have a version of the Soap Client that works in the same gemstone > > image as swazoo, haven't tested the server. > > > I have some entry in lighttpd.conf file to intercept the seaside web > > application request and go it on the gems. > > fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , > > "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) > > > This is for a fast cgi server. > > If you start the soap server on port 9001 and then tell the client to > connect to port 9001, > then there is no proxy server needed. > > So, dont start fast cgi on the same port as the soap server and you > dont need lighttpd > if you are trying to connect directly to the soap server. > > Ok, thanks. > > > > > > The setup in gemtools client workspace is: > SoapExampleClient hostAddress: 'www.myservername.com' > SoapSetting defaultSendingPort: 9001 > SoapExampleClient port: 9001 > With this setup i have: > > When i do SOAP request from MAC: SoapExampleClient new callHelloWorld > > i found the error : 'Server does not respond - ''host: www.tobehungry.com > port: 9001' > > What do you think about it ? > > If i change the first setup line to: > SoapExampleClient hostAddress: 'localhost'. > > the SOAP request from MAC: SoapExampleClient new callHelloWorld > work fine. > > > Now my test final test is to send SOAP client request from one stone client > to another stone server. > in other word: > I have a first gemtools open on the stone run on my Ubuntu server name > www.myservername.com. > On it i do the setup: > "Soap server " SoapSetting defaultPort: 9001 SoapExampleServiceImpl > registerAllServices (Delay forMilliseconds: 100) wait. > > The second gemtools is open on the stone run on my Mac > On it i do the setup: > SoapExampleClient hostAddress: 'www.myservername.com' SoapSetting > defaultSendingPort: 9001 SoapExampleClient port: 9001 Now when i do the SOAP > request from Mac : SoapExampleClient new callHelloWorld > i found the error : 'Server does not respond - > ''host: www.tobehungry.com port: 9001' > Because this ? > It's a problem link to my last email ? > > I have a serious doubt: > My server Ubuntu where gemstone run, is in local network ( i have a router > for www external request ). > My SOAP request are from a Mac in the same local network. > On the Mac i have host file with entry for redirect the request relative to > the server > 192.168.1.100 www.myservername.com > > Now i think SOAP don't work with this entry. > > The SOAP SoapExampleClient hostAddress: support only the : 'localhost' ? > In the SoapExampleDoc class howToRunExample method i read: > (If you register services in some remote machine, you have to set class inst > var "hostAddress".) "SoapExampleClient hostAddress: #yourServerName" > Any pointers would be greatly appreciated ! > > Thanks, > Dario > |
In reply to this post by SeanTAllen
Sean,
> On Wed, May 5, 2010 at 5:15 AM, Dario Trussardi > <[hidden email]> wrote: >> Sean, >> >> >> >> For setup SOAP client request i do: >> >> SoapExampleClient hostAddress: 'www.myserver.com' >> >> SoapExampleClient port: 9001 >> >> It's right ? >> >> For do SOAP request i do: SoapExampleClient new callHelloWorld >> >> It's right ? >> >> >> You tried to start multiple things on a single port. >> Only one application can listen on a single port. >> So if you start the fast cgi service on port 9001, >> you cant then start a SOAP server on that port. >> >> Because they don't play nice together and you will get all sorts of >> >> weird errors. >> >> No, i don't have any swazoo category. >> >> I have a version of the Soap Client that works in the same gemstone >> >> image as swazoo, haven't tested the server. >> >> >> I have some entry in lighttpd.conf file to intercept the seaside web >> >> application request and go it on the gems. >> >> fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , >> >> "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) >> >> >> This is for a fast cgi server. >> >> If you start the soap server on port 9001 and then tell the client to >> connect to port 9001, >> then there is no proxy server needed. >> >> So, dont start fast cgi on the same port as the soap server and you >> dont need lighttpd >> if you are trying to connect directly to the soap server. >> >> Ok, thanks. >> >> >> I have a serious doubt: >> My server Ubuntu where gemstone run, is in local network ( i have a router >> for www external request ). >> My SOAP request are from a Mac in the same local network. >> On the Mac i have host file with entry for redirect the request relative to >> the server >> 192.168.1.100 www.myservername.com >> >> Now i think SOAP don't work with this entry. >> When i do SOAP request from MAC: SoapExampleClient new callHelloWorld >> >> i found the error : 'Server does not respond - ''host: www.tobehungry.com >> port: 9001' >> >> What do you think about it ? >> > > > Does it work when you ask it to connect to 192.168.1.100 on port 9001? No, with SoapExampleClient hostAddress: '192.168.1.100' i found the same error : 'Server does not respond - ''host: 192.168.1.100 port: 9001'. It work fine only with: SoapExampleClient hostAddress: 'localhost' Dario |
>>
>> Does it work when you ask it to connect to 192.168.1.100 on port 9001? > > No, with > > SoapExampleClient hostAddress: '192.168.1.100' > > i found the same error : 'Server does not respond - ''host: 192.168.1.100 port: 9001'. > > It work fine only with: SoapExampleClient hostAddress: 'localhost' > Can you telnet from your mac to port 9001 on 192.168.1.100? telnet 192.168.1.100 9001 |
>>> >>> Does it work when you ask it to connect to 192.168.1.100 on port 9001? >> >> No, with >> >> SoapExampleClient hostAddress: '192.168.1.100' >> >> i found the same error : 'Server does not respond - ''host: 192.168.1.100 port: 9001'. >> >> It work fine only with: SoapExampleClient hostAddress: 'localhost' >> > > > Can you telnet from your mac to port 9001 on 192.168.1.100? > > telnet 192.168.1.100 9001 No. romano:~ dtr$ telnet 192.168.1.100 9001 Trying 192.168.1.100... telnet: connect to address 192.168.1.100: Connection refused telnet: Unable to connect to remote host |
On Wed, May 5, 2010 at 7:45 AM, Dario Trussardi
<[hidden email]> wrote: > > >>>> >>>> Does it work when you ask it to connect to 192.168.1.100 on port 9001? >>> >>> No, with >>> >>> SoapExampleClient hostAddress: '192.168.1.100' >>> >>> i found the same error : 'Server does not respond - ''host: 192.168.1.100 port: 9001'. >>> >>> It work fine only with: SoapExampleClient hostAddress: 'localhost' >>> >> >> >> Can you telnet from your mac to port 9001 on 192.168.1.100? >> >> telnet 192.168.1.100 9001 > > > No. > > romano:~ dtr$ telnet 192.168.1.100 9001 > > Trying 192.168.1.100... > telnet: connect to address 192.168.1.100: Connection refused > telnet: Unable to connect to remote host > So your problem is that nothing is running on 192.168.1.100 on port 9001 You need to address that. You are apparently starting the SOAP server incorrectly and need to figure out how to do that. I haven't run a SOAP server w/ smalltalk so you are on your own there. |
Il giorno 05/mag/2010, alle ore 13.52, Sean Allen ha scritto: > On Wed, May 5, 2010 at 7:45 AM, Dario Trussardi > <[hidden email]> wrote: >> >> >>>>> >>>>> Does it work when you ask it to connect to 192.168.1.100 on port 9001? >>>> >>>> No, with >>>> >>>> SoapExampleClient hostAddress: '192.168.1.100' >>>> >>>> i found the same error : 'Server does not respond - ''host: 192.168.1.100 port: 9001'. >>>> >>>> It work fine only with: SoapExampleClient hostAddress: 'localhost' >>>> >>> >>> >>> Can you telnet from your mac to port 9001 on 192.168.1.100? >>> >>> telnet 192.168.1.100 9001 >> >> >> No. >> >> romano:~ dtr$ telnet 192.168.1.100 9001 >> >> Trying 192.168.1.100... >> telnet: connect to address 192.168.1.100: Connection refused >> telnet: Unable to connect to remote host >> > > So your problem is that nothing is running on 192.168.1.100 on port 9001 > > You need to address that. You are apparently starting the SOAP server > incorrectly > and need to figure out how to do that. But in Gemtools open on the stone run on 192.168.1.100 "Soap client " SoapExampleClient hostAddress: 'localhost' SoapSetting defaultSendingPort: 9001 SoapExampleClient port: 9001 The Soap call : SoapExampleClient new callHelloWorld answer right. I think the SOAP server is run correctly. I can have other configuration ( ???? ) problem ? > I haven't run a SOAP server w/ smalltalk > so you are on your own there. Thanks, Dario |
>
> But in Gemtools open on the stone run on 192.168.1.100 > > "Soap client " > SoapExampleClient hostAddress: 'localhost' > SoapSetting defaultSendingPort: 9001 > SoapExampleClient port: 9001 > > The Soap call : SoapExampleClient new callHelloWorld > > answer right. > > I think the SOAP server is run correctly. > > I can have other configuration ( ???? ) problem ? That is a soap client. Not a soap server. |
Sean,
>> >> But in Gemtools open on the stone run on 192.168.1.100 >> >> "Soap client " >> SoapExampleClient hostAddress: 'localhost' >> SoapSetting defaultSendingPort: 9001 >> SoapExampleClient port: 9001 >> >> The Soap call : SoapExampleClient new callHelloWorld >> >> answer right. >> >> I think the SOAP server is run correctly. >> >> I can have other configuration ( ???? ) problem ? > > > That is a soap client. Not a soap server. I think this is a soap client request invokeAndReturn to the localhost soap server. But it work only in gemtools session. The soap server is not running as you write. I'm very sorry, because i don't solve the SOAP server configuration, but thanks for your collaboration and indications in this days. Dario P.S. Anybody have documentation or example to do it ? |
>
> I think this is a soap client request invokeAndReturn to the localhost soap server. correct. which isnt what you want. you want to start a soap server in the server gemtools process, start by looking at how the examples are setup in: SoapExampleServiceImpl |
Sean,
>> >> I think this is a soap client request invokeAndReturn to the localhost soap server. > > correct. which isnt what you want. > > you want to start a soap server in the server gemtools process, start > by looking at how the examples are setup in: > > SoapExampleServiceImpl ok, for example : registerHelloWorld | impl serv | impl := self new. serv := SoapService implementor: impl selector: #helloWorld. serv setSignatureNamed: 'helloWorld'. SoapServiceHandler default add: serv register a service for SOAP Server But when started or before started: SeasideHTTPService startServiceOnPort: 9765 how i can register the service on it ? |
On Wed, May 5, 2010 at 2:37 PM, Dario Trussardi
<[hidden email]> wrote: > Sean, >>> >>> I think this is a soap client request invokeAndReturn to the localhost soap server. >> >> correct. which isnt what you want. >> >> you want to start a soap server in the server gemtools process, start >> by looking at how the examples are setup in: >> >> SoapExampleServiceImpl > > ok, for example : > > registerHelloWorld > | impl serv | > impl := self new. > serv := SoapService implementor: impl selector: #helloWorld. > serv setSignatureNamed: 'helloWorld'. > SoapServiceHandler default add: serv > > register a service for SOAP Server > > > But when started or before started: > > SeasideHTTPService startServiceOnPort: 9765 > > how i can register the service on it ? This: SeasideHTTPService startServiceOnPort: 9765 has nothing to do with SOAP. Seaside has nothing to do with SOAP. Everything you do with SOAP will exist in a totally different realm than anything you do with Seaside. You dont register a SOAP service on anything related to Seaside. |
Sean,
But how i can start SOAP server ? I do reference to GLASS Beta Update: Working with SOAP (Preview)it's dated April 2009 but i don't have other documentations about SOAP into gemstone. |
I have never done a soap server.
You would have to look at the example servers and figure it out from there. AFAIK there is no gemstone specific documentation. SoapExampleServiceImpl seems a good place to start. On Wed, May 5, 2010 at 3:05 PM, Dario Trussardi <[hidden email]> wrote: > Sean, > > On Wed, May 5, 2010 at 2:37 PM, Dario Trussardi > <[hidden email]> wrote: > > Sean, > > I think this is a soap client request invokeAndReturn to the localhost soap > server. > > correct. which isnt what you want. > > you want to start a soap server in the server gemtools process, start > > by looking at how the examples are setup in: > > SoapExampleServiceImpl > > ok, for example : > > registerHelloWorld > > | impl serv | > > impl := self new. > > serv := SoapService implementor: impl selector: #helloWorld. > > serv setSignatureNamed: 'helloWorld'. > > SoapServiceHandler default add: serv > > register a service for SOAP Server > > > But when started or before started: > > SeasideHTTPService startServiceOnPort: 9765 > > how i can register the service on it ? > > This: > > SeasideHTTPService startServiceOnPort: 9765 > > has nothing to do with SOAP. > > Seaside has nothing to do with SOAP. > > Everything you do with SOAP will exist in a totally different realm > than anything you do with Seaside. > > You dont register a SOAP service on anything related to Seaside. > > But how i can start SOAP server ? > I do reference to > > GLASS Beta Update: Working with SOAP (Preview) > > http://gemstonesoup.wordpress.com/2009/04/15/glass-beta-update-working-with-soap-preview > > it's dated April 2009 but i don't have other documentations about SOAP into > gemstone. > > > |
Free forum by Nabble | Edit this page |