Adventures with Axis and NewsGator API

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Adventures with Axis and NewsGator API Expand / Collapse
Author
Message
Posted 2/14/2006 9:48:03 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/14/2006 9:38:00 AM
Posts: 1, Visits: 1
Seems like most people here have been using .Net to access the NG API. I am looking to create a java-based application, and thought I would post my findings here so someone else won't struggle like I have.

So far, I have a standalone java application that reads my list of locations - I know, baby steps...

I used Axis' wsdl2java to create the web service client classes, then wrote a simple class that in turn calls them.



  Post Attachments 
NewsGatorClient.txt (1,293 views, 1.27 KB)
Post #13162
Posted 3/31/2006 1:54:27 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 4/11/2006 7:02:00 AM
Posts: 2, Visits: 1
I'm going down the Axis road as well, and I've run into a problem: using WSDL2Java, WSDL2Java complains about the WSDL files for subscriptions and posts. Specifically, I get the error "type RSS is referenced but not defined." Can anyone chime in with a suggestion about how to fix this problem?

Thanks,
J.
Post #15969
Posted 3/31/2006 2:31:16 PM
Rockstar

Rockstar

Group: Forum Members
Last Login: 3/27/2007 8:15:46 AM
Posts: 173, Visits: 19
What version of Axis are you using? I've tried generating a proxy for Subscription.asmx using Axis 1.3 and it's generating a proxy OK.
Post #15974
Posted 4/2/2006 10:17:29 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 4/11/2006 7:02:00 AM
Posts: 2, Visits: 1
Thanks for the reply Gordon. I am using Axis 1.3, and I was mistaken in my earlier post - using WSDL2Java, I can generate proxies for Locations, Feeds, and Subscriptions. However, I get the following errors when I try to generate proxies for Feeds and Posts:

java.io.IOException: Type rss is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
Post #16029
Posted 4/4/2006 4:27:07 PM
Rockstar

Rockstar

Group: Forum Members
Last Login: 3/27/2007 8:15:46 AM
Posts: 173, Visits: 19
Well, it looks like Axis doesn't like the lack of a targetNamespace declaration on one of the included schemas (IIRC, that's legal, a processor is supposed to assume there's no target NS). However, if I modify the WSDL to include that declaration, then Axis won't generate code for the rss element. Probably the easiest way around this is to modify the WSDL to use xsd:any instead, I'll work on creating and publishing a modified WSDL for that.
Post #16154
Posted 4/10/2006 11:32:55 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 12/12/2007 5:25:29 PM
Posts: 1, Visits: 2

Wow this is good stuff in this forum. I can learn just as much in this newsgator forum then going to school for years of college Dealing half the stuff would blow ur mind...great forum to keep up to date when learning about using WSDL2Java, WSDL2Java

 

rob



Goji Juice

Xango Juice





Post #16468
Posted 7/29/2006 8:45:54 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 7/30/2006 9:33:52 AM
Posts: 1, Visits: 2
The Folders WSDL suffers from the same problem with Axis 1.4.  Could that one be fixed as well?
Post #20042
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 8:43pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 9 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2008  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner