|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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)
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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?
|
|
|
|