﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Newsgator Forums / NewsGator API / Extras  / Java + Soap / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Newsgator Forums</description><link>http://forum.newsgator.com/</link><webMaster>info@newsgator.com</webMaster><lastBuildDate>Tue, 24 Nov 2009 23:51:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Java + Soap</title><link>http://forum.newsgator.com/Topic43783-8-1.aspx</link><description>I'm sure your question has long been answered by now but I was just wondering what was the cause of the problem.  I find there isn't much better way to learn than to learn from mistakes before or problems. I make plenty of my own but I'm always on the look out for tough situations like this as well.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;-Jim&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;[url=http://www.howtodealwithdepression.org]How to Deal with Depression[/url]</description><pubDate>Thu, 21 May 2009 01:38:54 GMT</pubDate><dc:creator>jimkoehler</dc:creator></item><item><title>RE: Java + Soap</title><link>http://forum.newsgator.com/Topic43783-8-1.aspx</link><description>Swanz,&lt;/P&gt;&lt;P&gt;I have someone looking at the syntax of your code, but in the mean time, can you email &lt;A href="mailto:support@newsgator.com"&gt;support@newsgator.com&lt;/A&gt; and include:   your username, a reference to this thread, and simple "forward to rob" in the message.  &lt;/P&gt;&lt;P&gt;I will double check that your APIToken is setup correctly.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob</description><pubDate>Fri, 31 Oct 2008 10:57:01 GMT</pubDate><dc:creator>Rob Ponti</dc:creator></item><item><title>Java + Soap</title><link>http://forum.newsgator.com/Topic43783-8-1.aspx</link><description>Hello.&lt;br&gt;&lt;br&gt;I'm very new to webservices programming and i've just started to play with your SOAP api.&lt;br&gt;&lt;br&gt;I found on this forum the following simple piece of code for retrieving the locations list of a user:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;LocationWebServiceLocator locator = new LocationWebServiceLocator();&lt;br&gt;try{&lt;br&gt;	&lt;br&gt;LocationWebServiceSoapStub service = (LocationWebServiceSoapStub) locator.getLocationWebServiceSoap();&lt;br&gt;service.setUsername("***");&lt;br&gt;service.setPassword("***");&lt;br&gt;SOAPHeaderElement NGToken = new SOAPHeaderElement(new PrefixedQName("http://services.newsgator.com/svc/Location.asmx", "NGAPIToken", ""));&lt;br&gt;MessageElement Token = new MessageElement("","Token");&lt;br&gt;			&lt;br&gt;try {&lt;br&gt;	Token.setObjectValue("****");&lt;br&gt;	NGToken.addChild(Token);&lt;br&gt;}&lt;br&gt;catch (java.lang.Throwable t) &lt;br&gt;{&lt;br&gt;	throw new org.apache.axis.AxisFault ("Caught exception, while adding Token header.", t);&lt;br&gt;}&lt;br&gt;&lt;br&gt;service.setHeader(NGToken);&lt;br&gt;&lt;br&gt;Location[] myLocs = service.getLocations();&lt;br&gt;for (int i=0; i&lt;myLocs.length; i++)&lt;br&gt;	{&lt;br&gt;		System.out.println((String)myLocs[i].getName() + ": " + (int)myLocs[i].getId());&lt;br&gt;	}&lt;br&gt;			&lt;br&gt;}&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;Running this i get an error regarding the api product key:&lt;br&gt;[code]&lt;br&gt;AxisFault&lt;br&gt; faultCode: {http://www.w3.org/2003/05/soap-envelope}Sender&lt;br&gt; faultSubcode: &lt;br&gt; faultString: Value cannot be null.&lt;br&gt;Parameter name: API Product Key Not Specified&lt;br&gt; faultActor: &lt;br&gt; faultNode: &lt;br&gt; faultDetail: &lt;br&gt;	{http://xml.apache.org/axis/}stackTrace:Value cannot be null.&lt;br&gt;Parameter name: API Product Key Not Specified&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Does anybody have an idea of what's wrong??&lt;br&gt;&lt;br&gt;Thanks.</description><pubDate>Sun, 26 Oct 2008 07:09:06 GMT</pubDate><dc:creator>swanz</dc:creator></item></channel></rss>