I am working with a webservice and the issues I am having with it are not what 
you would call typical.

When I make the call to the webservice I get the following error.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Invalid element in 
IWS_pkg.GetVersionInfoResponseType - Version
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
Invalid element in IWS_pkg.GetVersionInfoResponseType - Version
        at 
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
        at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2448)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.c... ''

The method on the webservice is fairly simple. It simply returns a soap 
response.

This is the soap request that is generated (using eclipse wtp)
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:q0="urn:IWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- <soapenv:Body>
  <q0:GetVersionInfo /> 
  </soapenv:Body>
  </soapenv:Envelope>

This is the soap response that is returned (again using eclipse wtp)
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- <SOAP-ENV:Body>
- <GetVersionInfoResponse xmlns="urn:IWS">
  <Version>Intelius WebServices v1.0.1</Version> 
  </GetVersionInfoResponse>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

Here is the coldfusion code I am working with:
<cfset ws = 
createObject("webservice","https://api.intelius.com/iws-all.php?wsdl";)>
<cfset test = ws.GetVersionInfo()>
<cfdump var="#test#"/> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325297
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to