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(OMNodeImpl.java:423)
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:190)
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:232)
> at
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
> at
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.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(AbstractHTTPSender.java:534)
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:334)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
> at
> upload.client.service.UploadServiceSoapStub.initUpload(UploadServiceSoapStub.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:40)
> at
> org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:66)
> at
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:86)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:690)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:109)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:61)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
> at
> org.apache.axis2.client.ServiceClient.initializeTransports(ServiceClient.java:189)
> at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.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(UploadServiceSoapStub.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]