Although this may sound familiar, I've already checked similar posts and they haven't provided the full answer I need.
My current project involves making a SOAP web services call from server-side JavaScript that acts as a Java wrapper on top of an Oracle database. I know how to generate WSDL stub files for C# in Visual Studio and Java/Android, but I'm struggling with doing the same for JavaScript.
I've been experimenting with Apache CXF but encountered issues requiring additional library files that I can't locate. Additionally, I had to remove 'maxOccur' attributes causing errors while processing the WSDL.
Furthermore, I have to replace AJAX calls with their system API due to limitations of their JavaScript engine. Although it seems feasible with the generated file from CXF, there's still a dependency on an external library that I can't find (seen in initialization method).
Does anyone have suggestions for this situation? Or should I consider parsing SOAP XML samples instead of dealing with WSDL complexities?
I explored a CodeProject option, but it seems outdated and not suitable for my requirements.
-- EDIT --
While testing the WSDL, I encountered an error related to the use of "maxOccurs" within the schema...
<complexType name="AuthenticationToken">
<sequence>
<element name="loginId" nillable="true" type="xsd:string"/>
<element name="password" nillable="true" type="xsd:string"/>
<element name="licenseKey" nillable="true" type="xsd:string"/>
<element name="accountNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="AuthenticationToken" type="impl:AuthenticationToken" maxOccurs="1"/>
After importing the WSDL into a .NET project using Visual Studio, I noticed the issue with "maxOccurs". Removing or relocating the attribute resolved the processing error, but I'm uncertain about its impact on the generated stub class.