Hi Steve,

I've tried all kinds of variations on the code to invoke the web service,
all of which have generated the same error, but the code I am using now is:

<cfinvoke webservice="
http://web1.ad.xyz.com.au:6026/LDAPAuthentication.asmx?wsdl";
              method="IsAuthenticated"
              returnVariable="ws" >
    <cfinvokeargument name="UserName" value="#form.username#" />
    <cfinvokeargument name="Password" value="#form.password#" />
</cfinvoke>


The wsdl for the service is:

  <?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:tns="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,"; xmlns:s="
http://www.w3.org/2001/XMLSchema"; xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"; targetNamespace="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,"; xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Provides
various methods for verifying and querying Active Directory
information.</wsdl:documentation>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,";>
- <s:element name="IsAuthenticated">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="IsAuthenticatedResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="1" maxOccurs="1" name="IsAuthenticatedResult"
type="s:boolean" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="IsApplicationUser">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="ApplicationName"
type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="IsApplicationUserResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="1" maxOccurs="1" name="IsApplicationUserResult"
type="s:boolean" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="IsMember">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="GroupName" type="s:string" />

  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="IsMemberResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="1" maxOccurs="1" name="IsMemberResult"
type="s:boolean" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="GetGroups">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:element name="GetGroupsResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="GetGroupsResult"
type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>
  </s:schema>
  </wsdl:types>
- <wsdl:message name="IsAuthenticatedSoapIn">
  <wsdl:part name="parameters" element="tns:IsAuthenticated" />
  </wsdl:message>
- <wsdl:message name="IsAuthenticatedSoapOut">
  <wsdl:part name="parameters" element="tns:IsAuthenticatedResponse" />
  </wsdl:message>
- <wsdl:message name="IsApplicationUserSoapIn">
  <wsdl:part name="parameters" element="tns:IsApplicationUser" />
  </wsdl:message>
- <wsdl:message name="IsApplicationUserSoapOut">
  <wsdl:part name="parameters" element="tns:IsApplicationUserResponse" />
  </wsdl:message>
- <wsdl:message name="IsMemberSoapIn">
  <wsdl:part name="parameters" element="tns:IsMember" />
  </wsdl:message>
- <wsdl:message name="IsMemberSoapOut">
  <wsdl:part name="parameters" element="tns:IsMemberResponse" />
  </wsdl:message>
- <wsdl:message name="GetGroupsSoapIn">
  <wsdl:part name="parameters" element="tns:GetGroups" />
  </wsdl:message>
- <wsdl:message name="GetGroupsSoapOut">
  <wsdl:part name="parameters" element="tns:GetGroupsResponse" />
  </wsdl:message>
- <wsdl:portType name="LDAPAuthenticationSoap">
- <wsdl:operation name="IsAuthenticated">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Accepts
a username and password combination and validates against Active Directory.
If the username and password combination is correct the return value will be
true for an account that is currently active, and false for an account that
is inactive. An incorrect username/password combination will result in an
exception being raised and returned.</wsdl:documentation>
  <wsdl:input message="tns:IsAuthenticatedSoapIn" />
  <wsdl:output message="tns:IsAuthenticatedSoapOut" />
  </wsdl:operation>
- <wsdl:operation name="IsApplicationUser">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Accepts
a username and password combination and validates against Active Directory.
Also accepts an application name as an argument. For a valid
username/password combination the function will return true/false depending
on whether the user is a member of the requested application's authorised
user's group or not. An incorrect username/password combination will result
in an exception being raised and returned.</wsdl:documentation>
  <wsdl:input message="tns:IsApplicationUserSoapIn" />
  <wsdl:output message="tns:IsApplicationUserSoapOut" />
  </wsdl:operation>
- <wsdl:operation name="IsMember">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Accepts
a username and password combination and validates against Active Directory.
Also accepts an Active Directory group name as an argument. For a valid
username/password combination the function will return true/false depending
on whether the user is a member of the requested group or not. An incorrect
username/password combination will result in an exception being raised and
returned.</wsdl:documentation>
  <wsdl:input message="tns:IsMemberSoapIn" />
  <wsdl:output message="tns:IsMemberSoapOut" />
  </wsdl:operation>
- <wsdl:operation name="GetGroups">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Accepts
a username and password combination and validates against Active Directory.
If the username and password combination is correct, a list of groups the
user belongs to is returned in a string. The returned groups are delimited
by the '|' symbol. Eg: 'MS Users|Test_G|BHQ|D-H|'. An incorrect
username/password combination will result in an exception being raised and
returned.</wsdl:documentation>
  <wsdl:input message="tns:GetGroupsSoapIn" />
  <wsdl:output message="tns:GetGroupsSoapOut" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="LDAPAuthenticationSoap"
type="tns:LDAPAuthenticationSoap">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; />
- <wsdl:operation name="IsAuthenticated">
  <soap:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsAuthenticated";
style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="IsApplicationUser">
  <soap:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsApplicationUser";
style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="IsMember">
  <soap:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsMember";
style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetGroups">
  <soap:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/GetGroups";
style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="LDAPAuthenticationSoap12"
type="tns:LDAPAuthenticationSoap">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; />
- <wsdl:operation name="IsAuthenticated">
  <soap12:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsAuthenticated";
style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="IsApplicationUser">
  <soap12:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsApplicationUser";
style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="IsMember">
  <soap12:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsMember";
style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="GetGroups">
  <soap12:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/GetGroups";
style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="LDAPAuthentication">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Provides
various methods for verifying and querying Active Directory
information.</wsdl:documentation>
- <wsdl:port name="LDAPAuthenticationSoap"
binding="tns:LDAPAuthenticationSoap">
  <soap:address location="
http://web1.ad.xyz.com.au:7013/LDAPAuthentication.asmx"; />
  </wsdl:port>
- <wsdl:port name="LDAPAuthenticationSoap12"
binding="tns:LDAPAuthenticationSoap12">
  <soap12:address location="
http://web1.ad.xyz.com.au:7013/LDAPAuthentication.asmx"; />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>


(part of) The error I am getting is:

Found 1 syntax error in
"C:/ColdFusion9/stubs/WS1/au/com/xyz/ad/intranet/LDAPAuthentication,/LDAPAuthenticationSoap.java":

     8. package au.com.xyz.ad.intranet.LDAPAuthentication,;
                                                               ^
*** Syntax Error: ; expected instead of this token


SO.... Now I am wondering about the commas that are appearing in the middle
of the paths...

<soap:operation soapAction="
http://intranet.ad.xyz.com.au:6113/LDAPAuthentication,/IsAuthenticated";
style="document" />

And I am finding commas in the directory names, under
comdfusion9/stubs/WS1/... It seems odd but I haven't had enough experience
with servcies to know for sure. Certainly it seems it is this 'compile' step
that is the difference between CF and the other service browser tools that
don't have a problem analysing the same service.

I'm trying to find some services to compare against, but if anyone can
identify this as the definitive cause that would be great.

Many thanks,

Brett
B)


On Fri, Jun 11, 2010 at 4:34 PM, Steve Onnis <[email protected]> wrote:

>  can we see the code you are using to invoke it?
>
>
>  ------------------------------
> *From:* Brett Payne-Rhodes [mailto:[email protected]]
> *Sent:* Friday, 11 June 2010 6:05 PM
>
> *To:* [email protected]
> *Subject:* Re: [cfaussie] Web Service strangeness
>
> Its happening on the invoke. I have tried to just create the service as an
> object with a view to then calling the method but which ever way I try I get
> the same syntax error. It is, I think, something (simple) in the underlying
> code of the service but the 'syntax' error message is giving nothing away.
>
> B)
>
>
>
> On Fri, Jun 11, 2010 at 3:59 PM, Steve Onnis <[email protected]>wrote:
>
>>  when is the error happening? when you invoke it or when you are calling
>> methods on it?
>>
>>  ------------------------------
>>  *From:* Brett Payne-Rhodes [mailto:[email protected]]
>> *Sent:* Friday, 11 June 2010 5:55 PM
>> *To:* [email protected]
>> *Subject:* Re: [cfaussie] Web Service strangeness
>>
>>   Sadly no... Its not a public facing service, its an internal
>> authentication service. I could post a sanitised version of the WSDL if you
>> think that is useful but given that other tools are dealing with it I wasn't
>> sure there was any point.
>>
>> Thanks
>>
>> B)
>>
>>
>> On Fri, Jun 11, 2010 at 3:43 PM, Steve Onnis <[email protected]>wrote:
>>
>>>  whats the webservice? can we see?
>>>
>>>  ------------------------------
>>> *From:* Brett Payne-Rhodes [mailto:[email protected]]
>>> *Sent:* Friday, 11 June 2010 5:32 PM
>>> *To:* [email protected]
>>> *Subject:* [cfaussie] Web Service strangeness
>>>
>>>   I'm looking at a web service that is written in .asmx but CF is
>>> throwing a 'syntax error' about along the lines of "Syntax Error: ; expected
>>> instead of this token Found 2 syntax errors in..."
>>>
>>> I've got CFbuilder to inspect it, and Altova XMLSpy as well (thanks to
>>> tips I found on Charlie Arehart's blog) and both tools have no trouble
>>> dealing with the service. Plus I can browse the WSDL output without any
>>> dramas.
>>>
>>> I've tried cfinvoke and cfobject in all manner of variations but CF still
>>> trips over whatever it is...
>>>
>>> I'm just wondering if this is something other people have encountered? Is
>>> CF overly pedantic about syntax compared to CFbuilder and XMLspy?
>>>
>>> Given the nature of the enterprise here I don't have an easy way to look
>>> at or rework the service itself, and really it is a very simple
>>> authentication service that accepts two strings and returns a value, so I am
>>> hoping there is something I can tweak in CF to sort this out...
>>>
>>> Many thanks,
>>>
>>> Brett
>>> B)
>>>
>>> --
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to