Create nms:group via SOAP

Avatar

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile
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)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
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

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile

Avatar
Springboard
MVP
MarcelSzimonisz
MVP

Likes

102 likes

Total Posts

227 posts

Correct reply

56 solutions
Top badges earned
Springboard
Establish
Contributor
Give Back 25
Give Back 10
View profile
MarcelSzimonisz
MVP

29-07-2020

Oh sorry,

it should be <group and not <nmsGroup