Thank you for you answer. 
I corrected it and found a way to validate it.
WSDL is difficult to learned and the author of the book I had didn't know how 
namespaces really work in xml.

About the exceptions I had. I don't know what the cause was but it didn't 
worked when executed in exclipse (executing it in an alternate JRE) but it 
worked with both JRE once build and executed alone.


Jérôme Mainaud
Klee Group
[EMAIL PROTECTED]
+33 146 295 825
 
 

> -----Message d'origine-----
> De : Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 12 septembre 2007 20:41
> À : [email protected]
> Objet : Re: [Axis2] Two errors when migrating from Axis2 1.1 
> to Axis2 1.3 at client side
> 
> Your WSDL is not valid.
> 
> A quick validation returned these errors:
> 
> Warning : 1004 : There is no schema component of the name 
> [vide] defined in the WSDL either via imported or embedded schema.
> 
> Warning : 1004 : There is no schema component of the name 
> [typeTypeFichier] defined in the WSDL either via imported or 
> embedded schema.
> 
> Warning : 1004 : There is no schema component of the name 
> [idDossier] defined in the WSDL either via imported or 
> embedded schema.
> 
> Warning : 1004 : There is no schema component of the name 
> [uploadSession] defined in the WSDL either via imported or 
> embedded schema.
> 
> These errors are caused by the fact that you do not qualify 
> your references to types and elements in your schema.
> 
> e.g.,  this declaration:
> 
>    <xs:element name-"listerLesTypesDeFichier" type="vide"/>
> 
> should be:
> 
>    <xs:element name-"listerLesTypesDeFichier" type="types:vide"/>
> 
> Anne
> 
> On 9/12/07, Jérôme MAINAUD <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello,
> >
> > I try to migrate from Axis2 1.1 to Axis2 1.3 at client side 
> and I get 
> > two errors. Maybe I missed something so any help would be helpful.
> >
> > The context :
> > I got a client used without any binding just directly 
> calling the API.
> > This client is embded in a applet so I do not control the 
> version of 
> > jre that runs it except it is 1.4.2 or more.
> > It worked fine with 1.1 except I got and bad exception in Stax when 
> > running on java 1.6 that hide the real exception. I found that this 
> > exception was corrected in more recent version (that is why 
> I want to update).
> >
> > The code :
> > public class UploadServiceSoapStub implements UploadServiceStub /* 
> > this is a functional java interface */ {
> >     /** Time out de la connexion HTTP. en ms */
> >     private int CONNECTION_TIMEOUT = 120000;
> >
> >     private EndpointReference targetEPR;
> >
> >     public UploadServiceSoapStub(String url) {
> >         this.targetEPR = new EndpointReference(url);
> >     }
> >
> >     public Map initUpload(String idDossier) throws WsException {
> >         if (idDossier == null) {
> >             throw new NullPointerException("idDossier");
> >         }
> >
> >         OMFactory factory = OMAbstractFactory.getOMFactory();
> >         OMNamespace nsUlp = 
> > factory.createOMNamespace(WsCst.NS_UPLOAD_TYPES,
> > "ulp");
> >         OMElement requete = 
> factory.createOMElement("initUpload", nsUlp);
> >         factory.createOMElement("idDossier", nsUlp, 
> > requete).setText(idDossier);
> >
> >         Options options = new Options();
> >         options.setTo(targetEPR);
> >         options.setAction("urn:initUpload");
> >
> > options.setTimeOutInMilliSeconds(CONNECTION_TIMEOUT);
> >
> >         try {
> >             ServiceClient serviceClient = new 
> ServiceClient(); /* Here 
> > is line 61, pb with jre 1.6.0 */
> >             serviceClient.setOptions(options);
> >
> >             OMElement result = 
> serviceClient.sendReceive(requete); /* 
> > Here is line 64, pb with jre 1.4.2 */
> >
> >             /* ... Process the result and return a Map ... */
> >
> >         } catch (AxisFault e) {
> >             throw new WsServeurFatalException(e);
> >         }
> >     }
> >
> >
> > With java 1.4.2_13 an exception during the service call.
> >
> > java.lang.NoSuchMethodError:
> > org.apache.axiom.om.OMOutputFormat.isAutoCloseWriter()Z
> >  at
> > 
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImp
> > l.java:423)
> >  at
> > 
> org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEnti
> > ty.handleOMOutput(SOAPOverHTTPSender.java:190)
> >  at
> > 
> org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEnti
> > ty.writeRequest(SOAPOverHTTPSender.java:232)
> >  at
> > 
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque
> > stBody(EntityEnclosingMethod.java:495)
> >  at
> > 
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBa
> > se.java:1973)
> >  at
> > 
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.ja
> > va:993)
> >  at
> > 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Http
> > MethodDirector.java:397)
> >  at
> > 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMet
> > hodDirector.java:170)
> >  at
> > 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java
> > :396)
> >  at
> > 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java
> > :346)
> >  at
> > 
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstr
> > actHTTPSender.java:534)
> >  at
> > 
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSe
> > nder.java:119)
> >  at
> > 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
> > eWithCommons(CommonsHTTPTransportSender.java:334)
> >  at
> > 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Comm
> > onsHTTPTransportSender.java:205)
> >  at
> > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
> >  at
> > 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp
> > eration.java:365)
> >  at
> > 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi
> > sOperation.java:295)
> >  at
> > 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:5
> > 79)
> >  at
> > 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:5
> > 08)
> >  at
> > 
> upload.client.service.UploadServiceSoapStub.initUpload(UploadServiceSo
> > apStub.java:64)
> >
> >
> > With java 1.6.0_02 an exception occurs while instanciating the 
> > ServiceClient instance
> >
> > Exception in thread "main"
> > javax.xml.stream.FactoryConfigurationError: Provider 
> > javax.xml.stream.XMLInputFactory could not be instantiated:
> > java.lang.InstantiationException
> >  at javax.xml.stream.XMLInputFactory.newInstance(Unknown
> > Source)
> >  at
> > 
> org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:4
> > 0)
> >  at
> > 
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.jav
> > a:66)
> >  at
> > 
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuil
> > der.java:86)
> >  at
> > 
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfi
> > gBuilder.java:58)
> >  at
> > 
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration
> > (DeploymentEngine.java:690)
> >  at
> > 
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguratio
> > n(FileSystemConfigurator.java:109)
> >  at
> > 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
> > onContext(ConfigurationContextFactory.java:61)
> >  at
> > 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
> > onContextFromFileSystem(ConfigurationContextFactory.java:180)
> >  at
> > 
> org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClie
> > nt.java:189)
> >  at
> > 
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceCl
> > ient.java:118)
> >  at
> > org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:114)
> >  at
> > org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:207)
> >  at
> > 
> upload.client.service.UploadServiceSoapStub.initUpload(UploadServiceSo
> > apStub.java:61)
> >
> > WSDL is attached.
> >
> > Thank you for your help
> >
> > Jérôme Mainaud
> > Klee Group
> > [EMAIL PROTECTED]
> > +33 146 295 825
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to