axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samprathi, Subramani non Unisys" <Subramani.Sampra...@unisys.com>
Subject Trouble with doc/literal wsdl with .NET
Date Thu, 10 Jul 2003 23:03:22 GMT
Hi eveybody,
I am using AXIS-RC2 and when I enable doc/lit, the WSDL generated from axis
is not getting parsed in .NET "WSDL.exe". 
I get the following error:
 
Schema validation warning: Global element 'in0' has already been declared.
Schema validation warning: Global element 'in0' has already been declared.
 
Warning: Schema could not be validated. Class generation may fail or may
produce
 incorrect results.
 
Error: Unable to import binding 'ClientServiceSoapBinding' from namespace
'http://localhost:8003/axis/services/ClientService'.
  - Unable to import operation 'search'.
  - The element 'http://schemas.xmlsoap.org/wsdl/:in0' is missing.
 
If you would like more help, please type "wsdl /?".
 
is there something wrong I am doing?
Cheers,
Subbu
 
My deploy.wsdd looks like this:
 
<deployment xmlns=" http://xml.apache.org/axis/wsdd/
<http://xml.apache.org/axis/wsdd/> "
            xmlns:java=" http://xml.apache.org/axis/wsdd/providers/java
<http://xml.apache.org/axis/wsdd/providers/java> ">
 
 <service name="ClientService" provider="java:RPC" style="document"
use="literal" >
  <parameter name="className" value="Client"/>
  <parameter name="allowedMethods" value="*"/>
  <beanMapping qname="myNS:SearchCriteria" xmlns:myNS="urn:BeanService"
languageSpecificType="java:.SearchCriteria"/>
  <beanMapping qname="myNS:RequestHeader" xmlns:myNS="urn:BeanService"
languageSpecificType="java:.RequestHeader"/>
  <beanMapping qname="myNS:ResponseHeader" xmlns:myNS="urn:BeanService"
languageSpecificType="java:.ResponseHeader"/>
  <beanMapping qname="myNS:ErrorItem" xmlns:myNS="urn:BeanService"
languageSpecificType="java:ErrorItem"/>
  <requestFlow>
       <handler type="mysession"/>
  </requestFlow>
  <responseFlow>
       <handler type="mysession"/>
  </responseFlow>
 
 </service>
 
</deployment>

 
And the WSDL:
 
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " xmlns="
http://schemas.xmlsoap.org/wsdl/ <http://schemas.xmlsoap.org/wsdl/> "
xmlns:apachesoap=" http://xml.apache.org/xml-soap
<http://xml.apache.org/xml-soap> " xmlns:impl="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " xmlns:intf="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/
<http://schemas.xmlsoap.org/soap/encoding/> " xmlns:tns1="urn:BeanService"
xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/
<http://schemas.xmlsoap.org/wsdl/> " xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/
<http://schemas.xmlsoap.org/wsdl/soap/> " xmlns:xsd="
<http://www.w3.org/2001/XMLSchema>
http://www.w3.org/2001/XMLSchema"><wsdl:types><schema
targetNamespace="urn:BeanService" xmlns="
<http://www.w3.org/2001/XMLSchema> http://www.w3.org/2001/XMLSchema"><import
namespace="  <http://schemas.xmlsoap.org/soap/encoding/>
http://schemas.xmlsoap.org/soap/encoding/"/><complexType
name="RequestHeader"><sequence><element name="ProcessId" nillable="true"
type="xsd:string"/><element name="SecurityKey" nillable="true"
type="xsd:string"/><element name="UserId" nillable="true"
type="xsd:string"/></sequence></complexType><complexType
name="SearchCriteria"><sequence><element name="clientType" nillable="true"
type="xsd:string"/><element name="mailCode" nillable="true"
type="xsd:string"/><element name="city" nillable="true"
type="xsd:string"/><element name="accountRef" nillable="true"
type="xsd:string"/><element name="dateOfBirth" nillable="true"
type="xsd:dateTime"/><element name="organizationName" nillable="true"
type="xsd:string"/><element name="houseNumber" nillable="true"
type="xsd:string"/><element name="gender" type="xsd:int"/><element
name="firstName" nillable="true" type="xsd:string"/><element name="lastName"
nillable="true" type="xsd:string"/><element name="taxId" nillable="true"
type="xsd:string"/></sequence></complexType><complexType
name="ErrorItem"><sequence><element name="FieldName" nillable="true"
type="xsd:string"/><element name="ErrorNoticeName" nillable="true"
type="xsd:string"/><element name="ErrorText" nillable="true"
type="xsd:string"/><element maxOccurs="unbounded" name="ErrorNoticeData"
nillable="true" type="xsd:string"/></sequence></complexType><complexType
name="ResponseHeader"><sequence><element name="NextFormAssemblyName"
nillable="true" type="xsd:string"/><element name="NextFormClassName"
nillable="true" type="xsd:string"/><element name="Status"
type="xsd:int"/><element maxOccurs="unbounded" name="ErrorItems"
nillable="true"
type="tns1:ErrorItem"/></sequence></complexType></schema><schema
targetNamespace="" xmlns="  <http://www.w3.org/2001/XMLSchema>
http://www.w3.org/2001/XMLSchema"><import namespace="
<http://schemas.xmlsoap.org/soap/encoding/>
http://schemas.xmlsoap.org/soap/encoding/"/><element name="in0"
type="tns1:SearchCriteria"/><element name="searchReturn"
type="xsd:string"/><element name="getFirstReturn"
type="xsd:string"/><element name="getLastReturn" type="xsd:string"/><element
name="getPreviousReturn" type="xsd:string"/><element name="getNextReturn"
type="xsd:string"/><element name="in0" type="xsd:string"/><element
name="getDetailsReturn" type="xsd:string"/><element name="in0"
type="xsd:string"/></schema></wsdl:types>
  <wsdl:message name="DisposeStateRequest">
    <wsdl:part element="in0" name="in0"/>
  </wsdl:message>
  <wsdl:message name="getFirstResponse">
    <wsdl:part element="getFirstReturn" name="getFirstReturn"/>
  </wsdl:message>
  <wsdl:message name="getPreviousRequest">
  </wsdl:message>
  <wsdl:message name="searchRequest">
    <wsdl:part element="in0" name="in0"/>
  </wsdl:message>
  <wsdl:message name="searchResponse">
    <wsdl:part element="searchReturn" name="searchReturn"/>
  </wsdl:message>
  <wsdl:message name="getPreviousResponse">
    <wsdl:part element="getPreviousReturn" name="getPreviousReturn"/>
  </wsdl:message>
  <wsdl:message name="getLastRequest">
  </wsdl:message>
  <wsdl:message name="getDetailsResponse">
    <wsdl:part element="getDetailsReturn" name="getDetailsReturn"/>
  </wsdl:message>
  <wsdl:message name="getNextResponse">
    <wsdl:part element="getNextReturn" name="getNextReturn"/>
  </wsdl:message>
  <wsdl:message name="getNextRequest">
  </wsdl:message>
  <wsdl:message name="DisposeStateResponse">
  </wsdl:message>
  <wsdl:message name="getLastResponse">
    <wsdl:part element="getLastReturn" name="getLastReturn"/>
  </wsdl:message>
  <wsdl:message name="getFirstRequest">
  </wsdl:message>
  <wsdl:message name="getDetailsRequest">
    <wsdl:part element="in0" name="in0"/>
  </wsdl:message>
  <wsdl:portType name="Client">
    <wsdl:operation name="search" parameterOrder="in0">
      <wsdl:input message="impl:searchRequest" name="searchRequest"/>
      <wsdl:output message="impl:searchResponse" name="searchResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getFirst">
      <wsdl:input message="impl:getFirstRequest" name="getFirstRequest"/>
      <wsdl:output message="impl:getFirstResponse" name="getFirstResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getLast">
      <wsdl:input message="impl:getLastRequest" name="getLastRequest"/>
      <wsdl:output message="impl:getLastResponse" name="getLastResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getPrevious">
      <wsdl:input message="impl:getPreviousRequest"
name="getPreviousRequest"/>
      <wsdl:output message="impl:getPreviousResponse"
name="getPreviousResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getNext">
      <wsdl:input message="impl:getNextRequest" name="getNextRequest"/>
      <wsdl:output message="impl:getNextResponse" name="getNextResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getDetails" parameterOrder="in0">
      <wsdl:input message="impl:getDetailsRequest"
name="getDetailsRequest"/>
      <wsdl:output message="impl:getDetailsResponse"
name="getDetailsResponse"/>
    </wsdl:operation>
    <wsdl:operation name="DisposeState" parameterOrder="in0">
      <wsdl:input message="impl:DisposeStateRequest"
name="DisposeStateRequest"/>
      <wsdl:output message="impl:DisposeStateResponse"
name="DisposeStateResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ClientServiceSoapBinding" type="impl:Client">
    <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/
<http://schemas.xmlsoap.org/soap/http> >
    <wsdl:operation name="search">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="searchRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="searchResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getFirst">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getFirstRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="getFirstResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getLast">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getLastRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="getLastResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getPrevious">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getPreviousRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="getPreviousResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getNext">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getNextRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="getNextResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getDetails">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getDetailsRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="getDetailsResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="DisposeState">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="DisposeStateRequest">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:input>
      <wsdl:output name="DisposeStateResponse">
        <wsdlsoap:body namespace="
http://localhost:8003/axis/services/ClientService
<http://localhost:8003/axis/services/ClientService> " use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ClientService">
    <wsdl:port binding="impl:ClientServiceSoapBinding" name="ClientService">
      <wsdlsoap:address location="
http://localhost:8003/axis/services/ClientService"/
<http://localhost:8003/axis/services/ClientService> >
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
 
 
 

 


Mime
View raw message