Your WSDL is missing some required namespace declarations (wsdl, wsdlsoap, impl, tns1).

Anne

On 9/21/05, Jérôme PICARD <[EMAIL PROTECTED]> wrote:
Hello,

To deploy my webservice I use a file (deploy.wsdd). With a C# client , the webservice return always null.

Here is my deploy.wsdd :

Thanks,

<deployment name="WSControle1"
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" >
 

 <service name="WSControle1" provider="java:RPC" style="document" use="literal" >
 <namespace>http://fr.test/</namespace>
  <parameter name="className" value="fr.test.bpel.service.WSControle1"/>
  <parameter name="allowedMethods" value="*"/>
  <!-- parameter name="scope" value="application"/ -->
 
  <beanMapping
      qname="ns:Erreur"
      xmlns:ns="http://fr.test/xsd"
      languageSpecificType="java:fr.test.bpel.domaine.Erreur"
  />
  <beanMapping
      qname="ns:Notice"
      xmlns:ns="http://fr.test/xsd"
      languageSpecificType="java:fr.test.bpel.domaine.Notice"
  />
 
  <typeMapping
        xmlns:ns="http://fr.test/xsd"
        qname="ns:ArrayOf_xsd_string"
        type="java:java.lang.String[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
        deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
     
  <operation name="controle" returnQName="return" returnType="RTypeNS:Erreur" xmlns:RTypeNS="http://fr.test/xsd" >
        <parameter name="notice" type="tns:Notice" xmlns:tns="http://fr.test/xsd" />
  </operation>
     
 
 </service>
</deployment>

Here is my WSDL :

<wsdl:definitions targetNamespace="http://fr.test/">
-
    <!--
WSDL created by Apache Axis version: 1.2.1
Built on Jun 07, 2005 (10:11:43 EDT)
-->
-
    <wsdl:types>
-
    <schema elementFormDefault="qualified" targetNamespace="http://fr.test/xsd">
<import namespace="http://fr.test/"/>
-
    <complexType name="Notice">
-
    <sequence>
<element name="dateDocument" nillable="true" type="xsd:string"/>
<element name="emetteur" nillable="true" type="xsd:string"/>
<element name="titre" nillable="true" type="xsd:string"/>
<element name="typeDocument" nillable="true" type="xsd:string"/>
<element name="urlDocument" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
-
    <complexType name="Erreur">
-
    <sequence>
<element name="codeErreur" type="xsd:int"/>
<element name="libellesErreurs" nillable="true" type="impl:ArrayOf_xsd_string"/>
</sequence>
</complexType>
</schema>
-
    <schema elementFormDefault="qualified" targetNamespace="http://fr.test/">
<import namespace="http://fr.test/xsd"/>
<element name="notice" type="tns1:Notice"/>
-
    <complexType name="ArrayOf_xsd_string">
-
    <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
</sequence>
</complexType>
<element name="return" type="tns1:Erreur"/>
</schema>
</wsdl:types>
-
    <wsdl:message name="controleResponse">
<wsdl:part element="impl:return" name="return"/>
</wsdl:message>
-
    <wsdl:message name="controleRequest">
<wsdl:part element="impl:notice" name="notice"/>
</wsdl:message>
-
    <wsdl:portType name="WSControle1">
-
    <wsdl:operation name="controle" parameterOrder="notice">
<wsdl:input message="impl:controleRequest" name="controleRequest"/>
<wsdl:output message="impl:controleResponse" name="controleResponse"/>
</wsdl:operation>
</wsdl:portType>
-
    <wsdl:binding name="WSControle1SoapBinding" type="impl:WSControle1">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
-
    <wsdl:operation name="controle">
<wsdlsoap:operation soapAction=""/>
-
    <wsdl:input name="controleRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
-
    <wsdl:output name="controleResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-
    <wsdl:service name="WSControle1Service">
-
    <wsdl:port binding="impl:WSControle1SoapBinding" name="WSControle1">
<wsdlsoap:address location="http://localhost:8080/WSControle1/services/WSControle1"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>



Anne Thomas Manes a écrit :
Please post your WSDL.

On 9/20/05, Jérôme PICARD <[EMAIL PROTECTED] > wrote:
Hello,

I'm using AXIS 1.2.1.

I have deployed a WS that is working just fine with an Axis client but I have some problems when I use a C# client or a BPEL client.

My WebService must return an array of String. The response is always null when I use the C# client or the BPEL client.

It's very urgent. Can you give me some help please ?

Regards.
Jerome.



*** We scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders ***
*** MailSystem ASTON ***

-- 
Jérôme PICARD - Consultant Technique
Tél. : 01 34 65 54 85 - Fax : 01 34 65 79 40
Email : [EMAIL PROTECTED]

ASTON, Architecte de votre système d'informations
PARIS LYON TOULOUSE
http://www.aston.fr



Reply via email to