Search the web
Sign In
New User? Sign Up
weblogs-com
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Weblogs.com respose error   Message List  
Reply | Forward Message #23 of 108 |
I tried pinging Weblogs through Java code but everytime i get the
following response:

< ? x m l v e r s i o n = " 1 . 0 " ? > < m e t h o d R e s p o n s e
> < p a r a m s > < p a r a m > < v a l u e > < s t r u c t > < m e m
b e r > < n a m e > m e s s a g e < / n a m e > < v a l u e > C a n '
t & # 3 2 ; a c c e p t & # 3 2 ; t h e & # 3 2 ; p i n g & # 3 2 ; b
e c a u s e & # 3 2 ; t h e & # 3 2 ; U R L & # 3 2 ; m u s t & # 3 2
; b e g i n & # 3 2 ; w i t h & # 3 2 ; h t t p : / / . < / v a l u
e > < / m e m b e r > < m e m b e r > < n a m e > f l e r r o r < / n
a m e > < v a l u e > < b o o l e a n > 1 < / b o o l e a n > < / v a
l u e > < / m e m b e r > < / s t r u c t > < / v a l u e > < / p a r
a m > < / p a r a m s > < / m e t h o d R e s p o n s e >

I just can't figure out the error. I'm setting the Content-Type to
'text/xml' and Content-length to 250 and the url of my blog also
contains http://. Please suggest me a solution.







Thu Nov 3, 2005 12:27 pm

andy_kishore
Offline Offline
Send Email Send Email

Forward
Message #23 of 108 |
Expand Messages Author Sort by Date

I tried pinging Weblogs through Java code but everytime i get the following response: < ? x m l v e r s i o n = " 1 . 0 " ? > < m e t h o d R e s p o n s e ......
andy_kishore
Offline Send Email
Nov 3, 2005
12:29 pm

Andy, can you post the exact request you are sending, typically I have seen this error when you send the wrong content length (are you sure the length is 250?)...
Joel Nylund
jnylund
Offline Send Email
Nov 3, 2005
12:41 pm

Hi, This is what my request looks like: // THIS IS WHERE I'M SETTING THE HEADERS con.setRequestProperty("Content-Type","text/xml"); ...
andy_kishore
Offline Send Email
Nov 3, 2005
12:47 pm

Andy, the length of this message is 205, I would put the contents in a StringBuffer or String, then get the length, use this variable in the "Content-lengh"...
Joel Nylund
jnylund
Offline Send Email
Nov 3, 2005
4:01 pm

Hi Joel, Thanks for your reply....i tried what you said but same results again ...Could you send me sum code you might have written which works. That would be...
andy_kishore
Offline Send Email
Nov 4, 2005
5:16 am

sure, here is a working java class that pings weblogs. Joel ... import java.net.*; import java.io.*; import java.util.*; import java.net.URLEncoder; public...
Joel Nylund
jnylund
Offline Send Email
Nov 4, 2005
11:35 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help