axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Dick <adrian.d...@uk.ibm.com>
Subject Re: Problem with WSDLWs
Date Tue, 07 Dec 2004 14:45:18 GMT




Hi,

The problem seems to be within the definition of your service in the WSDL:

The service specified in the WSDL has 2 ports, one for HTTP and the other
for SOAP.
<wsdl:service name="airport">
    <wsdl:port name="airportSoap" binding="tns:airportSoap">
      <soap:address location="http://ws.bln.net/airservices/airport.asmx"
/>
    </wsdl:port>
    <wsdl:port name="airportHttpPost" binding="tns:airportHttpPost">
      <http:address location="http://ws.bln.net/airservices/airport.asmx"
/>
    </wsdl:port>
</wsdl:service>

However, the WSDL only contains the binding for the SOAP port.
Simply removing the http port, allows WSDL2Ws to run correctly, generating
the stubs.

Regards,
Adrian

_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)

"Rogowski, Thomas" <ROG@kh-ap.de> wrote on 07/12/2004 12:19:28:

> Hi,
> I have an axis-c++-webservice and a .net client. I want to receive
> arrays. I read that .net need the document/literal style to parse the
> array correctly. My problem is that everytime I try to generate my
> server-skeleton with document/literal style, the WSDL2Ws compiler throws
> a java.util.noSuchElementException with no further details. The .Net
> client generate the client-stub without any problems. What is wrong with
> my WSDL-file?
>
> Thanks in advance
> Thomas
>
> The WSDL-file:
>
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns="http://ws.bln.net/airservices"
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> targetNamespace="http://ws.bln.net/airservices"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>   <wsdl:types>
>     <s:schema elementFormDefault="qualified"
> targetNamespace="http://ws.bln.net/airservices">
>       <s:complexType name="ArrayOfBerlin">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="Berlin"
> nillable="true" type="tns:Berlin" />
>         </s:sequence>
>       </s:complexType>
>       <s:complexType name="Berlin">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="1" name="Flight"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="To"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="From"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Plan"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Expected"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Status"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Info"
> type="s:string" />
>           <s:element minOccurs="0" maxOccurs="1" name="Gate"
> type="s:string" />
>         </s:sequence>
>       </s:complexType>
>       <s:element name="Arrival">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="Airport"
> type="s:string" />
>             <s:element minOccurs="1" maxOccurs="1" name="Time"
> type="s:int" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="ArrivalResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="ArrivalResult"
> type="tns:ArrayOfBerlin" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>     </s:schema>
>   </wsdl:types>
>   <wsdl:message name="ArrivalSoapIn">
>     <wsdl:part name="parameters" element="tns:Arrival" />
>   </wsdl:message>
>   <wsdl:message name="ArrivalSoapOut">
>     <wsdl:part name="parameters" element="tns:ArrivalResponse" />
>   </wsdl:message>
>
>   <wsdl:portType name="airportSoap">
>     <wsdl:operation name="Arrival">
>       <wsdl:input message="tns:ArrivalSoapIn" />
>       <wsdl:output message="tns:ArrivalSoapOut" />
>     </wsdl:operation>
>   </wsdl:portType>
>
>   <wsdl:binding name="airportSoap" type="tns:airportSoap">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document" />
>     <wsdl:operation name="Arrival">
>       <soap:operation soapAction="http://ws.bln.net/airservices/Arrival"
> style="document" />
>       <wsdl:input>
>         <soap:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>         <soap:body use="literal" />
>       </wsdl:output>
>     </wsdl:operation>
>     </wsdl:binding>
>
>   <wsdl:service name="airport">
>     <wsdl:port name="airportSoap" binding="tns:airportSoap">
>       <soap:address
> location="http://ws.bln.net/airservices/airport.asmx" />
>     </wsdl:port>
>     <wsdl:port name="airportHttpPost" binding="tns:airportHttpPost">
>       <http:address
> location="http://ws.bln.net/airservices/airport.asmx" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
>


Mime
View raw message