This is crazy! Someone must have come across this problem before.

I've simplified my question and used a much simplier method from the web 
service, here goes!
::: Here's my code :::
<cfscript>
webservice      = CreateObject("webservice","dummy?wsdl");
webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
</cfscript>

::: Here's the error :::
 Could not perform web service invocation "doBuildQuoteForItinerary".
Here is the fault returned when invoking the web service operation:<br> 
<pre>AxisFault faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: 
faultString: com.raileurope.web.ngserver.InternalErrorException: 
java.lang.NullPointerException faultActor: faultNode: faultDetail: 
{http://xml.apache.org/axis/}hostname:dummy </pre>

There must be something wrong with how I'm passing in the parameters. Is it the 
null string??!?!?

Any help would be great!

> Hi Paul,
> 
> Thanks for the tips. Unfortunately still no luck.
> I have investigated and messed around some more and I just can't 
> figure this one out. If there are any web services experts out there 
> please show yourself!!!
> 
> Just to prove that the problem doesn't lie with the producer of the 
> web service I've tried consuming a simple web service here's the 
> code:
> -----------------------
> <cfscript>
> ws = CreateObject("webservice","http://www.weather.
> gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl");
> NDFDgenResponse = ws.NDFDgen(JavaCast('double',38.99),
> JavaCast('double',-77.99),JavaCast('string','time-series'),
> DateFormat('2004-01-01','mm/dd/yyyy hh:ss'),DateFormat('2010-06-26',
> 'mm/dd/yyyy hh:ss'));
> </cfscript>
> <cfdump var="#NDFDgenResponse#">
> -----------------------
> ANd here's the error:
> -------------------
> Web service operation "NDFDgen" with parameters {38.99,-77.99,
> time-series,01/01/2004 12:00,06/26/2010 12:00} could not be found.
> -------------------
> 
> I'm certain that the problem here is how I'm passing in parameters. 
> Weather it be a complex type or a date or whatever, I'm doing 
> something wrong!
> 
> Any ideas... anyone??!?!?!?
> Matthew
> 
> >Matthew Chambers wrote:
> >> String[] countriesCovered = null;
> >> Attribute[] attributes = null;
> >
> >it wants arrays of string & Attribute.
> >
> >> countriesCovered.France = JavaCast("string","FR"); 
> >
> >try making countriesCovered an array.
> >
> >countriesCovered=listToArray("FR");
> >
> >and maybe for good measure a java array:
> >
> >countriesCovered=countriesCovered.
toArray();

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244840
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to