AnsweredAssumed Answered

Catalog saveRequestForm Method

Question asked by paulofreire75 on Sep 28, 2018
Latest reply on Oct 3, 2018 by paulofreire75

I´m using the webservice method saveRequestForm to fill in request forms via ITPAM process.

I have some form fields that are dropdown and checking database for a form filled in the catalog interface, checking the dropdown field value I see something like this:

Acesso. Acesso VPN| Acesso VPN

Where the first part is the hidden value of dropdown ad the part after pipe(|) is the visible value in form after submission.

 In webservice I´m doing a call like this:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com">
<soapenv:Header/>
<soapenv:Body>
<ser:saveRequestForm soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sessionID xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">beed30b8-c350-4372-a617-3be641d9879a</sessionID>
<subscriptionDetailID xsi:type="xsd:int">33272</subscriptionDetailID>
<formValuesData xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">cbCategoriaN2:Acesso. Acesso VPN| Acesso VPN</formValuesData>
</ser:saveRequestForm>
</soapenv:Body>
</soapenv:Envelope>

But my response in this case is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>Acesso VPN is not a form data</faultstring>
<detail>
<ns1:exceptionName xmlns:ns1="http://xml.apache.org/axis/">com.ca.usm.soap.axisInterfaces.ItemNotFoundException</ns1:exceptionName>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">BAYSRVHSM02</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

 

The webservice is treating the pipe(|) as a form field separator.

Someone know how can I save the dropdown form in this case?

Outcomes