Chaari Tarak | 5 Jan 15:34 2005
Picon
Picon

WSDL for XMLRPC services


Hi,
I have two questions on XMLRPC implementation:
1) Does anyone know how to use WSDL (or another language) to describe 
XMLRPC web services?
2) In the server-side java implementation, Can I add other services 
(Handlers) to an XMLRPC WebServer on runtime?

Thanks for your help in advance.

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> To unsubscribe from this group, send an email to:
    xml-rpc-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

KALYAN TRIPURAMALLU | 5 Jan 17:24 2005
Picon

Re: WSDL for XMLRPC services


Hi Chaari,
             I have used XMLRPC using .Net API. I believe even in Java similar implementation is possible. For more
information pls check http://www.xml-rpc.net/faq/xmlrpcnetfaq.html

thanks
Kalyan

Chaari Tarak <tarak.chaari <at> insa-lyon.fr> wrote:

Hi,
I have two questions on XMLRPC implementation:
1) Does anyone know how to use WSDL (or another language) to describe 
XMLRPC web services?
2) In the server-side java implementation, Can I add other services 
(Handlers) to an XMLRPC WebServer on runtime?

Thanks for your help in advance.

Yahoo! Groups Links

		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo! – What will yours do?

[Non-text portions of this message have been removed]

 
Yahoo! Groups Links
(Continue reading)

Paul Libbrecht | 6 Jan 16:25 2005

Re: WSDL for XMLRPC services


Le 5 janv. 05, à 15:34, Chaari Tarak a écrit :
> I have two questions on XMLRPC implementation:
> 1) Does anyone know how to use WSDL (or another language) to describe
> XMLRPC web services?

I don't think WSDL can provide this (very sadly).
But there are some other IDL-type efforts for XML-RPC.
Search at XML-RPC.org I think.

Also note that I know none (be it with SOAP or XML-RPC or xxx) that 
does IDL and human documentation!

> 2) In the server-side java implementation, Can I add other services
> (Handlers) to an XMLRPC WebServer on runtime?

Do you mean the Apache XML-RPC implementation ?
Yes,
WebServer ws = new Webserver(portNum);
ws.addHandler('handler1", object1);
ws.addHandler('handler2", object2);

invoke doSomething on object1 using method-name: handler1.doSomething 
and on object2 using method-name handler2.doSomething.
I always thought providing a different path would have been more 
elegant but that was never realized, I think.

Note that my considerations ma appear somewhat old...

paul
(Continue reading)

Gaetano Giunta | 7 Jan 17:34 2005
Picon

R: R: [xml-rpc] Fatal error: Cannot redeclare xmlrpc_decode

I've taken a look at the CVS code, and it looks fine (note: I've not tried to use it, though).

I would prefer to have at least one function name that is availale for usage regardless wheter the EPI
extension is loaded or not (so the wary coder can program against that and deploy anywhere).
php_xmlrpc_encode / decode is a recommended candidate. If code bloat is not a problem you could simply
strip the if around the definition of these functions.

Bye
Gaetano

> -----Messaggio originale-----
> Da: Miles Lott [mailto:milos <at> groupwhere.org]
> Inviato: lunedì 27 dicembre 2004 15:20
> A: xml-rpc <at> yahoogroups.com
> Oggetto: Re: R: [xml-rpc] Fatal error: Cannot redeclare xmlrpc_decode
> 
> 
> 
> There is now a workaround in CVS.  Please test this prior to 
> installing 
> over your current version (save a copy).  It was tested on my install.
> 
> Gaetano Giunta wrote:
> > 
> > The PHP-bundeled xmlrpc extension comes with a function 
> named xmlrpc_dedode (as well as encode).
> > 
> > The phpxmlrpc lib uses the same name for its functions.
> > 
> > Either you:
(Continue reading)

ted holden | 7 Jan 21:46 2005
Picon
Picon

Notinited err finding class for xmlrpc exception


I have the basic application I need working well enough inside of 
Eclipse, but it fails to run in a browser, firefox or IE either one.  I 
get an applet not inited message and looking at the Java concole I see 
an error message saying that the class for xmlrpc exceptions is not 
being found.  Far as I know, I have copies of the two .jar files for 
xmlrpc in places where Java should be able to find them.  I'd appreciate 
any info anybody might have.

Ted

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> To unsubscribe from this group, send an email to:
    xml-rpc-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Miles Lott | 8 Jan 08:16 2005

Re: R: R: Fatal error: Cannot redeclare xmlrpc_decode


Renaming it altogether is good, and that is what was done in 
(?)groupware.  I was trying to consider backwards-compatibility for 
people who have been using the library for a few years.  Maybe upon the 
next release it could be changed to only use the renamed/non-conflicting 
functions.

Gaetano Giunta wrote:
> 
> I've taken a look at the CVS code, and it looks fine (note: I've not tried to use it, though).
> 
> I would prefer to have at least one function name that is availale for usage regardless wheter the EPI
extension is loaded or not (so the wary coder can program against that and deploy anywhere).
php_xmlrpc_encode / decode is a recommended candidate. If code bloat is not a problem you could simply
strip the if around the definition of these functions.
> 
> Bye
> Gaetano
> 
> 
>>-----Messaggio originale-----
>>Da: Miles Lott [mailto:milos <at> groupwhere.org]
>>Inviato: lunedì 27 dicembre 2004 15:20
>>A: xml-rpc <at> yahoogroups.com
>>Oggetto: Re: R: [xml-rpc] Fatal error: Cannot redeclare xmlrpc_decode
>>
>>
>>
>>There is now a workaround in CVS.  Please test this prior to 
>>installing 
(Continue reading)

dscplcomau | 9 Jan 07:23 2005
Picon

xmlrpc.usefulinc.com demo server returns duplicate content lengths.


FWIW, just noticed that the demo XML-RPC server at:

  http://xmlrpc.usefulinc.com/demo/server.php

is returning multiple content length headers. Ie.,

HTTP/1.0 200 OK
Date: Sun, 09 Jan 2005 06:10:50 GMT
Server: Apache/2.0.50 (Ubuntu) DAV/2 SVN/1.0.6 PHP/4.3.8
mod_ssl/2.0.50 OpenSSL/
0.9.7d
X-Powered-By: PHP/4.3.8
Vary: Accept-Encoding,User-Agent
Content-Length: 1974
Connection: close
Content-Type: text/xml
Content-length: 1974

One has "Length" and the other "length". Problem is that HTTP client
object
in recent versions of Python ignores case and joins the values of
these two
headers together to yield "1974, 1974". This didn't happen back in
Python 2.1.

The only reason that the "xmlrpclib" module in Python works is that
it ignores
the content length header anyway. If a client expects the content
length
(Continue reading)

Miles Lott | 9 Jan 16:25 2005

Re: xmlrpc.usefulinc.com demo server returns duplicate content lengths.


Not sure what's wrong there.  But, the server works at 
http://milosch.dyndns.org/xmlrpc/server.php.  This is the current code 
from CVS.  I don't see anywhere in the server code that uses 
"Content-Length", only "Content-length".

dscplcomau wrote:
> 
> 
> FWIW, just noticed that the demo XML-RPC server at:
> 
>   http://xmlrpc.usefulinc.com/demo/server.php
> 
> is returning multiple content length headers. Ie.,
> 
> HTTP/1.0 200 OK
> Date: Sun, 09 Jan 2005 06:10:50 GMT
> Server: Apache/2.0.50 (Ubuntu) DAV/2 SVN/1.0.6 PHP/4.3.8
> mod_ssl/2.0.50 OpenSSL/
> 0.9.7d
> X-Powered-By: PHP/4.3.8
> Vary: Accept-Encoding,User-Agent
> Content-Length: 1974
> Connection: close
> Content-Type: text/xml
> Content-length: 1974
> 
> One has "Length" and the other "length". Problem is that HTTP client
> object
> in recent versions of Python ignores case and joins the values of
(Continue reading)

Gaetano Giunta | 10 Jan 09:43 2005
Picon

R: xmlrpc.usefulinc.com demo server returns duplicate content lengths.


AFAIK: the HTTP rfc (2616) does mandate that the same header appear only once in a request, unless the
specific header accepts  a csv list of values (which is not the case for content-length). AND header field
names are case-insensitive.

The spec does not mandate how to deal with duplicate headers, so most implementations ususally pick either
the first or the last header received as the meaningful one and ignore the rest.

To sum it up:
- PHP is wrong in sending the content-length twice. And yes, it is the combination php-added-length +
apache-added-length that gives trouble
- Python is wrong too in just joining together the two values. Old behaviour seems better

The funny thing is in this case the two pieces of informations are identical. An old and well known bug with
the php xmlrpc extension had the two values differing by 5 bytes, due Apache calculating length after
chunked encoding and PHP not knowing it

PS To Milosch:

I'd suggest patching the PHP lib to
- Use "Content-Length" instead of "Content-length" (since this seems to be what Apache use and the exact
casing used in the spec)
- Output only one http header per call to Header(), since there seems to be consensus among PHP developers
that sending more headers separated by newline chars is actually wrong and deprecated

Ciao
Gaetano

> -----Messaggio originale-----
> Da: Miles Lott [mailto:milos <at> groupwhere.org]
(Continue reading)

ted holden | 11 Jan 01:25 2005
Picon
Picon

applet notinited in browser


I've got an application which works fine in the eclipse IDE but bombs 
when I try to export it and run it in a browser.  I get an app notinited 
message and then, examining the java console:

java.lang.NoClassDefFoundError: org/apache/xmlrpc/applet/XmlRpcException
    at iib1gui.getXmlrpctest(iib1gui.java:447)
    at iib1gui.getJToolBar(iib1gui.java:193)
    at iib1gui.getIimainsplitpane(iib1gui.java:177)
    at iib1gui.init(iib1gui.java:98)
    at iib1gui.<init>(iib1gui.java:90)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

I'd appreciate any info or suggestions anybody might have.

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
(Continue reading)


Gmane