Create nms:group via SOAP | Community
Skip to main content
Marcel_Szimonisz
Community Advisor
Community Advisor
July 29, 2020
Solved

Create nms:group via SOAP

  • July 29, 2020
  • 2 replies
  • 1893 views

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 🙂

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

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

2 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
July 29, 2020

Oh sorry,

it should be <group and not <nmsGroup

 

 

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
July 30, 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

Marcel_Szimonisz
Community Advisor
Community Advisor
July 31, 2020
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