|
|
Choosing A Webhost: |
Re: complex types: msg#00004apache.webservices.wsif.user
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-zgTDQQiK9oxhtNCalSJwRw@xxxxxxxxxxxxxxxx: > > 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-PpSE1VLvqfbNEupL49lbfA@xxxxxxxxxxxxxxxx wrote: ----- > > > To: wsif-user-28n8OjmUYWfNLxjTenLetw@xxxxxxxxxxxxxxxx, Luca Baldi > <Luca.Baldi-gfRZYDWn9zNBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> > From: mauro-PpSE1VLvqfbNEupL49lbfA@xxxxxxxxxxxxxxxx > Date: 09/14/2005 03:40PM > cc: wsif-user-28n8OjmUYWfNLxjTenLetw@xxxxxxxxxxxxxxxx > 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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: complex types, jdperez-zgTDQQiK9oxhtNCalSJwRw |
|---|---|
| Next by Date: | RE: complex types, Luca Baldi |
| Previous by Thread: | Re: complex types, jdperez-zgTDQQiK9oxhtNCalSJwRw |
| Next by Thread: | RE: complex types, Luca Baldi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |