Submitted by Robert F Harwood on Jan 13, 2012 10:31:23 AM

Re: Using existing Web Services in an Xpage

will check formatting

Submitted by Robert F Harwood on Jan 13, 2012 10:29:48 AM

Re: Using existing Web Services in an Xpage

will check formatting

Submitted by Markus Wuestemann on Sep 8, 2011 11:18:08 AM

Re: Using existing Web Services in an Xpage

Hi,

first i tryed

var service = new org.apache.axis.client.Service;

for this I get the following error:

Script interpreter error, line=4, col=48: [ReferenceError] 'org' not found

okay now I looked in the java perspective for the package name

i found "lotus.domino.axis.client.Service". now i tryed to use this:

var service = new lotus.domino.axis.client.Service;

for this I get the following error:

Script interpreter error, line=3, col=50: Cannot find java public constructor 'lotus.domino.axis.client.Service()'

Whats wrong ?

How can I create an Service object with a public constructor?

I'm working with a Domino 8.5.2

Script interpreter error, line=3, col=50: Cannot find java public constructor 'lotus.domino.axis.client.Service()'

Submitted by Petri Niemi on Jan 18, 2011 9:17:19 AM

Re: Using existing Web Services in an Xpage

For me this helped with complex objects.

this.service.getTypeMappingRegistry().getDefaultTypeMapping().register(

fi.package.TypeClass,

new javax.xml.namespace.QName("http://ws.mesquerytoolsrv.mes.nokia.com/", "TypeName"),

new org.apache.axis.encoding.ser.BeanSerializerFactory(fi.package.TypeClass, new javax.xml.namespace.QName("http://namespace.fi", "TypeName")),

new org.apache.axis.encoding.ser.BeanDeserializerFactory(fi.package.TypeClass, new javax.xml.namespace.QName("http://namespace.fi", "TypeName"))

);

this.call.setReturnType(new javax.xml.namespace.QName("http://namespace.fi", "TypeName"));

Submitted by Petri Niemi on Jan 18, 2011 9:16:31 AM

Re: Using existing Web Services in an Xpage

For me this helped with complicated return objects.

this.service.getTypeMappingRegistry().getDefaultTypeMapping().register(

fi.package.TypeClass,

new javax.xml.namespace.QName("http://ws.mesquerytoolsrv.mes.nokia.com/", "TypeName"),

new org.apache.axis.encoding.ser.BeanSerializerFactory(fi.package.TypeClass, new javax.xml.namespace.QName("http://namespace.fi", "TypeName")),

new org.apache.axis.encoding.ser.BeanDeserializerFactory(fi.package.TypeClass, new javax.xml.namespace.QName("http://namespace.fi", "TypeName"))

);

this.call.setReturnType(new javax.xml.namespace.QName("http://namespace.fi", "TypeName"));

Submitted by Anders Pamlin on Jan 14, 2011 10:23:09 AM

Re: Using existing Web Services in an Xpage

I also get this java.lang.reflect.InvocationTargetException error from the line

var service = new org.apache.axis.client.Service;

I am running Domino 8.5.1.

Submitted by Debco Support on Oct 20, 2010 9:15:58 AM

Using existing Web Services in an Xpage

I can't seem to create the Service, I'm having thesame error as Claudio. Any help?

Submitted by Claudio Riedi on Mar 15, 2010 12:41:55 PM

Using existing Web Services in an Xpage

I get the following error on the first line of your example code

Script interpreter error, line=1, col=73: Error while calling java constructor 'org.apache.axis.client.Service()' (java.lang.reflect.InvocationTargetException).

Internal ClassLoader mismatch

Can you give me any hint?

Thanks

Submitted by David Leedy on Jul 23, 2009 10:43:24 AM

Return Parameters

It looks like this example is for a webservice that returns a single parameter. What would need to be changed if the web service returned multiple parameters?

Thanks!!