Error consuming a webservice

Hi,

after all the Lucee posts about filextensions, etc. I have a coding
question :slight_smile:

I’m trying to connect to the cleverreach API, but I stuck in the first line
of code.

ws = CreateObject(“webservice”,
http://api.cleverreach.com/soap/interface_v5.1.php?wsdl’);

results in the following error, and I have no clue what it is:

Lucee 4.5.0.042 Error (java.io.IOException) Message Type
{http://schemas.xmlsoap.org/wsdl/}string is referenced but not defined.
Cause java.io.IOException

Stacktrace:
Type {http://schemas.xmlsoap.org/wsdl/}string is referenced but not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665):665
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545):545
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518):518
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495):495
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361):361
at java.lang.Thread.run(Unknown Source):-1
at lucee.runtime.exp.NativeException.(Unknown Source):-1
at lucee.runtime.op.Caster.toPageException(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.run(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.(Unknown Source):-1
at lucee.runtime.net.rpc.client.WSClient.getInstance(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.doWebService(Unknown
Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at
cleverreach.api_cfm$cf.call(D:\Desktop\lucee-4.5.0.042-express\webapps\ROOT\cleverreach\api.cfm:64):64

Happy about any idea or hint.

Thanks,
Michi

I’m assuming that’s not an issue with Lucee, but the provided WSDL looks as if it could be the issue.

The error message tells your that the WSDL parser is looking for an element string in the namespace http://schemas.xmlsoap.org/wsdl and can’t find it.

As far as I can see, all string references are properly namespaced with xsd: but this one:

<xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType="string[]”/>

In the WSDL spec there is a wsdl:arrayType, nevertheless I would think the string[] should be xsd:string[] though and it seems to me with the string[] not being namespaced, Axis would try to interpret it as part of the WSDL namespace (and spec).

Cheers
Kai> Hi,

after all the Lucee posts about filextensions, etc. I have a coding question :slight_smile:

I’m trying to connect to the cleverreach API, but I stuck in the first line of code.

ws = CreateObject(“webservice”, ‘http://api.cleverreach.com/soap/interface_v5.1.php?wsdl’);

results in the following error, and I have no clue what it is:

Lucee 4.5.0.042 Error (java.io.IOException)
Message Type {http://schemas.xmlsoap.org/wsdl/}string is referenced but not defined.
Cause java.io.IOException

Stacktrace:
Type {http://schemas.xmlsoap.org/wsdl/}string is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665):665
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545):545
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518):518
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495):495
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361):361
at java.lang.Thread.run(Unknown Source):-1
at lucee.runtime.exp.NativeException.(Unknown Source):-1
at lucee.runtime.op.Caster.toPageException(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.run(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.(Unknown Source):-1
at lucee.runtime.net.rpc.client.WSClient.getInstance(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.doWebService(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at cleverreach.api_cfm$cf.call(D:\Desktop\lucee-4.5.0.042-express\webapps\ROOT\cleverreach\api.cfm:64):64

Happy about any idea or hint.

Thanks,
Michi


You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/9bedba56-b048-43c3-b9b2-3cda83aeb50b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

According to Axis website, 1.4 dated April 22, 2006 is the latest version.
https://axis.apache.org/axis/

Michael Hnat wrote:

The Problem seems to be the axis version used in Railo/Lucee which is dated
as:
Name: org/apache/axis
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services

Is there a way to replace it with the current version? I read, that it’s
not easy to do this, but currently I’m screwed, since I’m not able to
communicate with cleverreach. Am I the only one who has to communicate with
cleverreach?

It is for Axis 1.
But the service I have to consume requires Axis 2, which is currently
version 1.6.2, dated April 2012

Trying this with the latest Axis2 1.6.2 works fine:
‘./bin/wsdl2java.sh -uri "
http://api.cleverreach.com/soap/interface_v5.1.php?wsdl&literal=true"’;

still screwed,
MichiAm Montag, 9. Februar 2015 14:38:29 UTC+1 schrieb Judith Barnett:

According to Axis website, 1.4 dated April 22, 2006 is the latest version.
WebServices - Axis

Michael Hnat wrote:

The Problem seems to be the axis version used in Railo/Lucee which is
dated as:
Name: org/apache/axis
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services

Is there a way to replace it with the current version? I read, that it’s
not easy to do this, but currently I’m screwed, since I’m not able to
communicate with cleverreach. Am I the only one who has to communicate with
cleverreach?

Oh, cool! So, ignore my alternative suggestion from the previous mail then :)> Hi,

not screwed anymore :slight_smile:
Kai, thanks. It was exactly what you mentioned and cleverreach changed it to make their API Axis 1.4 compatible.

Thanks,
Michi

Am Montag, 9. Februar 2015 14:47:45 UTC+1 schrieb Michael Hnat:
It is for Axis 1.
But the service I have to consume requires Axis 2, which is currently version 1.6.2, dated April 2012

Trying this with the latest Axis2 1.6.2 works fine:
‘./bin/wsdl2java.sh -uri “http://api.cleverreach.com/soap/interface_v5.1.php?wsdl&literal=true”’;

still screwed,
Michi

Am Montag, 9. Februar 2015 14:38:29 UTC+1 schrieb Judith Barnett:
According to Axis website, 1.4 dated April 22, 2006 is the latest version.
WebServices - Axis

Michael Hnat wrote:

The Problem seems to be the axis version used in Railo/Lucee which is dated as:
Name: org/apache/axis
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services

Is there a way to replace it with the current version? I read, that it’s not easy to do this, but currently I’m screwed, since I’m not able to communicate with cleverreach. Am I the only one who has to communicate with cleverreach?


You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/9f880cdd-f7af-4691-be18-22d62fac0471%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,

not screwed anymore :slight_smile:
Kai, thanks. It was exactly what you mentioned and cleverreach changed it
to make their API Axis 1.4 compatible.

Thanks,
MichiAm Montag, 9. Februar 2015 14:47:45 UTC+1 schrieb Michael Hnat:

It is for Axis 1.
But the service I have to consume requires Axis 2, which is currently
version 1.6.2, dated April 2012

Trying this with the latest Axis2 1.6.2 works fine:
‘./bin/wsdl2java.sh -uri "
http://api.cleverreach.com/soap/interface_v5.1.php?wsdl&literal=true"’;

still screwed,
Michi

Am Montag, 9. Februar 2015 14:38:29 UTC+1 schrieb Judith Barnett:

According to Axis website, 1.4 dated April 22, 2006 is the latest version.
WebServices - Axis

Michael Hnat wrote:

The Problem seems to be the axis version used in Railo/Lucee which is
dated as:
Name: org/apache/axis
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services

Is there a way to replace it with the current version? I read, that it’s
not easy to do this, but currently I’m screwed, since I’m not able to
communicate with cleverreach. Am I the only one who has to communicate with
cleverreach?

Thanks for the hint.
I got in contact with the guys of Cleverreach and there is no problem when
using the latest wsdl2java 1.6.2 and even the Apache CXF 3.0.3.
The Problem seems to be the axis version used in Railo/Lucee which is dated
as:
Name: org/apache/axis
Implementation-Title: Apache Axis
Implementation-Version: 1.4 1855 April 22 2006
Implementation-Vendor: Apache Web Services

Is there a way to replace it with the current version? I read, that it’s
not easy to do this, but currently I’m screwed, since I’m not able to
communicate with cleverreach. Am I the only one who has to communicate with
cleverreach?

Still, any help welcome.Am Samstag, 7. Februar 2015 05:06:03 UTC+1 schrieb Kai Koenig:

I’m assuming that’s not an issue with Lucee, but the provided WSDL looks
as if it could be the issue.

The error message tells your that the WSDL parser is looking for an
element string in the namespace http://schemas.xmlsoap.org/wsdl and can’t
find it.

As far as I can see, all string references are properly namespaced with
xsd: but this one:

<xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType="string[]”/>

In the WSDL spec there is a wsdl:arrayType, nevertheless I would think the
string[] should be xsd:string[] though and it seems to me with the string[]
not being namespaced, Axis would try to interpret it as part of the WSDL
namespace (and spec).

Cheers
Kai

Hi,

after all the Lucee posts about filextensions, etc. I have a coding
question :slight_smile:

I’m trying to connect to the cleverreach API, but I stuck in the first
line of code.

ws = CreateObject(“webservice”, ’
http://api.cleverreach.com/soap/interface_v5.1.php?wsdl’);

results in the following error, and I have no clue what it is:

Lucee 4.5.0.042 Error (java.io.IOException) Message Type {
http://schemas.xmlsoap.org/wsdl/}string is referenced but not defined.
Cause java.io.IOException

Stacktrace:
Type {http://schemas.xmlsoap.org/wsdl/}string is referenced but not
defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665):665
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545):545
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518):518
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495):495
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361):361
at java.lang.Thread.run(Unknown Source):-1
at lucee.runtime.exp.NativeException.(Unknown Source):-1
at lucee.runtime.op.Caster.toPageException(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.run(Unknown Source):-1
at lucee.runtime.net.rpc.client.Axis1Client.(Unknown Source):-1
at lucee.runtime.net.rpc.client.WSClient.getInstance(Unknown
Source):-1
at lucee.runtime.functions.other.CreateObject.doWebService(Unknown
Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at lucee.runtime.functions.other.CreateObject.call(Unknown Source):-1
at
cleverreach.api_cfm$cf.call(D:\Desktop\lucee-4.5.0.042-express\webapps\ROOT\cleverreach\api.cfm:64):64

Happy about any idea or hint.

Thanks,
Michi


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/9bedba56-b048-43c3-b9b2-3cda83aeb50b%40googlegroups.com
https://groups.google.com/d/msgid/lucee/9bedba56-b048-43c3-b9b2-3cda83aeb50b%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Axis 2 is a very different implementation of Webservices than Axis 1 is.