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
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
SOAP service without WSDL (Solved)
SOAP service without WSDL (Solved)
Last edited by jannes on Mon Sep 30, 2024 8:16 pm, edited 1 time in total.
Re: SOAP service without WSDL
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?
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?
Re: SOAP service without WSDL
Unfortunately, I do use SOAP
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
Re: SOAP service without WSDL
Oeps, so REST can also be used with XML !
Great!
It works.
So old-fashioned SOAP / WSDL is not necessary.
Thnx Bob!!
Great!
It works.
So old-fashioned SOAP / WSDL is not necessary.
Thnx Bob!!