Sorry to post and run, I didn't mean to submit. After running that with valid values, try <cfdump var="#myReturn#"> to see what type of return you get, and voila.
Main Topics
Browse All TopicsHi,
I am trying to use this webservice:
http://ec.europa.eu/taxati
After a quick glance at the wsdl, I thought this would do it:
<cfinvoke webservice="http://ec.euro
method="checkVat"
returnvariable="wsresult"
timeout="20">
<cfinvokeargument name="countryCode" value="GB">
<cfinvokeargument name="vatNumber" value="12345">
</cfinvoke>
No joy, the parameters arent right, so I tried passing a struct of the values, still no joy.
Can anyone help with reading the webservice and determining what parameters it wants?
BTW, I can only get this far using my CF 7 install, my CF 6.1 install doesnt even want to generate a stub object for the wsdl.
Thanks,
H
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hehe, dreamweaver wrote that for you right? ;)
Heres the result:
Could not perform web service invocation "checkVat".
Here is the fault returned when invoking the web service operation:
AxisFault
faultCode: {http://schemas.xmlsoap.or
faultSubcode:
faultString: java.lang.NullPointerExcep
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axi
at org.apache.axis.message.SO
at org.apache.axis.message.SO
at org.apache.axis.encoding.D
at org.apache.xerces.parsers.
at org.apache.xerces.impl.XML
at org.apache.xerces.impl.XML
at org.apache.xerces.impl.XML
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
I ended up going for a java port to cfscript solution:
function new(classname){
return createobject("java",argume
}
mf = new("javax.xml.soap.Messag
smsg = mf.createMessage();
sp = smsg.getSOAPPart();
se = sp.getEnvelope();
body = se.getBody();
//Add a namespace declaration to the envelope
se.addNamespaceDeclaration
bodyName = se.createName("checkVat", "nsg", "http://ec.europa.eu/taxat
bodyElement = body.addBodyElement(bodyNa
childName = se.createName("vatNumber")
stateNm = bodyElement.addChildElemen
stateNm.addTextNode("1234"
childName = se.createName("countryCode
stateNm = bodyElement.addChildElemen
stateNm.addTextNode("GB");
//Save the message
smsg.saveChanges();
conn = new("javax.xml.soap.SOAPCo
response = conn.call(smsg, "http://ec.europa.eu/taxat
responseXML = xmlparse(response.getSOAPP
Business Accounts
Answer for Membership
by: usachrisk1983Posted on 2006-07-20 at 06:20:17ID: 17145885
<cfinvoke webservice="http://ec.euro pa.eu/taxa tion_custo ms/vies/ap i/checkVat Port? wsdl" method="checkVat" returnvariable="myReturn">
<cfinvokeargument name="countryCode" value="001"/>
<cfinvokeargument name="vatNumber" value="enter_value_here"/>
<cfinvokeargument name="requestDate" value="enter_value_here"/>
<cfinvokeargument name="valid" value="enter_value_here"/>
<cfinvokeargument name="name" value="enter_value_here"/>
<cfinvokeargument name="address" value="enter_value_here"/>
</cfinvoke>