What does your WSDL look like? I would imagine that Flex is enforcing
the rules defined in it, and XMLSpy isn't. Does the attributeNames
element have a minOccurs of 0? I think it needs to in order for Flex
to allow you to omit that element.

Ben

PS - I could be completely wrong about all of that but its a starting
point :)


--- In [email protected], "Viju James" <[EMAIL PROTECTED]> wrote:
>
> I want to call a webservice through Flex (2.0.1 HotFix3) without 
> passing one of the parameters. I can do this using other tools like 
> Altova XMLSpy and it works fine. But, Flex complains saying "Required 
> parameter 'attributeNames' not found in input arguments."
> If I add <attributeNames></attributeNames>, then Flex is happy, but 
> the web service doesn't return anything since it will return all 
> attributeNames only if that parameter is not passed when it is 
> called. Is there a way to do this (i.e., to not pass this) in Flex?
> 
> Here is the operation that I use in Flex.
> 
> <mx:operation name="GetAttributes">
>       <mx:request>
>               <loginInfo>
>                       <userId>Demo</userId>
>               </loginInfo>
>               <classNameId>
>                       <namespaceName>CORE</namespaceName>
>                       <className>ComputerSystem</className>
>               </classNameId>
>               <attributeNames></attributeNames>
>       </mx:request>
> </mx:operation>
> 
> Basically, I want to omit <attributeNames> in the request.
> 
> here is the xml request that I send through Altova XMLSpy and there 
> it works fine.
> 
> <SOAP-ENV:Body>
>       <m:GetAttributes xmlns:m="http://abc.mycompany.com";>
>               <loginInfo>
>                       <userId>Demo</userId>
>               </loginInfo>
>               <classNameId>
>                       <namespaceName>CORE</namespaceName>
>                       <className>ComputerSystem</className>
>               </classNameId>
>       </m:GetAttributes>
> </SOAP-ENV:Body>
>


Reply via email to