Hello,
We have an existing SOAP service in production and I would like to
re-implement it using Lucee.
This new service has to be exactly the same as the existing one.
So, I started implementing a CFC remote=”true” to create this SOAP service.
The problem is that I’m not able to customize it by adding a WSDL attribute
(corresponding to the existing one in production) or by changing the name
of the elements in the response.
I think that something is misconfigured in my implementation.
I’ve also read into the documentation (
<cfcomponent> :: Lucee Documentation):
Wsdlfile (string, optional): A properly formatted WSDL file to be used
instead of WSDL generated by Lucee. This attribute applies only when
style=“document”.
But, when I change the style attribute to document, we have this error, it
seems not implemented as ACF:
style [document] is not supported, only the following styles are supported:
[rpc]
Do you have some idea? Can you point me out where to start?
Here is an example of the implementation:
component remote=true output=“false” wsdlfile=“xxx.wsdl”
…
remote WSResponse function GetXXX() {
return new WSResponse();
}
Here is the kind of XML response that I receive when testing the service:
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsd=“XML Schema” xmlns:xsi=
“http://www.w3.org/2001/XMLSchema-instance”>
<ns1:GetXXXResponse soapenv:encodingStyle=
“http://schemas.xmlsoap.org/soap/encoding/” xmlns:ns1=“http://tempuri.org/”>
<GetXXX*Return* href="#id0"/>
</ns1:GetXXXResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle=
“http://schemas.xmlsoap.org/soap/encoding/” xsi:type=
“ns2:webservices.WSResponse” xmlns:soapenc=
“http://schemas.xmlsoap.org/soap/encoding/” xmlns:ns2=
“http://rpc.xml.coldfusion”>
<getXXXResponse
href=“#id1”/>
</multiRef>
….
</soapenv:Body>
</soapenv:Envelope>
Thank you !