Re: [vwnc] XmlRpcClient issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] XmlRpcClient issue

jarober
I use XmlRpcClient a fair bit - can you publish the changes to the public store?

On Nov 10, 2009, at 8:38 PM, Mark Petersen wrote:

We have had to modify two methods in XmlRpcClient to get it to work. I don't know enough about this class to understand why, but am hoping for some expert comment. The application is to authenticate with a Java based server for authentication and company info:

url := 'https://baldy.fishkill.ibm.com/baldyCore/xmlrpc'.
xmlRPC := XmlRpcClient url: url.
args := Array with: [hidden email]' with: 'passw0rd'.
request := xmlRPC methodName: 'LoginService.getBluegroup' arguments: args asOrderedCollection.
httpResponse := request execute


Prior to changing the methods, I was getting a Net.HttpMovedError:

HTTP/1.0 302 Found
Location: http://assist.mediacomcable.com/mediacomassist/dnsassist/main/?domain=https
Server: BigIP
Connection: Keep-Alive
Content-length: 0

By changing the following two methods, I successfully get the right data back from the baldy server.

XmlRpcClient class>>url:

url: aUrlString
"11/10/09 mkp removed addHttpProtocal"
^super post: aUrlString "addHttpProtocol."

XmlRpcClient>>execute

execute
"11/10/09 mkp commented out line and simply return httpResponse"
| httpResponse |
httpResponse := super execute.
"^(XmlRpcMethodResult from: (httpResponse contents readStream)) result"
^httpResponse

This had to be modified in vw7.4 as well, but was hoping 7.7 would fix it. None of the examples in XmlRpcClient>>examples seem to work before or after our changes, so don't have other data points to understand what we may have broke. I don't know a lot about the baldy server; maybe it is doing something non-standard that forces us to modify these methods, but almost seems like a communication exception is occurring even before we even get that far.

Any ideas what may be going on?

Thanks,

Mark K. Petersen
Semiconductor Research and Development Center
IBM Global Engineering Solutions
<23031522.jpg>Home Office: (319) 406-4165 Cell: (845) 235-4360
Internet email: [hidden email]

DMACS Wiki
DMACS Forum




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc