Create nms:group via SOAP

MarcelSzimonisz

MVP

29-07-2020

Hello All,

I seem not to successfully create a group via SOAP

 

Soap payload

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:Write>
         <urn:sessiontoken>some_token</urn:sessiontoken>
         <urn:domDoc>
            <nmsGroup _key="@name" label="label" name="internalName" folder-id="194554268" type="1" schema="nms:recipient" xtkschema="nms:group">
            	<desc><![CDATA[<html><body><h2>hello world</h2></body></html>]]></desc>
            </nmsGroup>
         </urn:domDoc>
      </urn:Write>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

 

The response is successful but the list cannot be nowhere to be found

 

 

 

<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:wpp:default" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <WriteResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns="urn:wpp:default"/>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

 

 

 

 

Any help would be appreciated 🙂

Accepted Solutions (1)

Accepted Solutions (1)

wodnicki

MVP

30-07-2020

Hi,

 

Response means the call itself succeeded, not the action in the call.

Here, change <nmsGroup/> to <group/>, add _operation="insert" and possibly a <source/> node:

<source format="text" upload="true"><dataSourceConfig codepage="1252" colType="0" ignoreConfigCheck="false" textQualifier="none" timezone="_inherit_" useCR="false" useLF="false"/></source>

Also, try SOAPAction: xtk:persist#Write.

 

Thanks,

-Jon