When passing XML inside a payload it is always recommended to enclose it inside 
a CDATA structure.  ARS works with fully typed XML and I believe that the 
documentation lists that the "any" construct is not supported.

Fred


From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Longwing, Lj
Sent: Monday, August 05, 2013 12:05 PM
To: arslist@ARSLIST.ORG
Subject: Re: Consuming a WebService with XML Payload in ARS 8.1

** Nathan,
Remedy it's considering the returned value to be an array, so what you need to 
do is setup a child form mapping to create a record per child

On Monday, August 5, 2013, Nathan Brandt 
<nathanrbra...@gmail.com<mailto:nathanrbra...@gmail.com>> wrote:
> **
> Hello,
> I am trying to consume an external web-service from ARS 8.1
> I am showing only part of MessageType which is returned from the web-service. 
> This tag can either contain string or XML payload.
> <xs:complexType name="MessageType">
>   <xs:sequence>
>     <xs:element name="XmlAnyPayload" minOccurs="0">
>     <xs:complexType>
>       <xs:sequence>
>       <xs:any namespace="##any"/>
>       </xs:sequence>
>     </xs:complexType>
>     </xs:element>
>     <xs:element name="StringPayload" minOccurs="0">
>     <xs:complexType>
>       <xs:simpleContent>
>       <xs:extension base="xs:string"/>
>       </xs:simpleContent>
>     </xs:complexType>
>     </xs:element>
>   </xs:sequence>
> </xs:complexType>
> When WS returns String paylaod, returned value of "StringPayload" is 
> correctly read in form field, but
> when WS returns XmlAnyPayload returned value of "XmlAnyPayload" is not 
> getting read in form field. This field is remaining blank and there are no 
> errors to be seen anywhere in the logs.
> Returned value looks something like
> <XmlAnyPayload>
>     <Deutschland>
>         <Verein1>BM</verein1>
>         <Verein2>BD</verein2>
>     <Deutschland>
> </XmlAnyPayload>
> I was expecting 
> "<Deutschland><Verein1>BM</verein1><Verein2>BD</verein2><Deutschland>" this 
> to be saved in the form field, but it is seen as blank.
> Any clues what might be going wrong?
>
> ~ Nathan



_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to