Consuming a WebService with XML Payload in ARS 8.1

2013-08-05 Thread Nathan Brandt
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
Verein1BM/verein1
Verein2BD/verein2
Deutschland
/XmlAnyPayload

I was expecting
DeutschlandVerein1BM/verein1Verein2BD/verein2Deutschland 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


Re: Consuming a WebService with XML Payload in ARS 8.1

2013-08-05 Thread Longwing, Lj
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 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
 Verein1BM/verein1
 Verein2BD/verein2
 Deutschland
 /XmlAnyPayload
 I was expecting
DeutschlandVerein1BM/verein1Verein2BD/verein2Deutschland this
to be saved in the form field, but it is seen as blank.
 Any clues what might be going wrong?

 ~ Nathan
 _ARSlist: Where the Answers Are and have been for 20 years_

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


Re: Consuming a WebService with XML Payload in ARS 8.1

2013-08-05 Thread Grooms, Frederick W
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.commailto: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
 Verein1BM/verein1
 Verein2BD/verein2
 Deutschland
 /XmlAnyPayload
 I was expecting 
 DeutschlandVerein1BM/verein1Verein2BD/verein2Deutschland 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