SOAP service without WSDL (Solved)

If you think that something doesn't work in Aware IM post your message here
Post Reply
jannes
Posts: 105
Joined: Tue Jul 02, 2019 12:22 pm

SOAP service without WSDL (Solved)

Post by jannes »

I'm trying to implement a SOAP-service, but the provider doesn't have a WSDL. There are only XML's avaliable.

So I created an "own" WSDL
mailcamp.jpg
mailcamp.jpg (137.63 KiB) Viewed 2170 times
After "Discover Services" I could create the 2 BO's :
- AddSubscriberToListParam
- AddSubscriberToListReply

After this I changed the "URL of the service provider" to : https://mailcamp.eu/demoaccount/xml.php?WSDL

Creating the BO's
1) CREATE MailCampService WITH MailCampService.Name='mailcamp'
2) CREATE AddSubscriberToListParam WITH AddSubscriberToListParam.xmlrequest=
'<xmlrequest>
<username>poldersoft</username>
....
</xmlrequest>'

Then calling the service : REQUEST SERVICE AddSubscriberToList OF MailCampService

Unfortunately it returns an error :
Service provider returned the following error: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'mailcamp'.: java.io.FileNotFoundException: This file was not found: file:/C:/AwareIM/bin/mailcamp

What is going wrong ?

I've also studied the video: https://youtu.be/iflClzVF1T0
Last edited by jannes on Mon Sep 30, 2024 8:16 pm, edited 1 time in total.
joben
Posts: 240
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: SOAP service without WSDL

Post by joben »

I have only had to communicate with a SOAP service once. I never got wsdl discovery to work because the content was too convoluted or buggy for AwareIM to parse correctly.
I just use the REST service instead so I can define the services manually. Works as long as you have specified the headers correctly like "SOAPAction" as well as "Content-Type". I can give more details if you are interested in this workaround.

I am unsure if people actually use SOAP these days?
Regards, Joakim

Image
BobK
Posts: 553
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Re: SOAP service without WSDL

Post by BobK »

joben wrote: Mon Sep 30, 2024 2:58 pm I am unsure if people actually use SOAP these days?
Unfortunately, I do use SOAP :cry:

Jannes,

Are you sure you need to use SOAP?

I looked at their API at:
https://mailcamp.nl/api/en/

I saw no mention of SOAP. The only requirement I saw was that the request had to be in XML.
You can use REST with XML.
Bob
jannes
Posts: 105
Joined: Tue Jul 02, 2019 12:22 pm

Re: SOAP service without WSDL

Post by jannes »

Oeps, so REST can also be used with XML !

Great!
It works.

So old-fashioned SOAP / WSDL is not necessary.

Thnx Bob!!
:D :D
Post Reply