Hi,

After deleting the stubs in C:\ColdFusion9\stubs\WS854518475\login

I was able to get the wsdl to generate ( see below )

The CFinvoke statement returns an error however:

                <cfinvoke
                                
webservice="http://localhost/login/NTLoginService.cfc?wsdl";
                                method="loginUserNT"
                                returnvariable="authUser"
                                refreshWSDL="yes">

                                <cfinvokeargument name="NTusername"          
value="test"/>
                                <cfinvokeargument name="NTpassword"           
value="testpassword"/>
                                <cfinvokeargument name="NTdomainz"              
                value="testdomain"/>

                </cfinvoke>


coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: 
Found 5 semantic errors compiling 
"C:/ColdFusion9/stubs/WS854518475/login/NTLoginServiceLocator.java": 10. public 
class NTLoginServiceLocator extends org.apache.axis.client.Service implements 
login.NTLoginService { 
^------------------------------------------------------------------------------------------^
 *** Semantic Error: The checked exception "RemoteException" is not assignable 
to any exception in the throws clause of the accessible method 
"javax.xml.rpc.Call createCall() throws javax.xml.rpc.ServiceException;" 
declared in type "javax.xml.rpc.Service". 10. public class 
NTLoginServiceLocator extends org.apache.axis.client.Service implements 
login.NTLoginService { 
^------------------------------------------------------------------------------------------^
 *** Semantic Error: The method "org.apache.axis.client.Call createCall() 
throws java.rmi.RemoteException;" with protected access cannot replace the 
accessible method "javax.xml.rpc.Call createCall() th....






WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:tns1="http://rpc.xml.coldfusion"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:intf="http://login"; xmlns:impl="http://login"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
targetNamespace="http://login";><http://localhost/login/NTLoginService.cfc?wsdl>
<!--WSDL created by ColdFusion version 9,0,1,274733-->
<wsdl:types><http://localhost/login/NTLoginService.cfc?wsdl><schema 
targetNamespace="http://xml.apache.org/xml-soap"; 
xmlns="http://www.w3.org/2001/XMLSchema";><http://localhost/login/NTLoginService.cfc?wsdl><import
 namespace="http://rpc.xml.coldfusion"/><import 
namespace="http://login"/><import 
namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType 
name="mapItem"><http://localhost/login/NTLoginService.cfc?wsdl><sequence><http://localhost/login/NTLoginService.cfc?wsdl><element
 name="key" type="xsd:anyType" nillable="true"/><element name="value" 
type="xsd:anyType" nillable="true"/></sequence></complexType><complexType 
name="Map"><http://localhost/login/NTLoginService.cfc?wsdl><sequence><http://localhost/login/NTLoginService.cfc?wsdl><element
 name="item" type="apachesoap:mapItem" minOccurs="0" 
maxOccurs="unbounded"/></sequence></complexType></schema><schema 
targetNamespace="http://rpc.xml.coldfusion"; 
xmlns="http://www.w3.org/2001/XMLSchema";><http://localhost/login/NTLoginService.cfc?wsdl><import
 namespace="http://xml.apache.org/xml-soap"/><import 
namespace="http://login"/><import 
namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType 
name="CFCInvocationException"><http://localhost/login/NTLoginService.cfc?wsdl><sequence/></complexType><complexType
 
name="QueryBean"><http://localhost/login/NTLoginService.cfc?wsdl><sequence><http://localhost/login/NTLoginService.cfc?wsdl><element
 name="columnList" type="impl:ArrayOf_xsd_string" nillable="true"/><element 
name="data" type="impl:ArrayOfArrayOf_xsd_anyType" 
nillable="true"/></sequence></complexType></schema><schema 
targetNamespace="http://login"; 
xmlns="http://www.w3.org/2001/XMLSchema";><http://localhost/login/NTLoginService.cfc?wsdl><import
 namespace="http://xml.apache.org/xml-soap"/><import 
namespace="http://rpc.xml.coldfusion"/><import 
namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType 
name="ArrayOf_xsd_string"><http://localhost/login/NTLoginService.cfc?wsdl><complexContent><http://localhost/login/NTLoginService.cfc?wsdl><restriction
 
base="soapenc:Array"><http://localhost/login/NTLoginService.cfc?wsdl><attribute 
wsdl:arrayType="xsd:string[]" 
ref="soapenc:arrayType"/></restriction></complexContent></complexType><complexType
 
name="ArrayOfArrayOf_xsd_anyType"><http://localhost/login/NTLoginService.cfc?wsdl><complexContent><http://localhost/login/NTLoginService.cfc?wsdl><restriction
 
base="soapenc:Array"><http://localhost/login/NTLoginService.cfc?wsdl><attribute 
wsdl:arrayType="xsd:anyType[][]" 
ref="soapenc:arrayType"/></restriction></complexContent></complexType></schema></wsdl:types><wsdl:message
 
name="loginUserNTRequest"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:part
 name="NTusername" type="xsd:string"/><wsdl:part name="NTpassword" 
type="xsd:string"/><wsdl:part name="NTdomainz" 
type="xsd:string"/></wsdl:message><wsdl:message 
name="CFCInvocationException"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:part
 name="fault" type="tns1:CFCInvocationException"/></wsdl:message><wsdl:message 
name="loginUserNTResponse"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:part
 name="loginUserNTReturn" type="apachesoap:Map"/></wsdl:message><wsdl:portType 
name="NTLoginService"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:operation
 name="loginUserNT" parameterOrder="NTusername NTpassword 
NTdomainz"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:input 
name="loginUserNTRequest" message="impl:loginUserNTRequest"/><wsdl:output 
name="loginUserNTResponse" message="impl:loginUserNTResponse"/><wsdl:fault 
name="CFCInvocationException" 
message="impl:CFCInvocationException"/></wsdl:operation></wsdl:portType><wsdl:binding
 name="NTLoginService.cfcSoapBinding" 
type="impl:NTLoginService"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:binding
 transport="http://schemas.xmlsoap.org/soap/http"; style="rpc"/><wsdl:operation 
name="loginUserNT"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:operation
 soapAction=""/><wsdl:input 
name="loginUserNTRequest"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:body
 namespace="http://login"; use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></wsdl:input><wsdl:output
 
name="loginUserNTResponse"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:body
 namespace="http://login"; use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></wsdl:output><wsdl:fault
 
name="CFCInvocationException"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:fault
 namespace="http://login"; name="CFCInvocationException" use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></wsdl:fault></wsdl:operation></wsdl:binding><wsdl:service
 name="NT Login 
Service"><http://localhost/login/NTLoginService.cfc?wsdl><wsdl:documentation 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Provides NT Domain Authentication 
</wsdl:documentation><wsdl:port name="NTLoginService.cfc" 
binding="impl:NTLoginService.cfcSoapBinding"><http://localhost/login/NTLoginService.cfc?wsdl><wsdlsoap:address
 
location="http://localhost/login/NTLoginService.cfc"/></wsdl:port></wsdl:service></wsdl:definitions>

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of 
Andrew Scott
Sent: Thursday, 10 July 2014 2:57 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Unable to read WSDL from URL

Actually come to think of it.. Have you also tried this, during development if 
the component is being changed, you also need to clear the stubs. I don't 
recall it being that exact error, but a quick Google has made the exact same 
suggestions.

Reference:
http://jeffcoughlin.com/blog/index.cfm/2006/2/27/Using-CF7-SOAP-and-soapexamplecfc
http://www.michaels.me.uk/post.cfm/coldfusion-web-services-and-soap


-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

Reply via email to