Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: complex types: msg#00007

apache.webservices.wsif.user

Subject: RE: complex types

I have made some progress, but not too much. I have replaced my wsdl4j-1.5.jar
with wsdl4j-1.4.jar.
At first it didn't work, but what I had to do was reshuffle the order in which
my jars get invoked. For example, I am using Eclipse IDE, and you can move jars
up and down the order in which the compiler tries to find its references.
Doing that, the ClassCastException disappeared.
Unfortunately I am trying to consume Web Services dynamically, and complex
types don't seem to be supported yet dinamically.

Anyway, Mauro try and shake your jars about a wee bit and see if that helps. It
did with me....

Luca

-----Original Message-----
From: mauro@xxxxxxxxxxxxx [mailto:mauro@xxxxxxxxxxxxx]
Sent: 15 September 2005 13:44
To: wsif-user@xxxxxxxxxxxxx; Luca Baldi
Cc: wsif-user@xxxxxxxxxxxxx; jdperez@xxxxxxxxxxxxx
Subject: RE: complex types

Hi Luca,

I am using the following version (all of them I got with the wsif-bin-2.0 file
download):

wsif-2.0.jar
axis-1_0.jar
wsdl4j-20021124.jar

Do you think that I need to update some version ?

Cheers,
Mauro Monteiro.

Citando Luca Baldi <Luca.Baldi@xxxxxxxxxxx>:

> Hi there.
> I had a wee look at past emails, and it seems like there is some kind of
> conflict with wsif.jar, axis.jar and wsdl4j.jar.
> What versions are you using of the above ??
> I have the latest wsif-2.0.jar, axis-1.2.1.jar and wsdl-1.5.jar.
>
> Here's the link
>
> http://marc.theaimsgroup.com/?l=wsif-user&m=111514929925689&w=2
>
> I am not sure there is a way round.
>
> Luca
>
> -----Original Message-----
> From: mauro@xxxxxxxxxxxxx [mailto:mauro@xxxxxxxxxxxxx]
> Sent: 15 September 2005 04:45
> To: wsif-user@xxxxxxxxxxxxx; jdperez@xxxxxxxxxxxxx
> Cc: wsif-user@xxxxxxxxxxxxx
> Subject: Re: complex types
>
> Hi Juan,
>
> I tried again with the following code:
>
> public class DocWSDLComplex {
>
> public static void main( String[] args ) {
>
> Service serviceWsdl = null;
> PortType portTypeWsdl = null;
> String serviceNS = null;
> String serviceName = null;
> String portTypeNS = null;
> String portTypeName = null;
>
> String wsdlLoc =
> "http://localhost:8080/axis/services/AverageCalculator?wsdl";;
>
> try {
>
> WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
> WSIFService service = factory.getService( wsdlLoc, serviceNS,
> serviceName,
> portTypeNS, portTypeName );
> }
> catch( WSIFException e ) {
>
> e.printStackTrace();
> }
> }
>
> }
>
> Unfortunately it did not happen. In my wsdl file I have a Vector as an input
> parameter. Do you have any example code that I can test ? any idea ?
>
> Cheers,
> Mauro Monteiro.
>
>
> Citando jdperez@xxxxxxxxxxxxx:
>
> >
> > Hi
> >
> > I don’t know what your problem is; actually I’m using WSIF
> with simple
> > and
> > complex types. There is one difference in my code I don’t get the
> service
> > instance this way:
> >
> > WSIFService service = factory.getService(def, serviceWsdl, portTypeWsdl);
> >
> > But passing the wsdl location like this:
> >
> > service = factory.getService(wsdlLoc, serviceNS, serviceName, portTypeNS,
> > portTypeName);
> >
> > I took a look into the code and I found out that they load the wsdl this
> > way if I pass the wsdl location no the definition:
> >
> > try {
> > def = WSIFUtils.readWSDL(null, wsdlLoc, cl);
> > checkWSDL(def);
> > } catch (WSDLException ex) {
> > Trc.exception(ex);
> > throw new WSIFException("could not load " + wsdlLoc, ex);
> > }
> >
> > You may be missing the check of the wsdl. I would give a chance to try
> this
> > method:
> >
> > getService(String wsdlLoc, String serviceNS, String serviceName, String
> > portTypeNS, String portTypeName)
> >
> > Hope this helps
> >
> > ___________________________________
> > Juan David Pérez
> > Assist
> >
> >
> >
> > -----mauro@xxxxxxxxxxxxx wrote: -----
> >
> >
> > To: wsif-user@xxxxxxxxxxxxx, Luca Baldi <Luca.Baldi@xxxxxxxxxxx>
> > From: mauro@xxxxxxxxxxxxx
> > Date: 09/14/2005 03:40PM
> > cc: wsif-user@xxxxxxxxxxxxx
> > Subject: Re: complex types
> >
> > Hi everyone,
> >
> > I am trying to do the same thing that luca tried and I've received the
> same
> > message error. What can we do ?
> >
> > Cheers,
> > Mauro Monteiro.
> >
> > Citando Luca Baldi :
> >
> > > When I try to run
> > >
> > >
> > >
> > > Definition def = WSIFUtils.readWSDL(null,wsdl);
> > >
> > >
> > >
> > > ......
> > >
> > >
> > >
> > > WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
> > >
> > >
> > >
> > > WSIFService service = factory.getService(def, serviceWsdl,
> > > portTypeWsdl);
> > >
> > >
> > >
> > > If the wsl file contains complex types, I get
> > >
> > >
> > >
> > > java.lang.ClassCastException
> > >
> > > at org.apache.wsif.compiler.util.Utils.addAllTypesElements(Unknown
> > > Source)
> > >
> > > at org.apache.wsif.compiler.util.Utils.getAllTypesElements(Unknown
> > > Source)
> > >
> > > at
> > > org.apache.wsif.base.WSIFServiceImpl.getDefaultTypeMappings(Unknown
> > > Source)
> > >
> > > at org.apache.wsif.base.WSIFServiceImpl.getAllCustomTypes(Unknown
> > > Source)
> > >
> > > at org.apache.wsif.base.WSIFServiceImpl.init(Unknown Source)
> > >
> > > at org.apache.wsif.base.WSIFServiceImpl.(Unknown Source)
> > >
> > > at org.apache.wsif.base.WSIFServiceFactoryImpl.getService(Unknown
> > > Source)
> > >
> > >
> > >
> > > any idea ??
> > >
> > > thanks
> > >
> > >
> > >
> > > luca
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation