Naredil sem en .net web service, ki omogoča da preko metode zapišem nekaj v bazo in dobim rezultat. Vse dela ok.
Sedaj pa moram stvar spraviti v Java program. Ampak so razlike med java in .net zgeneriranimi wdslji.
Prva stvar je naprimer s:element kjer je v javi xsd:element oz vsi s so verjetno xsd. Ima kdo kakšno idejo kako tole pravilno spremenit da bo delalo. In kako to da prihaja do razlik? Nebi to moralo biti enako?
<wsdl:definitions targetNamespace="http://tempuri.org/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType/>
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VstaviNovoDelovnoMesto">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="izobrazba" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="kraj" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="poklic" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="spol" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="idUp" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="VstaviNovoDelovnoMestoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="VstaviNovoDelovnoMestoResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld"/>
</wsdl:message>
<wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse"/>
</wsdl:message>
<wsdl:message name="VstaviNovoDelovnoMestoSoapIn">
<wsdl:part name="parameters" element="tns:VstaviNovoDelovnoMesto"/>
</wsdl:message>
<wsdl:message name="VstaviNovoDelovnoMestoSoapOut">
<wsdl:part name="parameters" element="tns:VstaviNovoDelovnoMestoResponse"/>
</wsdl:message>
<wsdl:portType name="WebServiceSoap">
<wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn"/>
<wsdl:output message="tns:HelloWorldSoapOut"/>
</wsdl:operation>
<wsdl:operation name="VstaviNovoDelovnoMesto">
<wsdl:input message="tns:VstaviNovoDelovnoMestoSoapIn"/>
<wsdl:output message="tns:VstaviNovoDelovnoMestoSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WebServiceSoap" type="tns:WebServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="VstaviNovoDelovnoMesto">
<soap:operation soapAction="http://tempuri.org/VstaviNovoDelovnoMesto" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="WebServiceSoap12" type="tns:WebServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HelloWorld">
<soap12:operation soapAction="http://tempuri.org/HelloWorld" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="VstaviNovoDelovnoMesto">
<soap12:operation soapAction="http://tempuri.org/VstaviNovoDelovnoMesto" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WebService">
<wsdl:port name="WebServiceSoap" binding="tns:WebServiceSoap">
<soap:address location="http://localhost:1068/WebService.asmx"/>
</wsdl:port>
<wsdl:port name="WebServiceSoap12" binding="tns:WebServiceSoap12">
<soap12:address location="http://localhost:1068/WebService.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>