Reto,

The <types> section is the source of your troubles.
1- you need a <schema> element.
2- you need to define a target namespace and define other namespace
qualifiers in the <schema> element
3- you need to make sure that the type= attributes point to types, not
elements
4- you need to use the right namespace identifier (tns: rather than xsd:) to
refer to types that you define in the schema.
5- I also suggest that you use your WSDL targetNamespace as the namespace in
your SOAP message bodies.

Try this:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="test" targetNamespace="http://192.168.125.246";
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
      xmlns:tns="http://192.168.125.246";
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<wsdl:types>
   <xsd:schema targetNamespace=http://192.168.125.246
       xmlns:tns="http://192.168.125.246";
       xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    <xsd:complexType name="in">
      <xsd:sequence>
        <xsd:element name="BANKCOUNTRY"
              type="xsd:string" minOccurs="1" maxOccurs="1"/>
        <xsd:element name="BANKKEY"
              type="xsd:string" minOccurs="1" maxOccurs="1"/>
        <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="out">
      <xsd:sequence>
        <xsd:element name="BANK_ADDRESS"
              type="tns:BANK_ADDRESS" minOccurs="1" maxOccurs="1"/>
        <xsd:element name="BANK_DETAIL"
              type="tns:BANK_DETAIL" minOccurs="1" maxOccurs="1"/>
        <xsd:element name="RETURN"
              type="tns:RETURN" minOccurs="1" maxOccurs="1"/>
        <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="BANK_ADDRESS">
        <xsd:sequence>
          <xsd:element name="BANK_NAME"
                type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="REGION"
                type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="STREET"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="CITY"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="SWIFT_CODE"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="BANK_GROUP"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="POBK_CURAC"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="BANK_NO"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="POST_BANK"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="BANK_BRANCH"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="ADDR_NO"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:any processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
      </xsd:complexType>
     <xsd:complexType name="BANK_DETAIL">
        <xsd:sequence>
          <xsd:element name="CREAT_DATE"
               type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="CREATOR"
               type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="METHOD"
               type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="FORMATTING"
               type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="BANK_DELETE"
               type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:any processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
      </xsd:complexType>
      <xsd:complexType name="RETURN">
        <xsd:sequence>
          <xsd:element name="TYPE"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="ID"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="NUMBER"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="MESSAGE"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="LOG_NO"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="LOG_MSG_NO"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="MESSAGE_V1"
                 type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="MESSAGE_V2"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="MESSAGE_V3"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="MESSAGE_V4"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="PARAMETER"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="ROW"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="FIELD"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:element name="SYSTEM"
                  type="xsd:string" minOccurs="1" maxOccurs="1"/>
          <xsd:any processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
      </xsd:complexType>
  </xsd:schema>
</wsdl:types>

  <wsdl:message name="bank_get_detailInput">
<wsdl:part name="composite" type="tns:in"/>
</wsdl:message>
<wsdl:message name="bank_get_detailOutput">
<wsdl:part name="composite" type="tns:out"/>
</wsdl:message>
<wsdl:portType name="testPortType">
<wsdl:operation name="bank_get_detail">
<wsdl:input name="bank_get_detailInput"
message="tns:bank_get_detailInput"/>
<wsdl:output name="bank_get_detailOutput"
message="tns:bank_get_detailOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="testBinding" type="tns:testPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="rpc"/>
<wsdl:operation name="bank_get_detail">
<wsdl:input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://192.168.125.246"; use="encoded"/>
</wsdl:input>
<wsdl:output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://192.168.125.246"; use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="testService">
<wsdl:port name="testPort0" binding="tns:testBinding">
<soap:address location="http://192.168.125.246:5555/soap/rpc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Reply via email to