Re: Exception on wsdl2java
The code is attached. I am trying to use the proxy example from the AXIS samples to create a proxy service. For security reason I cannot expose the final end point of the service in the WSDL. So I have to come up with another solution using JAVA. Thanks for the help. Find local movie times and trailers on Yahoo! Movies./* * Created on 27/05/2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package org.ndn.ws; import org.apache.axis.AxisFault; import org.apache.axis.message.SOAPEnvelope; import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.log4j.PropertyConfigurator; /** * @author Administrator * * TODO To change the template for this generated type comment go to Window - * Preferences - Java - Code Style - Code Templates */ public class NDNGateway { /** * Logger for this class */ private static final Log logger = LogFactory.getLog(NDNGateway.class); private static final String spacerText = "="; private static Configuration config; private static void loadConfig() { try { Configuration config = new PropertiesConfiguration( "NDNGateway.properties"); PropertyConfigurator.configure(config.getString("logfile")); if (logger.isDebugEnabled()) { logger.debug(spacerText); logger .debug("Debugging Configuration for NDNGateway has been loaded"); logger.debug(spacerText); } org.apache.xml.security.Init.init(); } catch (Exception e) { e.printStackTrace(); } } public void NDNGatewayService(SOAPEnvelope inEnvelope, SOAPEnvelope outEnvelope) throws AxisFault { loadConfig(); if (logger.isDebugEnabled()) { logger.debug(spacerText); logger.debug("NDNGateWayService"); logger.debug(spacerText); } } /* * (non-Javadoc) * * @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext) */ }
Re: Error in deserialization
Kumar, The WSDL you sent me contains this import: http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port"; location="parlayx_third_party_calling_service_port.wsdl" /> This imported WSDL contains the , , and definitions. I need to see this WSDL to answer your questions. Anne On 5/28/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > > Sorry about the sending, i just clicked reply, didn't notice it wasn't the > axis-user > > What do you mean by the imported WSDL document? > > Many thanks for nay help > > > > > > > > >We also need the imported WSDL document. > > > >One problem I noticed with this WSDL is that it uses "rpc" style, but > >it doesn't specify a namespace attribute in the > >descriptions. > > > >Thanks, > >Anne > > > >On 5/27/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > > > > > Here is the WSDL > > > > > > Thanks for any help > > > > > > > > > > > > - > > > - > > > >targetNamespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"; > > > xmlns="http://schemas.xmlsoap.org/wsdl/"; > > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > > > > >xmlns:tns="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"; > > > > >xmlns:port="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port";> > > >> > > >namespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port"; > > > location="parlayx_third_party_calling_service_port.wsdl" /> > > > - >type="port:ThirdPartyCallPort"> > > >>transport="http://schemas.xmlsoap.org/soap/http"; > > > /> > > > - > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > > > > - > > >>style="rpc" > > > /> > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > > > > - > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > > > > - > > >>style="rpc" > > > /> > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > - > > > > > > > > > > > > > > > - > > > - >binding="tns:ThirdPartyCallBinding"> > > >> > > >location="http://www.wwcc.bt.com:9000/ccx/parlayx_third_party_calling_service"; > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]> > > > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> > > > >To: axis-user@ws.apache.org > > > >Subject: Re: Error in deserialization > > > >Date: Fri, 27 May 2005 08:43:59 -0400 > > > > > > > >Can you provide us with the WSDL? > > > > > > > >Somewhere in either the request or response message there is an > > > >element of type EndUserIdentifier, and it appears that this element > > > >isn't mapping properly. > > > > > > > >Anne > > > > > > > >On 5/27/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > Hi all > > > > > > > > > > I'm trying to access an external web service and get this error when > >it > > > >gets > > > > > to this line > > > > > > > > > > String result = (String)call.invoke(new Object[] {param1, param2, > > > >param3}); > > > > > > > > > > Error in deserialization : failed deserializing value of type > > > > > {http://www.api.org/schema/par/common/v1_0} > > > > > EndUserIdentifier into class > >org.api.www.par.common.EndUserIdentifier > > > > > > > > > > > > > > > > > > > > I'm been back to the supplier of the web service but i'm not getting > > > >much > > > > > help from them. Does anyone know what this error means. I have to > >pass > > > >up > > > > > username and password in the http header and using the > >passweord/usernme > > > > > they gave me > > > > > > > > > > This is my code > > > > > > > > > > Can anyone see anything outstandingly wrong in my code > > > > > > > > > > Thanks for any help > > > > > > > > > > > > > > > > > > > > URL endpoint = new URL > > > > > > > > > > >("http://www.domain.com:9000/ccx/par_third_party_calling_service/encoded";); > > > > > > > > > > Service service = new Service(); > > > > > > > > > > Call call = (Call)service.createCall(); > > > > > > > > > > call.setTargetEndpointAddress(endpoint); > > > > > > > > > > call.setOperationName("methodName"); > > > > > > > > > > call.setUsername("username"); > > > > > > > > > > call.setPassword("password"); > > > > > > > > > > String result = (String)call.invoke(new Object[] {param1, param2, > > > >param3}); > > > > > > > > > > System.out.println("call result " + result); > > > > > > > > > > _ > > > > > Want to block unwanted pop-ups? Download the free MSN Toolbar now! > > > > > http://toolbar.msn.co.uk/ > > > > > > > > > > > > > > > > __
Re: Error in deserialization
Sorry about the sending, i just clicked reply, didn't notice it wasn't the axis-user What do you mean by the imported WSDL document? Many thanks for nay help We also need the imported WSDL document. One problem I noticed with this WSDL is that it uses "rpc" style, but it doesn't specify a namespace attribute in the descriptions. Thanks, Anne On 5/27/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > Here is the WSDL > > Thanks for any help > > > > - > - > targetNamespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"; > xmlns="http://schemas.xmlsoap.org/wsdl/"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:tns="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service"; > xmlns:port="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port";> > > namespace="http://www.csapi.org/wsdl/parlayx/third_party_calling/v1_0/service_port"; > location="parlayx_third_party_calling_service_port.wsdl" /> > - type="port:ThirdPartyCallPort"> > transport="http://schemas.xmlsoap.org/soap/http"; > /> > - > > - > > > - > > > - > > > - > > > - > > > > - > style="rpc" > /> > - > > > - > > > - > > > - > > > > - > > - > > > - > > > - > > > - > > > - > > > > - > style="rpc" > /> > - > > > - > > > - > > > - > > > - > > > > > - > - binding="tns:ThirdPartyCallBinding"> > > location="http://www.wwcc.bt.com:9000/ccx/parlayx_third_party_calling_service"; > /> > > > > > > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]> > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> > >To: axis-user@ws.apache.org > >Subject: Re: Error in deserialization > >Date: Fri, 27 May 2005 08:43:59 -0400 > > > >Can you provide us with the WSDL? > > > >Somewhere in either the request or response message there is an > >element of type EndUserIdentifier, and it appears that this element > >isn't mapping properly. > > > >Anne > > > >On 5/27/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi all > > > > > > I'm trying to access an external web service and get this error when it > >gets > > > to this line > > > > > > String result = (String)call.invoke(new Object[] {param1, param2, > >param3}); > > > > > > Error in deserialization : failed deserializing value of type > > > {http://www.api.org/schema/par/common/v1_0} > > > EndUserIdentifier into class org.api.www.par.common.EndUserIdentifier > > > > > > > > > > > > I'm been back to the supplier of the web service but i'm not getting > >much > > > help from them. Does anyone know what this error means. I have to pass > >up > > > username and password in the http header and using the passweord/usernme > > > they gave me > > > > > > This is my code > > > > > > Can anyone see anything outstandingly wrong in my code > > > > > > Thanks for any help > > > > > > > > > > > > URL endpoint = new URL > > > > >("http://www.domain.com:9000/ccx/par_third_party_calling_service/encoded";); > > > > > > Service service = new Service(); > > > > > > Call call = (Call)service.createCall(); > > > > > > call.setTargetEndpointAddress(endpoint); > > > > > > call.setOperationName("methodName"); > > > > > > call.setUsername("username"); > > > > > > call.setPassword("password"); > > > > > > String result = (String)call.invoke(new Object[] {param1, param2, > >param3}); > > > > > > System.out.println("call result " + result); > > > > > > _ > > > Want to block unwanted pop-ups? Download the free MSN Toolbar now! > > > http://toolbar.msn.co.uk/ > > > > > > > > _ > Winks & nudges are here - download MSN Messenger 7.0 today! > http://messenger.msn.co.uk > > _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters
Re: wsdl problem
There are likely more errors to be thrown but after stepping through the code, it appears that once this exception is thrown, the process stops. Thanks for your response. This wsdl was driving me crazy. --- Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > It's because the element is > in the > "http://www.AbundantTech.com/WebServices/Population"; > namespace, not > the > "http://www.abundanttech.com/WebServices/Population"; > namespace. > > (Namespace URIs are case sensitive.) > > Change the targetNamespace URI of your WSDL to > "http://www.AbundantTech.com/WebServices/Population";. > > I'm actually surprised that wsdl2java doesn't throw > a lot more errors, > though, because you're missing a bunch of namespace > declarations (the > default namespace, and the "s", "s0", and "soap" > prefixes need to be > declared). > > Anne > > On 5/27/05, footh <[EMAIL PROTECTED]> wrote: > > I am trying to generate proxy classes with > wsdlToJava > > using this wsdl: > > > > > http://www.abundanttech.com/webservices/population/population.wsdl > > > > However, I receive this error: > > > > java.io.IOException: Element > > > {http://www.abundanttech.com/WebServices/Population > > }getCountriesResponse is referenced but not > defined. > > > > Upon examining the wsdl, the getCountriesResponse > > element seems to be OK to me. Can anyone > enlighten me > > as to what I might be missing? > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Mail - Helps protect you from nasty > viruses. > > http://promotions.yahoo.com/new_mail > > > __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/
On wsdl2java
i use this wsdl to generate my files types and other stubs, but with wsdl2java only generate this file: ICalcul.java ICalculservice.java ICalculserviceLocator.java ICalculbindingStub.java and no other files types why? _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com http://schemas.xmlsoap.org/wsdl/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="ICalculservice" targetNamespace="http://tempuri.org/"; xmlns:tns="http://tempuri.org/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:ns1="urn:MyTypes"> http://schemas.xmlsoap.org/wsdl/"/> http://schemas.xmlsoap.org/soap/http"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:CalculIntf-ICalcul"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:CalculIntf-ICalcul"/> http://localhost:8088/cgi-bin/Project3.exe/soap/ICalcul"/>
Re: Exception on wsdl2java
Oops, wrong thread, sorry! I'm the loony using WSDL2Java not Java2WSDL! Jeff - Original Message - From: "Jeff" <[EMAIL PROTECTED]> To: ; "Anne Thomas Manes" <[EMAIL PROTECTED]> Sent: Saturday, May 28, 2005 10:08 AM Subject: Re: Exception on wsdl2java > Oh, blimey...yes, I am using the message style interface, Anne. Everything > worked fine under Axis 1.1...actually not quite everything: there is an > entirely unrelated problem that Axis 1.1 has, so I moved to Axis 1.2 which > made that problem go away, the trouble is that I now have the 'message style > interface' problem. I guess I should have RTFM but I didn't, I just assumed > that Axis 1.2 would be a superset of Axis 1.1, as it were. > > Jeff > > > - Original Message - > From: "Anne Thomas Manes" <[EMAIL PROTECTED]> > To: > Sent: Saturday, May 28, 2005 9:55 AM > Subject: Re: Exception on wsdl2java > > > What's the code you used to generate this WSDL? > > I get the sense that you're using the message style interface, in > which case java2wsdl has absolutely no sense of what the appropriate > WSDL should look like, and you can't expect the utility to work > properly. When using the message style interface, you must handcraft > your WSDL. > > Anne > > On 5/28/05, Jason Liu <[EMAIL PROTECTED]> wrote: > > > > Anne is correct, there are some other namespace definitions such > > as: xmlns:tns3="http://dom.w3c.org";, there is no such schema found at that > > URL, so it will error out too. I ran BEA's clientgen against the wsdl and > it > > complained about that namespace. > > > > Is axis 1.2 too buggy? > > > > > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]> > > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> > > >To: axis-user@ws.apache.org > > >Subject: Re: Exception on wsdl2java > > >Date: Sat, 28 May 2005 09:19:20 -0400 > > > > > >Wayne, > > > > > >Your error is being caused by this type reference: > > > > >type="tns6:Attributes" /> > > >in the definition of the MessageElement type. > > > > > >tns6 is declared as: > > > xmlns:tns6="http://sax.xml.org";. > > > > > >This namespace has been imported: > > > http://sax.xml.org"; /> > > >but you don't provide a schemaLocation, and there is no schema at the > > >specified URI.Therefore wsdl2java doesn't know how to process the > > >tns6:Attributes type. > > > > > >Anne > > > > > >On 5/28/05, Wayne Richards <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > I have a problem in trying to generate a client using the attached > wsdl > > > > file. > > > > I don't understand the message or how to fix the problem. Has anyone > had > > > > this problemm before and is able to give some advice? > > > > > > > > the error is: > > > > > > > > > > > > C:\workspace\axisNDNHandlers\src>wsdl2java > > > > C:\workspace\axisNDNHandlers\src>java -cp > > > > C:\Tomcat\webapps\axis\WEB-INF\lib\act > > > > > > > >ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\a > xis\W > > > > > > > >EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\com > mons- > > > > > > > >discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\w > ebapp > > > > > > > >s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail. > jar;C > > > > > > > >:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\l > ib\ws > > > > > > > >dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomca > t\web > > > > > > > >apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis > \WEB- > > > > > > > >INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\comm > ons-c > > > > > > > >onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.ja > r;C:\ > > > > > > > >Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis > \WEB- > > > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java > > > > "NDNGATEWAY.wsdl > > > > " > > > > log4j:WARN No appenders could be found for logger > > > > (org.apache.axis.i18n.ProjectR > > > > esourceBundle). > > > > log4j:WARN Please initialize the log4j system properly. > > > > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced > > >but > > > > not d > > > > efined. > > > > at > > > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > > > > Table.java:663) > > > > at > > > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 > > > > ) > > > > at > > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > > a:516) > > > > at > > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > > a:493) > > > > at > > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > > > > at java.lang.Thread.run(Unknown Source) > > > > C:\workspace\axisNDNHandlers\src> > > > > > > > > Any help appreciated > > > > Regards > > > > Wayne > > >
Re: Exception on wsdl2java
Oh, blimey...yes, I am using the message style interface, Anne. Everything worked fine under Axis 1.1...actually not quite everything: there is an entirely unrelated problem that Axis 1.1 has, so I moved to Axis 1.2 which made that problem go away, the trouble is that I now have the 'message style interface' problem. I guess I should have RTFM but I didn't, I just assumed that Axis 1.2 would be a superset of Axis 1.1, as it were. Jeff - Original Message - From: "Anne Thomas Manes" <[EMAIL PROTECTED]> To: Sent: Saturday, May 28, 2005 9:55 AM Subject: Re: Exception on wsdl2java What's the code you used to generate this WSDL? I get the sense that you're using the message style interface, in which case java2wsdl has absolutely no sense of what the appropriate WSDL should look like, and you can't expect the utility to work properly. When using the message style interface, you must handcraft your WSDL. Anne On 5/28/05, Jason Liu <[EMAIL PROTECTED]> wrote: > > Anne is correct, there are some other namespace definitions such > as: xmlns:tns3="http://dom.w3c.org";, there is no such schema found at that > URL, so it will error out too. I ran BEA's clientgen against the wsdl and it > complained about that namespace. > > Is axis 1.2 too buggy? > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]> > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> > >To: axis-user@ws.apache.org > >Subject: Re: Exception on wsdl2java > >Date: Sat, 28 May 2005 09:19:20 -0400 > > > >Wayne, > > > >Your error is being caused by this type reference: > > >type="tns6:Attributes" /> > >in the definition of the MessageElement type. > > > >tns6 is declared as: > > xmlns:tns6="http://sax.xml.org";. > > > >This namespace has been imported: > > http://sax.xml.org"; /> > >but you don't provide a schemaLocation, and there is no schema at the > >specified URI.Therefore wsdl2java doesn't know how to process the > >tns6:Attributes type. > > > >Anne > > > >On 5/28/05, Wayne Richards <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a problem in trying to generate a client using the attached wsdl > > > file. > > > I don't understand the message or how to fix the problem. Has anyone had > > > this problemm before and is able to give some advice? > > > > > > the error is: > > > > > > > > > C:\workspace\axisNDNHandlers\src>wsdl2java > > > C:\workspace\axisNDNHandlers\src>java -cp > > > C:\Tomcat\webapps\axis\WEB-INF\lib\act > > > > >ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\a xis\W > > > > >EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\com mons- > > > > >discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\w ebapp > > > > >s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail. jar;C > > > > >:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\l ib\ws > > > > >dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomca t\web > > > > >apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis \WEB- > > > > >INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\comm ons-c > > > > >onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.ja r;C:\ > > > > >Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis \WEB- > > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java > > > "NDNGATEWAY.wsdl > > > " > > > log4j:WARN No appenders could be found for logger > > > (org.apache.axis.i18n.ProjectR > > > esourceBundle). > > > log4j:WARN Please initialize the log4j system properly. > > > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced > >but > > > not d > > > efined. > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > > > Table.java:663) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 > > > ) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > a:516) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > a:493) > > > at > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > > > at java.lang.Thread.run(Unknown Source) > > > C:\workspace\axisNDNHandlers\src> > > > > > > Any help appreciated > > > Regards > > > Wayne > > > > > > > > > > > > Find local movie times and trailers on Yahoo! Movies. > > > > > > > > > > > > > > >
Re: Exception on wsdl2java
What's the code you used to generate this WSDL? I get the sense that you're using the message style interface, in which case java2wsdl has absolutely no sense of what the appropriate WSDL should look like, and you can't expect the utility to work properly. When using the message style interface, you must handcraft your WSDL. Anne On 5/28/05, Jason Liu <[EMAIL PROTECTED]> wrote: > > Anne is correct, there are some other namespace definitions such > as: xmlns:tns3="http://dom.w3c.org";, there is no such schema found at that > URL, so it will error out too. I ran BEA's clientgen against the wsdl and it > complained about that namespace. > > Is axis 1.2 too buggy? > > > > >From: Anne Thomas Manes <[EMAIL PROTECTED]> > >Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> > >To: axis-user@ws.apache.org > >Subject: Re: Exception on wsdl2java > >Date: Sat, 28 May 2005 09:19:20 -0400 > > > >Wayne, > > > >Your error is being caused by this type reference: > > >type="tns6:Attributes" /> > >in the definition of the MessageElement type. > > > >tns6 is declared as: > > xmlns:tns6="http://sax.xml.org";. > > > >This namespace has been imported: > > http://sax.xml.org"; /> > >but you don't provide a schemaLocation, and there is no schema at the > >specified URI.Therefore wsdl2java doesn't know how to process the > >tns6:Attributes type. > > > >Anne > > > >On 5/28/05, Wayne Richards <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a problem in trying to generate a client using the attached wsdl > > > file. > > > I don't understand the message or how to fix the problem. Has anyone had > > > this problemm before and is able to give some advice? > > > > > > the error is: > > > > > > > > > C:\workspace\axisNDNHandlers\src>wsdl2java > > > C:\workspace\axisNDNHandlers\src>java -cp > > > C:\Tomcat\webapps\axis\WEB-INF\lib\act > > > > >ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W > > > > >EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons- > > > > >discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp > > > > >s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C > > > > >:\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws > > > > >dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web > > > > >apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB- > > > > >INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c > > > > >onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\ > > > > >Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB- > > > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java > > > "NDNGATEWAY.wsdl > > > " > > > log4j:WARN No appenders could be found for logger > > > (org.apache.axis.i18n.ProjectR > > > esourceBundle). > > > log4j:WARN Please initialize the log4j system properly. > > > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced > >but > > > not d > > > efined. > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > > > Table.java:663) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 > > > ) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > a:516) > > > at > > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > > > a:493) > > > at > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > > > at java.lang.Thread.run(Unknown Source) > > > C:\workspace\axisNDNHandlers\src> > > > > > > Any help appreciated > > > Regards > > > Wayne > > > > > > > > > > > > Find local movie times and trailers on Yahoo! Movies. > > > > > > > > > > > > > > >
Re: Exception on wsdl2java
Anne is correct, there are some other namespace definitions such as: xmlns:tns3="http://dom.w3c.org";, there is no such schema found at that URL, so it will error out too. I ran BEA's clientgen against the wsdl and it complained about that namespace. Is axis 1.2 too buggy? From: Anne Thomas Manes <[EMAIL PROTECTED]> Reply-To: Anne Thomas Manes <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Subject: Re: Exception on wsdl2java Date: Sat, 28 May 2005 09:19:20 -0400 Wayne, Your error is being caused by this type reference: type="tns6:Attributes" /> in the definition of the MessageElement type. tns6 is declared as: xmlns:tns6="http://sax.xml.org";. This namespace has been imported: http://sax.xml.org"; /> but you don't provide a schemaLocation, and there is no schema at the specified URI.Therefore wsdl2java doesn't know how to process the tns6:Attributes type. Anne On 5/28/05, Wayne Richards <[EMAIL PROTECTED]> wrote: > Hi all, > I have a problem in trying to generate a client using the attached wsdl > file. > I don't understand the message or how to fix the problem. Has anyone had > this problemm before and is able to give some advice? > > the error is: > > > C:\workspace\axisNDNHandlers\src>wsdl2java > C:\workspace\axisNDNHandlers\src>java -cp > C:\Tomcat\webapps\axis\WEB-INF\lib\act > ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W > EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons- > discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp > s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C > :\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws > dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web > apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB- > INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c > onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\ > Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB- > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java > "NDNGATEWAY.wsdl > " > log4j:WARN No appenders could be found for logger > (org.apache.axis.i18n.ProjectR > esourceBundle). > log4j:WARN Please initialize the log4j system properly. > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced but > not d > efined. > at > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > Table.java:663) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 > ) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > a:516) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > a:493) > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > at java.lang.Thread.run(Unknown Source) > C:\workspace\axisNDNHandlers\src> > > Any help appreciated > Regards > Wayne > > > > Find local movie times and trailers on Yahoo! Movies. > > > >
Re: WSDL2Java bug in Axis 1.2 (and 1.2.1)
Sorry Anne, it was 1:00 a.m. and I was falling asleep. (The trailing slash in the element declarations indicates my 'cut and paste' typo.) I should have sent: This pattern: causes WSDL2Java to throw: java.io.IOException: Type {http://ay-bee-cee/}MyOtherElement is referenced but not defined maxOccurs="unbounded" is causing the problem because this pattern: does not throw an exception, though it's too far from what I want. I discovered, however, that this pattern: didn't throw an exception either and it produced code from which I could easily remove MyUnwantedElement-related content. Jeff Lawson - Original Message - From: "Anne Thomas Manes" <[EMAIL PROTECTED]> To: Sent: Saturday, May 28, 2005 9:03 AM Subject: Re: WSDL2Java bug in Axis 1.2 (and 1.2.1) Jeff, None of these structures is valid schema. Could you try your test again with valid structures? This is valid: And this is valid: Thanks, Anne On 12/28/04, Jeff <[EMAIL PROTECTED]> wrote: > > Here's a WSDL2Java bug in Axis 1.2 (and 1.2.1) > > > This pattern: > > > > >maxOccurs="unbounded"/> > > > > > causes WSDL2Java to throw: > > java.io.IOException: Type > {http://ay-bee-cee/}MyOtherElement is referenced but not > defined > > > maxOccurs="unbounded" is causing the problem because this pattern: > > > > > > > > > > does not throw an exception, though it's too far from what I want. I > discovered, however, that this pattern: > > > > > > >maxOccurs="unbounded"/> > > > > > didn't throw an exception either and it produced code from which I could > easily remove MyUnwantedElement-related content. > > > Jeff Lawson >
Re: Exception on wsdl2java
Anne, Thanks for the help. The question is why does the java2wsdl put this reference in if it is not valid. I have tries to find the schema for sax and have not found one for sax or soapenvelope? Do you how why the java2wsdl is not placing proper location in the wsdl? or where to find the missing schema? Thanks for the help Wayne Anne Thomas Manes <[EMAIL PROTECTED]> wrote: Wayne,Your error is being caused by this type reference:in the definition of the MessageElement type. tns6 is declared as: xmlns:tns6="http://sax.xml.org". This namespace has been imported:but you don't provide a schemaLocation, and there is no schema at thespecified URI.Therefore wsdl2java doesn't know how to process thetns6:Attributes type.AnneOn 5/28/05, Wayne Richards <[EMAIL PROTECTED]>wrote:> Hi all, > I have a problem in trying to generate a client using the attached wsdl> file. > I don't understand the message or how to fix the problem. Has anyone had> this problemm before and is able to give some advice? > > the error is: > > > C:\workspace\axisNDNHandlers\src>wsdl2java > C:\workspace\axisNDNHandlers\src>java -cp> C:\Tomcat\webapps\axis\WEB-INF\lib\act> ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W> EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-> discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp> s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C> :\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws> dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web> apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB-> INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c> onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\> Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB-> INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java> "NDNGATEWAY.wsdl> "> log4j:WARN No appenders could be found for logger> (org.apache.axis.i18n.ProjectR> esourceBundle).> log4j:WARN Please initialize the log4j system properly.> java.io.IOException: Type {http://sax.xml.org}Attributes is referenced but> not d> efined.> at> org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol> Table.java:663)> at> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543> )> at> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav> a:516)> at> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav> a:493)> at> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)> at java.lang.Thread.run(Unknown Source) > C:\workspace\axisNDNHandlers\src>> > Any help appreciated > Regards > Wayne> > > > Find local movie times and trailers on Yahoo! Movies.> > > > Find local movie times and trailers on Yahoo! Movies.
Re: Exception on wsdl2java
Wayne, Your error is being caused by this type reference: in the definition of the MessageElement type. tns6 is declared as: xmlns:tns6="http://sax.xml.org";. This namespace has been imported: http://sax.xml.org"; /> but you don't provide a schemaLocation, and there is no schema at the specified URI.Therefore wsdl2java doesn't know how to process the tns6:Attributes type. Anne On 5/28/05, Wayne Richards <[EMAIL PROTECTED]> wrote: > Hi all, > I have a problem in trying to generate a client using the attached wsdl > file. > I don't understand the message or how to fix the problem. Has anyone had > this problemm before and is able to give some advice? > > the error is: > > > C:\workspace\axisNDNHandlers\src>wsdl2java > C:\workspace\axisNDNHandlers\src>java -cp > C:\Tomcat\webapps\axis\WEB-INF\lib\act > ivation.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat\webapps\axis\W > EB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons- > discovery-0.2.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\JAXRPC.JAR;C:\Tomcat\webapp > s\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\mail.jar;C > :\Tomcat\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\ws > dl4j-1.5.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\xmlsec-1.2.1.jar;C:\Tomcat\web > apps\axis\WEB-INF\lib\commons-attributes-api-2.1.jar;C:\Tomcat\webapps\axis\WEB- > INF\lib\commons-collections-3.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-c > onfiguration-1.1.jar;C:\Tomcat\webapps\axis\WEB-INF\lib\commons-lang-2.0.jar;C:\ > Tomcat\webapps\axis\WEB-INF\lib\commons-math-1.0.jar;C:\Tomcat\webapps\axis\WEB- > INF\lib\jakarta-regexp-1.3.jar;. org.apache.axis.wsdl.WSDL2Java > "NDNGATEWAY.wsdl > " > log4j:WARN No appenders could be found for logger > (org.apache.axis.i18n.ProjectR > esourceBundle). > log4j:WARN Please initialize the log4j system properly. > java.io.IOException: Type {http://sax.xml.org}Attributes is referenced but > not d > efined. > at > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol > Table.java:663) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 > ) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > a:516) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav > a:493) > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > at java.lang.Thread.run(Unknown Source) > C:\workspace\axisNDNHandlers\src> > > Any help appreciated > Regards > Wayne > > > > Find local movie times and trailers on Yahoo! Movies. > > > >
Re: WSDL2Java bug in Axis 1.2 (and 1.2.1)
Jeff, None of these structures is valid schema. Could you try your test again with valid structures? This is valid: And this is valid: Thanks, Anne On 12/28/04, Jeff <[EMAIL PROTECTED]> wrote: > > Here's a WSDL2Java bug in Axis 1.2 (and 1.2.1) > > > This pattern: > > > > >maxOccurs="unbounded"/> > > > > > causes WSDL2Java to throw: > > java.io.IOException: Type > {http://ay-bee-cee/}MyOtherElement is referenced but not > defined > > > maxOccurs="unbounded" is causing the problem because this pattern: > > > > > > > > > > does not throw an exception, though it's too far from what I want. I > discovered, however, that this pattern: > > > > > > >maxOccurs="unbounded"/> > > > > > didn't throw an exception either and it produced code from which I could > easily remove MyUnwantedElement-related content. > > > Jeff Lawson >
Extended types is missing in WSDL - bug?
To explain my problem I have written a small sample application, having only four classes: an abstract Address class with to subclasses DanishAddress and UnitedStatesAddress. The last class is a separate Envelope class containing to private members both of type Address: sender and receiver. A method is then published, using a WSDD declaring beanMappings for all four classes: public int addAddress(Address address) { return 42; } This works out quite well in the generated WSDL, having Address declared as an abstract type, along with both DanishAddress and UnitedStatesAddess as extentions to Address. Now, if I instead of the addAddress method publish an addEnvelope method, as show below, only the Envelope and the abstract class Address is in the WSDL - without the two subclasses.: public int addEnvelope(Envelope envelope) { return 42; } Without the type definitions of DanishAddress and UnitedStatesAddress there is no proper definition i the WSDL of what an Address might be. It seems that the subclasses are missing only when the superclass is part of another class So my question is: Did I miss something in the documentation, is this simply not possible, is it just not implemented yet or is it a bug? Any help, comments, references to documentation or other postings are appreciated. Thanks for your time! Regards, Tim Hallwyl