Forum

This content is now out of date.

Visit Our Community

TESTIMPORTCONTENT web service syntax

Hi - I'm trying to get the TESTIMPORTCONTENT web service to execute through SoapUI. I have several of the other web services working in this manner, but the syntax for this function is failing. I've tried several combinations of elements based on what's returned for GETCONTENT. For the data, I'm manually exporting a datasource through the web application and then running the xml through a base64 encoder. I get various errors depending on the elements passed. Would you be able to review the basic structure of my web service call?

[code]
>




TESTIMPORTCONTENT
myuserid
1
mypassword
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IS0tIFllbGxvd2ZpbiBleHBv
cnQgZmlsZSAtLT48IS0tIEdlbmVyYXRlZCBhdCAyMDE1LTA0LTIzIDE2OjExIEVEVCAoLTA0MDAp
IC0tPjxkYXRhPgogIDxpbmZvPgogICAgPGV4cG9ydHZlcnNpb24+NDwvZXhwb3J0dmVyc2lvbj4K
...
UGFyYW1ldGVyPgogICAgPC9zb3VyY2VQYXJhbWV0ZXJMaXN0PgogIDwvc291cmNlPgo8L2RhdGE+
Cg==




[/code]

This example returns the following:

[code]


soapenv:Server.userException
org.xml.sax.SAXException: Found character data inside an array element while deserializing

reportdev.myurl.com



[/code]

Thanks,
Mike
Sorry - posted to wrong thread.
Hi - I've got a workable solution. Since the tag is specified as soapenc_arrayType="xsd:string[]", I needed to wrap the string in another element. In this case, I used . The tag could be anything, , , etc.

[code]

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IS0tIFllbGxvd2ZpbiBleHBv
cnQgZmlsZSAtLT48IS0tIEdlbmVyYXRlZCBhdCAyMDE1LTA0LTI3IDEwOjIzIEVEV...


[/code]