Webservice

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

mhuber84
Posts: 15
Joined: Tue Oct 30, 2007 12:06 pm

Webservice

Post by mhuber84 »

Hello everybody,

when I tried to create a new mailing with the newEmailMailing-method and used a template-id the template-id was insert but I only got the emailText and emailHtml-contentelements and not the content-elements from my template. the rest of the mailing (sender-name and email, subject, etc.) is created correct.

This is my webservice-request, everythings seems to be correct here:

Code: Select all

POST /emm_webservice HTTP/1.0
Host: newsletter.target-e.de
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: "newEmailMailing"
Content-Length: 1142

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="urn:agnitas-webservice">
	<SOAP-ENV:Body>
		<impl:newEmailMailing xmlns:impl="urn:agnitas-webservice">
			<in0 xsi:type="SOAP-ENC:string">XXX</in0>
			<in1 xsi:type="SOAP-ENC:string">XXX</in1>
			<in2 xsi:type="SOAP-ENC:string">test mit ws</in2>
			<in3 xsi:type="SOAP-ENC:string">test mit webservice</in3>
			<in4 xsi:type="xsd:int">6</in4>
			<in5 xsi:type="impl:StringArrayType">
				<x xsi:type="xsd:string">0</x>
			</in5>
			<in6 xsi:type="xsd:int">0</in6>
			<in7 xsi:type="xsd:int">36</in7>
			<in8 xsi:type="SOAP-ENC:string">TEST - Newsletter</in8>
			<in9 xsi:type="SOAP-ENC:string">TEST <test@test.de></in9>
			<in10 xsi:type="SOAP-ENC:string">ISO-8859-1</in10>
			<in11 xsi:type="xsd:int">72</in11>
			<in12 xsi:type="xsd:int">2</in12>
		</impl:newEmailMailing>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
mhuber84
Posts: 15
Joined: Tue Oct 30, 2007 12:06 pm

Post by mhuber84 »

i still have a problem with the method newEmailMailing and newEmailMailingWithReply. when i submit a template-id no new mailing is created, but whenn i submit 0 as template-id a new mailing with the four default content elements is created. does anybody know why?

i use openemm 5.5.0.
Post Reply