MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - SOAP problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOAP problem

 Post Reply Post Reply
Author
Message
cmorais View Drop Down
Contributor
Contributor
Avatar

Joined: 23.Mar.2018
Location: Ireland
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmorais Quote  Post ReplyReply Direct Link To This Post Topic: SOAP problem
    Posted: 29.Jan.2019 at 15:30
Hello All,

I'm trying to get a SOAP connection to the API...  It seems to work, but whenver I make a request:
15:09:16.583     receivingPackage: POST /MetaEditAPI HTTP/1.1
Host: ip:6390
Te: deflate,gzip;q=0.3
Connection: TE,close
Accept-encoding: gzip,deflate
User-agent: libwww-perl/6.15
Content-length: 192
Content-type: text/xml;charset=UTF-8
Proxy-connection: Keep-Alive
Soapaction: "objectSet"

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/>
    <soapenv:Body>3_128</soapenv:Body>
</soapenv:Envelope>

I  get an error:
15:09:16.584     handlingIncomingMessageIn: Transport<http> failedBecause: an Opentalk.SOAPUnmarshalingError{Unmarshaling error: this collection is empty}
15:09:16.584     sendingReply: SOAPReply[SOAPFailedRequest[nil]{nil}]{a WebServices.SoapClientFault : SOAP-ENV:Client  this collection is empty} in: Transport<http>
15:09:16.584     sendingPackage: HTTP/1.1 500 Internal Server Error
Content-type: text/xml;charset=utf-8
Connection: close
I'm not sure if my request are not good or something else. I guess is something really simple and I just missing the point...

I got the MEOop from this generator:
 '_id and oid:'
id; '>>>'oid '>>' type

Can you guys help me (again)?
Thanks!
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 641
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post Posted: 29.Jan.2019 at 16:20
Maybe I'm missing something here, but a quick look at the XML in the request shows just a Body with "3_128", rather than any actual SOAP API message. Take a look at the manual's API chapter to see how to use your language's SOAP library to form calls.

Here's what I see in the log for receivingPackage: on a call to objectSet for 9_371:

POST /MetaEditAPI HTTP/1.1
Host: localhost:6391
Soapaction: "http://metacase.com/MetaEditAPI.objectSet"
Content-type: text/xml;charset=utf-8
Content-length: 559

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns="http://metacase.com/wsdl/" xmlns:ns0="http://metacase.com/type" xmlns:ns1="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns:objectSet SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<receiver xsi:type="ns0:MEOop">
<areaID xsi:type="ns1:int">9</areaID>
<objectID xsi:type="ns1:int">371</objectID>
</receiver>
</ns:objectSet>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.063 seconds.