I am trying to connect to a webservice that has layered/nested complex
parameters and am getting the dreaded web service not found error. When I
comment out a required parameter the webservice tells me that "Non nillable
element is null" so I do know that the service is returning something back..
My code looks as follows
<cfset Hope=StructNew()>
<cfset Auth=StructNew()>
<cfset Clientstruct=StructNew()>
<cfset Package=StructNew()>
<cfscript>
StructInsert(Auth,"UserCredential","xxxxx");
StructInsert(Clientstruct,"AccountNumber","45345");
StructInsert(Clientstruct,"MeterNumber","1234");
StructInsert(Package,"Value","45678");
StructInsert(Package,"Type","Tracking_Number_Or_Doortag");
StructInsert(Hope,"AuthenticationDetail",Auth);
StructInsert(Hope,"ClientDetail",Clientstruct);
</cfscript>
<cfinvoke
Method="Track"
returnvariable="any"
webservice="website">
<cfinvokeargument name="Trackrequest" value="#Hope#">
</cfinvoke>
>From other posts I see that i may have to "omit" other WSDL arguements where
>the minOccurs=0 however they cannot be simply accessed by the CFINVOKEARGUMENT
>since they are nested complex types. I did try setting the values for these
>other arguments to NULL in the structure but I still got the same error
>message where the service could not be found..
How can I get past this error? How can I OMIT these other nested complex types
if this is the problem?
Thank you
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287906
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4