CF_PRO
asked on
java.lang.IllegalArgumentException: array element type mismatch
I am able to login to a wsdl, but I get stuck went I want to execute a method. I get java.lang.IllegalArgumentE xception: array element type mismatch.
I am following a piece of PHP code that works fine, but when I convert it to cold fusion code it stops working.
Here is the PHP code snippet:
$docxfer = new SoapClient($wsdl);
id = "1234";
$ticket = $docxfer->doLogin($usr,$pw d);
$Customer = $docxfer->getCustomer($id, $ticket);
ColdFusion Code:
<cfscript>
docxfer = createObject("webservice", #wsdl#);
id = "1234";
ticket = docxfer.doLogin(#usr#,#pwd #);
Customer = docxfer.getCustomer(#id#,# ticket#);
</cfscript>
I am following a piece of PHP code that works fine, but when I convert it to cold fusion code it stops working.
Here is the PHP code snippet:
$docxfer = new SoapClient($wsdl);
id = "1234";
$ticket = $docxfer->doLogin($usr,$pw
$Customer = $docxfer->getCustomer($id,
ColdFusion Code:
<cfscript>
docxfer = createObject("webservice",
id = "1234";
ticket = docxfer.doLogin(#usr#,#pwd
Customer = docxfer.getCustomer(#id#,#
</cfscript>
ASKER
I got rid of the # signs, still the same problem.
I dumped the ticket variable
Class Name com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang. String, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.D eserialize r
getOrganization() java.lang.String
getPassword() java.lang.String
getPermittedActions() com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions[]
getSerializer(java.lang.St ring, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.S erializer
getTypeDesc() org.apache.axis.descriptio n.TypeDesc
getUser() java.lang.String
getUserdesc() java.lang.String
getUsername() java.lang.String
hashCode() int
isAuthenticated() boolean
isMonitoring() boolean
isTracing() boolean
setAuthenticated(boolean) void
setAuthorizedActions(java. lang.Strin g[]) void
setMonitoring(boolean) void
setOrganization(java.lang. String) void
setPassword(java.lang.Stri ng) void
setPermittedActions(com.xx xx.www._pa ckage.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions[]) void
setTracing(boolean) void
setUser(java.lang.String) void
setUserdesc(java.lang.Stri ng) void
setUsername(java.lang.Stri ng) void
I did remove the
Customer = docxfer.getCustomer(#id#,# ticket#);
line of code and then there is no problem, so I know it got passed the DoLogin method.
I am not able to run the
Customer = docxfer.getCustomer(#id#,# ticket#);
with a hardcoded value because I am not sure how to reconstruct the ticket array.
I dumped the ticket variable
Class Name com.xxxx.www._package.com_
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang.
getOrganization() java.lang.String
getPassword() java.lang.String
getPermittedActions() com.xxxx.www._package.com_
getSerializer(java.lang.St
getTypeDesc() org.apache.axis.descriptio
getUser() java.lang.String
getUserdesc() java.lang.String
getUsername() java.lang.String
hashCode() int
isAuthenticated() boolean
isMonitoring() boolean
isTracing() boolean
setAuthenticated(boolean) void
setAuthorizedActions(java.
setMonitoring(boolean) void
setOrganization(java.lang.
setPassword(java.lang.Stri
setPermittedActions(com.xx
setTracing(boolean) void
setUser(java.lang.String) void
setUserdesc(java.lang.Stri
setUsername(java.lang.Stri
I did remove the
Customer = docxfer.getCustomer(#id#,#
line of code and then there is no problem, so I know it got passed the DoLogin method.
I am not able to run the
Customer = docxfer.getCustomer(#id#,#
with a hardcoded value because I am not sure how to reconstruct the ticket array.
What are the argument types of the web service method, and what types of variables are you passing into the web service?
Didn't see the last post before responding.
Can you dump the web service object so we can see the getCustomer method?
Can you dump the web service object so we can see the getCustomer method?
What are the dimensions and datatypes of the ticket array? My first guess is that there is a mismatch between the type of array expected by the service and the type you are sending in.
If you put the ticket value in the isArray() function, do you get yes?
It is odd because the ticket array is what is returned by the previous function. You may make sure it doesn't return null if there are no results.
If you put the ticket value in the isArray() function, do you get yes?
It is odd because the ticket array is what is returned by the previous function. You may make sure it doesn't return null if there are no results.
ASKER
Here is a dump of the web service object:
Class Name com.xxxx.www.wsdl.Services.IExtServicesStub
Methods
Method Return Type
doAELogin(java.lang.String , java.lang.String) com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket
doCustomerAlertDelete(java .lang.Stri ng, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerAlertInsert(com. xxxx.www._ package.co m_syscorp_ authorizat ionengine_ customer.C ustomerAle rtVO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerAlertUpdate(com. xxxx.www._ package.co m_syscorp_ authorizat ionengine_ customer.C ustomerAle rtVO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerDelete(java.lang .String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerDocDelete(java.l ang.String , com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerDocInsert(com.xx xx.www._pa ckage.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerDocUpdate(com.xx xx.www._pa ckage.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerDocUpdateWithIma ge(com.xxx x.www._pac kage.com_s yscorp_aut horization engine_.Cu stomerDocV O, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerInsert(com.xxxx. www._packa ge.com_sys corp_autho rizationen gine_.Cust omerVO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerUpdate(com.xxxx. www._packa ge.com_sys corp_autho rizationen gine_.Cust omerVO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doCustomerNoteInsert(com.x xxx.www._p ackage.com _syscorp_f eepay_cust omer.Custo merNoteVO, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) void
doLogin(java.lang.String, java.lang.String) com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket
getCustomerAlertByCardnum( java.lang. String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_cu stomer.Cus tomerAlert VO
getCustomerAlertTypeList(c om.xxxx.ww w._package .com_sysco rp_foundat ion_servic es_securit y_vos.Secu rityTicket ) com.xxxx.www._package.com_ syscorp_db tools_util s.LabelVal ueBean[]
getCustomerIdentification( java.lang. String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_cu stomer.Cus tomerIdent VO
getCustomerIdentificationL istByCardN um(java.la ng.String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_cu stomer.Cus tomerIdent VO[]
getCustomerIdentificationL istByCusto mer(java.l ang.String , com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_cu stomer.Cus tomerIdent VO[]
getCustomer(java.lang.Stri ng, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerVO
getCustomerDoc(java.lang.S tring, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO
getCustomer(java.lang.Stri ng, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO[]
getCustomerDocListByCustom er(java.la ng.String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO[]
getCustomerDocWithImage(ja va.lang.St ring, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerDoc VO
getCustomerList(java.lang. String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_au thorizatio nengine_.C ustomerVO[ ]
getCustomerNoteListSearch( java.lang. String, java.lang.String, java.lang.String, java.lang.String, com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_fe epay_custo mer.Custom erNoteVO[]
getIdentificationTypeList( com.xxxx.w ww._packag e.com_sysc orp_founda tion_servi ces_securi ty_vos.Sec urityTicke t) com.xxxx.www._package.com_ syscorp_db tools_util s.LabelVal ueBean[]
getPhoneCountryList(com.xx xx.www._pa ckage.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket) com.xxxx.www._package.com_ syscorp_db tools_util s.LabelVal ueExtBean[ ]
Fields
Field Value
java.lang.String ENDPOINT_ADDRESS_PROPERTY javax.xml.rpc.service.endp oint.addre ss
java.lang.String PASSWORD_PROPERTY javax.xml.rpc.security.aut h.password
java.lang.String SESSION_MAINTAIN_PROPERTY javax.xml.rpc.session.main tain
java.lang.String USERNAME_PROPERTY javax.xml.rpc.security.aut h.username
Class Name com.xxxx.www.wsdl.Services.IExtServicesStub
Methods
Method Return Type
doAELogin(java.lang.String
doCustomerAlertDelete(java
doCustomerAlertInsert(com.
doCustomerAlertUpdate(com.
doCustomerDelete(java.lang
doCustomerDocDelete(java.l
doCustomerDocInsert(com.xx
doCustomerDocUpdate(com.xx
doCustomerDocUpdateWithIma
doCustomerInsert(com.xxxx.
doCustomerUpdate(com.xxxx.
doCustomerNoteInsert(com.x
doLogin(java.lang.String, java.lang.String) com.xxxx.www._package.com_
getCustomerAlertByCardnum(
getCustomerAlertTypeList(c
getCustomerIdentification(
getCustomerIdentificationL
getCustomerIdentificationL
getCustomer(java.lang.Stri
getCustomerDoc(java.lang.S
getCustomer(java.lang.Stri
getCustomerDocListByCustom
getCustomerDocWithImage(ja
getCustomerList(java.lang.
getCustomerNoteListSearch(
getIdentificationTypeList(
getPhoneCountryList(com.xx
Fields
Field Value
java.lang.String ENDPOINT_ADDRESS_PROPERTY javax.xml.rpc.service.endp
java.lang.String PASSWORD_PROPERTY javax.xml.rpc.security.aut
java.lang.String SESSION_MAINTAIN_PROPERTY javax.xml.rpc.session.main
java.lang.String USERNAME_PROPERTY javax.xml.rpc.security.aut
ASKER
Ok I used
IsArray: #isArray(ticket)#
and I got a NO result.
IsArray: #isArray(ticket)#
and I got a NO result.
maybe the id is registering as an integer instead of a string? you could try '#id#' (with the quotes)
I think the ticket is an object, not an array, but from the webservice definition it looks like that is expected.
> IsArray: #isArray(ticket)#
> and I got a NO result.
Is the function actually expecting an array? It doesn't look like it from the signature:
getCustomer( java.lang.String, .... SecurityTicket)
Can we see the whole error message? The error message may be misleading.
> and I got a NO result.
Is the function actually expecting an array? It doesn't look like it from the signature:
getCustomer( java.lang.String, .... SecurityTicket)
Can we see the whole error message? The error message may be misleading.
ASKER
Whole Error:
Cannot perform web service invocation getCustomer.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: java.io.IOException: java.lang.IllegalArgumentE xception: array element type mismatch
faultActor:
faultNode:
faultDetail:
{}stacktrace:java.rmi.Unma rshalExcep tion: java.io.IOException: java.lang.IllegalArgumentE xception: array element type mismatch
at xxxx.soap.wsdl.SOAPOperati on.getArgs (Unknown Source)
at xxxx.soap.java.handlers.se rvice.SOAP ToServiceH andler.inv oke(Unknow n Source)
at xxxx.soap.java.handlers.se rvice.SOAP ToServiceH andler.han dle(Unknow n Source)
at xxxx.soap.security.handler s.Security Handler.ha ndle(Unkno wn Source)
at xxxx.soap.handlers.interce ptor.SOAPI nterceptor Handler.ha ndle(Unkno wn Source)
at xxxx.soap.routing.RoutingH andler.han dle(Unknow n Source)
at xxxx.soap.handlers.logging .SOAPLoggi ngHandler. handle(Unk nown Source)
at xxxx.soap.handlers.setup.S etupHandle r.handle(U nknown Source)
at xxxx.soap.http.HTTPToSOAP. service(Un known Source)
at... ''
Cannot perform web service invocation getCustomer.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: java.io.IOException: java.lang.IllegalArgumentE
faultActor:
faultNode:
faultDetail:
{}stacktrace:java.rmi.Unma
at xxxx.soap.wsdl.SOAPOperati
at xxxx.soap.java.handlers.se
at xxxx.soap.java.handlers.se
at xxxx.soap.security.handler
at xxxx.soap.handlers.interce
at xxxx.soap.routing.RoutingH
at xxxx.soap.handlers.logging
at xxxx.soap.handlers.setup.S
at xxxx.soap.http.HTTPToSOAP.
at... ''
I think it is expecting an object - which from the dump is what the ticket appears to be. so I wonder if the issue is with the id. Maybe pass it in with JavaCast?
JavaCast("string", id)
JavaCast("string", id)
> JavaCast("string", id)
Yes, I already suggested that above.
Yes, I already suggested that above.
> Yes, I already suggested that above.
My bad. I didn't.
@CF_PRO - what CF version are you using?
My bad. I didn't.
@CF_PRO - what CF version are you using?
ASKER
Ok I put in:
Customer = docxfer.getCustomer(JavaCa st("string ", id),ticket);
Same error
Customer = docxfer.getCustomer(JavaCa
Same error
ASKER
Version: 8,0,1,195765
From what I can see, it looks like you're doing everything wrong. Without access to the service, I'm not sure what else to suggest here (beyond really low level debugging). Unfortunately, CF web services aren't always the easiest tool to work with. They're fine with simple stuff. But I've had a lot of problems consuming services with complex types. Also with certain types of .NET web services. Sometimes I have just had to resort to using cfhttp and soap. Because I never could get past the Axis errors. Sorry, I couldn't be of more help.
> From what I can see, it looks like you're doing everything wrong.
Correction: doing everything RIGHT !
Correction: doing everything RIGHT !
maybe try javacasting the ticket??
JavaCast("com.xxxx.www._pa ckage.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket", ticket)
I have never tried this so...maybe.... :)
JavaCast("com.xxxx.www._pa
I have never tried this so...maybe.... :)
ASKER
you mean
JavaCast(id, "com.xxxx.www._package.com _syscorp_f oundation_ services_s ecurity_vo s.Security Ticket")
?
JavaCast(id, "com.xxxx.www._package.com
?
All I can think of is that CF isn't converting the datatypes, the the datatype is supported a little differently in cf that it is the whatever language the webservice is written in. Have you tried using a different id? Just in case? Or accessing a different function?
no, just the ticket, or both (but would need two javacast function calls)
> maybe try javacasting the ticket??
> I have never tried this so...maybe.... :)
No, according to the docs that's not allowed for javacast.
> I have never tried this so...maybe.... :)
No, according to the docs that's not allowed for javacast.
ASKER
ok so:
Customer = docxfer.getCustomer(JavaCa st("string ", id),JavaCast("com.xxxx.www ._package. com_syscor p_foundati on_service s_security _vos.Secur ityTicket" , ticket));
correct?
Customer = docxfer.getCustomer(JavaCa
correct?
Yeah...but I am guessing it didn't work or you wouldn't be asking :(
Hmm, that is a tough one.
Hmm, that is a tough one.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is there documentation for this webservice? Does it say what you should be passing in (datatypes and such)?
I am not sure why you are converting from PHP, but you could try accessing the .net or java APIs through CF to run it. I couldn't tell you how to do that though.
I am not sure why you are converting from PHP, but you could try accessing the .net or java APIs through CF to run it. I couldn't tell you how to do that though.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I cannot get soap to work on php using https wsdl
Ok I get the following error when I try javacasting both
JavaCast type com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .SecurityT icket must be one of the following types: byte, char, short, int, long, float, double, boolean, string, bigdecimal, their corresponding array representation (eg : int[]) or null.
Ok I get the following error when I try javacasting both
JavaCast type com.xxxx.www._package.com_
yeah, as agx said, it is not an allowed datatype for that function
ASKER
I can give you guys the wsdl info that pertains to the method I am trying to use. Let me know if that will help?
Sure, why not? :)
ASKER
<wsdl:message name="getCustomer18In">
<wsdl:part name="id" type="xsd:string"/>
<wsdl:part name="Ticket" type="n10:SecurityTicket"/
</wsdl:message>
<wsdl:message name="getCustomer18Out">
<wsdl:part name="Result" type="n12:ArrayOfCustomerD
</wsdl:message>
<wsdl:operation name="getCustomer" parameterOrder="sCardNum Ticket">
<wsdl:input name="getCustomer18In" message="tns:getCustomer18
<wsdl:output name="getCustomer18Out" message="tns:getCustomer18
</wsdl:operation>
<wsdl:operation name="getCustomer">
<soap:operation soapAction="getCustomer" style="rpc"/>
<wsdl:input name="getCustomer18In">
<soap:body use="encoded" namespace="x" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<wsdl:output name="getCustomer18Out">
<soap:body use="encoded" namespace="x" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
Can you post the info for the SecurityTicket type?
ie <wsdl:part name="Ticket" type="n10:SecurityTicket"/ >
ie <wsdl:part name="Ticket" type="n10:SecurityTicket"/
ASKER
<xsd:complexType name="SecurityTicket">
-
<xsd:all>
<xsd:element name="authenticated" type="xsd:boolean"/>
<xsd:element name="authorizedActions" nillable="true" type="xsd:ArrayOfstring"/>
<xsd:element name="username" nillable="true" type="xsd:string"/>
<xsd:element name="password" nillable="true" type="xsd:string"/>
<xsd:element name="organization" nillable="true" type="xsd:string"/>
<xsd:element name="user" nillable="true" type="xsd:string"/>
<xsd:element name="userdesc" nillable="true" type="xsd:string"/>
<xsd:element name="tracing" type="xsd:boolean"/>
<xsd:element name="monitoring" type="xsd:boolean"/>
<xsd:element name="permittedActions" nillable="true" type="n10:ArrayOfPermitted Actions"/>
</xsd:all>
-
<xsd:all>
<xsd:element name="authenticated" type="xsd:boolean"/>
<xsd:element name="authorizedActions" nillable="true" type="xsd:ArrayOfstring"/>
<xsd:element name="username" nillable="true" type="xsd:string"/>
<xsd:element name="password" nillable="true" type="xsd:string"/>
<xsd:element name="organization" nillable="true" type="xsd:string"/>
<xsd:element name="user" nillable="true" type="xsd:string"/>
<xsd:element name="userdesc" nillable="true" type="xsd:string"/>
<xsd:element name="tracing" type="xsd:boolean"/>
<xsd:element name="monitoring" type="xsd:boolean"/>
<xsd:element name="permittedActions" nillable="true" type="n10:ArrayOfPermitted
</xsd:all>
If you dump each of those ticket values, what do you see? Warning, some of them maybe null ie Undefined
<cfdump var="#ticket.authenticated #">
<cfdump var="#ticket.authorizedAct ions#">
etc....
<cfdump var="#ticket.authenticated
<cfdump var="#ticket.authorizedAct
etc....
ASKER
Authenticated:
YES
AuthorizedActions:
array [empty]
username
*****
password
******
organization
******
user
******
userdesc
empty
tracing
NO
monitoring
NO
permittedActions
array
1
object of com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions
Class Name com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang. String, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.D eserialize r
getPermission() java.lang.String
getSerializer(java.lang.St ring, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.S erializer
getSubject() java.lang.String
getTypeDesc() org.apache.axis.descriptio n.TypeDesc
hashCode() int
setAuthorizedActions(java. lang.Strin g[]) void
setPermission(java.lang.St ring) void
setSubject(java.lang.Strin g) void
2
object of com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions
Class Name com.xxxx.www._package.com_ syscorp_fo undation_s ervices_se curity_vos .Permitted Actions
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang. String, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.D eserialize r
getPermission() java.lang.String
getSerializer(java.lang.St ring, java.lang.Class, javax.xml.namespace.QName) org.apache.axis.encoding.S erializer
getSubject() java.lang.String
getTypeDesc() org.apache.axis.descriptio n.TypeDesc
hashCode() int
setAuthorizedActions(java. lang.Strin g[]) void
setPermission(java.lang.St ring) void
setSubject(java.lang.Strin g) void
Interesting that the permitted actions is empty, I am having my 3rd party looking into this.
I have to let you know that PHP code works in the test environment, and so does the Cold Fusion code.
However this code I am working with now, is in the live environment that uses https, and php failed to work in that environment (I could not even login)
So now I am trying out my coldfusion code, so this permitted actions array could be the stumbling block.
YES
AuthorizedActions:
array [empty]
username
*****
password
******
organization
******
user
******
userdesc
empty
tracing
NO
monitoring
NO
permittedActions
array
1
object of com.xxxx.www._package.com_
Class Name com.xxxx.www._package.com_
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang.
getPermission() java.lang.String
getSerializer(java.lang.St
getSubject() java.lang.String
getTypeDesc() org.apache.axis.descriptio
hashCode() int
setAuthorizedActions(java.
setPermission(java.lang.St
setSubject(java.lang.Strin
2
object of com.xxxx.www._package.com_
Class Name com.xxxx.www._package.com_
Methods
Method Return Type
equals(java.lang.Object) boolean
getAuthorizedActions() java.lang.String[]
getDeserializer(java.lang.
getPermission() java.lang.String
getSerializer(java.lang.St
getSubject() java.lang.String
getTypeDesc() org.apache.axis.descriptio
hashCode() int
setAuthorizedActions(java.
setPermission(java.lang.St
setSubject(java.lang.Strin
Interesting that the permitted actions is empty, I am having my 3rd party looking into this.
I have to let you know that PHP code works in the test environment, and so does the Cold Fusion code.
However this code I am working with now, is in the live environment that uses https, and php failed to work in that environment (I could not even login)
So now I am trying out my coldfusion code, so this permitted actions array could be the stumbling block.
Well, if the same code works in the test environment it is definitely not a problem with the code, it is the environment. You should dump this info out on dev and see if permitted actions is also empty. Otherwise I would work with your provider to resolve any issues with HTTPS transmission.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry I did not mention that before.
I don't think https is the problem, otherwise I would not even been able to get authenticated in coldfusion.
I think it has to do with the permitted actions being empty. Do you think that logic makes sense?
I don't think https is the problem, otherwise I would not even been able to get authenticated in coldfusion.
I think it has to do with the permitted actions being empty. Do you think that logic makes sense?
Is it empty on dev? If not, then that is most likely it.
Yes, it makes sense. What other differences are there between prod and dev? Also, you can test on prod using http instead of https? If it works with http, then the issue's related to https. If it doesn't, then it's something else about the prod environment.
ASKER
they don't have http active on the live environment. The admin is checking my permissions now.
ASKER
Does the error I am getting make sense if my permission were not set right?
> Does the error I am getting make sense if my permission were not set right?
There's no way for us to know, because the error just says "array...", not which array or where the
error is occurring. But it's a good logical guess since some of the ticket properties are arrays.
(Did you find out if the permissions array is empty on dev too?)
There's no way for us to know, because the error just says "array...", not which array or where the
error is occurring. But it's a good logical guess since some of the ticket properties are arrays.
(Did you find out if the permissions array is empty on dev too?)
.. unfortunately web service error message ie Axis are usually terribly uninformative.
ASKER
I am waiting on the admin and developer to get back to me. I am praying this is the problem.
You could also try removing one line of code at a time until you get the error to go away, then add the other lines back to make sure...and you will know which function call is causing the error.
Another thing you can try is running the functions with hard coded values. What way you know if it is a problem with the variables or the values themselves.