Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Create nms:group via SOAP

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Community Advisor

Oh sorry,

it should be <group and not <nmsGroup

 

 

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor
Hello thanks.. i realized after a while of posting this question and could not remove it .. i messed up the nmsGroup part.. it should be group.. thanks