Hi,

I am trying to call a 'resetPassword' method, a resetPasswordRequest message 
contains an element of UserReset. Inside UserReset there is an element "userId" 
of type "UserIdType" it is required, but NULLABLE.

The types defined in the WSDL are:
<complexType name="UserIdType">
  <simpleContent>
  <extension base="xsd:string" /> 
  </simpleContent>
</complexType>
<complexType name="UserReset">
  <sequence>
  <element name="userId" nillable="true" type="impl:UserIdType" /> 
  </sequence>
</complexType>

My latest attempt in CF looks like:
<cfset UserReset = structNew()>

        <cfset UserIdType = structNew()>
        <cfset UserIdType.value = "cpaez">
        <cfset null = StructInsert(UserReset, "UserIdType", #UserIdType#)>

<!--- Connect to DEV WS test --->
<cfinvoke 
 webservice="DEVuserAdministration"
 method="resetPassword"
 returnvariable="aStatusResponse">
        <cfinvokeargument name="resetPasswordRequest" value="#UserReset#" />
</cfinvoke>


If I pass an empty struct as the value in the cfinvokeargument my TCP monitor 
catches this error:
"<statusMessage>Internal Server Error:[Incident# 4038-7444] Error Validating 
Request Schema:Schema Validation Error: cvc-complex-type.2.4.a: Invalid content 
was found starting with element &apos;userId&apos;. One of 
&apos;{&quot;urn:com.macrovison:flexnet/platform/v1_5&quot;:userId}&apos; is 
expected.</statusMessage>"


Does anyone know how to consume a WS with this kind of complex type, nillable 
variable?
Any help would be greatly appreciated!

Thanks,
Carlos

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272085
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