You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Prasad kadbane <pr...@gmail.com> on 2006/01/31 14:56:25 UTC
xml rpc over java servlet not working
Hello,
I am implementing xmlrpc with java servlet program as xmlrpc server=
.
xmlrpc client will be java standalon program.
I have created servlet named HelloWorldExample which handles xml rpc
requests and I have coded client program as standalone program and created
xmlrpcclient object as below:
XmlRpcClient client =3D new XmlRpcClient( "
http://192.168.1.243:8080/examples/servlet/HelloWorldExample");
after executing client program I am getting following exception:
Fatal error parsing XML: org.xml.sax.SAXParseException: invalid attribute
value
can you please tell me why I am getting this error..
Can anybody give me any documentation for xml rpc implementation in java
servlet..
Thanks in advance
On 1/31/06, rjoshi@dataarmor.net <rj...@dataarmor.net> wrote:
>
> thanks! yeah its userid:passwd@host , i was just replying.
>
> so basically what u mean is .... an xmlrpc server (say php) running over
> the braindead MS IIS ;) behind http auth, should run just fine with this
> method? ... hmm... i'l check this myself too. thanks a lot!
>
>
> Tino Wildenhain wrote:
>
> rjoshi@dataarmor.net schrieb:
>
> Using the way --- http:userid@password --- wont be cross platform I
> suppose (its classified as a security flaw) All new browsers and XP with SP2
> has been patched NOT to allow usage this way.
> http://support.microsoft.com/default.aspx?scid=kb;en-us;834489
>
>
> Actually its http://username:password@host/path/
>
> And its not a security flaw per se if not used in a buggy and brain
> dead application like M$-internetexplorer :-)
>
> Useragents are supposed to not send these strings literally over
> the net - or in case of a webbbrowser dont construct relative
> URLs from it or expose it to Javascript DOM.
>
> XMLRPC does not use sublinks or relative paths so this is no
> issue at all.
>
> Kind regards
> Tino
>
>
> --
> Thanks,
>
> Rahul Joshi
> Data Armor
>
>
--
Prasad Kadbane.
Software Engineer
Vyom Labs Pvt. Ltd.
Pune (Maharastra).
Re: xml rpc over java servlet not working
Posted by rj...@dataarmor.net.
Hi,
Can you post sample code for client and xmlrpc server (servlet) along
with the parameters that you are trying to send.
Prasad kadbane wrote:
> Hello,
>
> I am implementing xmlrpc with java servlet program as xmlrpc
> server=
> .
> xmlrpc client will be java standalon program.
>
> I have created servlet named HelloWorldExample which handles xml rpc
> requests and I have coded client program as standalone program and created
> xmlrpcclient object as below:
>
> XmlRpcClient client =3D new XmlRpcClient( "
> http://192.168.1.243:8080/examples/servlet/HelloWorldExample ");
>
> after executing client program I am getting following exception:
>
> Fatal error parsing XML: org.xml.sax.SAXParseException: invalid attribute
> value
>
> can you please tell me why I am getting this error..
>
> Can anybody give me any documentation for xml rpc implementation in java
> servlet..
>
> Thanks in advance
>
>>
>>
>
>
>
>
> --
> Prasad Kadbane.
> Software Engineer
> Vyom Labs Pvt. Ltd.
> Pune (Maharastra).
--
Thanks,
Rahul Joshi
Data Armor