Извините за чайниковский вопрос.
Сделал WSDL с операцией
В Netbeans сгенерировал из WSDL вебсервис
В итоге были созданы классы
HBgetCustomerById.java
HBgetCustomerByIdResponse.java
HomeBankWS.java
HomeBankWS_Service.java
ObjectFactory.java
package-info.java
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
import javax.jws.WebService;
/**
*
* @author ksa
*/
@WebService(serviceName = "HomeBankWS", portName = "HomeBankWSSOAP", endpointInterface = "org.example.homebankws.HomeBankWS", targetNamespace = "http://www.example.org/HomeBankWS/", wsdlLocation = "WEB-INF/wsdl/HomeBankWS/HomeBankWS.wsdl")
public class HomeBankWS {
public void hBgetCustomerById(int instituionId, javax.xml.ws.Holder<Integer> branchId, javax.xml.ws.Holder<java.lang.String> errorCode, javax.xml.ws.Holder<java.lang.String> nameShort, javax.xml.ws.Holder<java.lang.String> customerType...........) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}
}
Сижу и чешу репу, что с этим делать.
На кой генерация, если все равно данные надо в этом классе готовить и передавать.
Но быстрее всего, что я чего-то недопонимаю.
Это WSDL
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/HomeBankWS/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HomeBankWS" targetNamespace="http://www.example.org/HomeBankWS/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/HomeBankWS/">
<xsd:element name="HBgetCustomerById">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="InstituionId" type="xsd:int" />
<xsd:element name="BranchId" type="xsd:int"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="HBgetCustomerByIdResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ErrorCode" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Код ошибки</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="NameShort" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Фамилия и инициалы</xsd:documentation>
</xsd:annotation></xsd:element>
<xsd:element name="INN" type="xsd:string">
<xsd:annotation>
<xsd:documentation>ИНН</xsd:documentation>
</xsd:annotation></xsd:element>
<xsd:element name="NameFull" type="xsd:string">
<xsd:annotation>
<xsd:documentation>ФИО полностью</xsd:documentation>
</xsd:annotation></xsd:element>
<xsd:element name="NameInt" type="xsd:string">
<xsd:annotation>
<xsd:documentation>ФИО в латинице</xsd:documentation>
</xsd:annotation></xsd:element>
<xsd:element name="BirthDate" type="xsd:date">
<xsd:annotation>
<xsd:documentation>Дата рождения</xsd:documentation>
</xsd:annotation></xsd:element>
..............................................................
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="HBgetCustomerByIdRequest">
<wsdl:part element="tns:HBgetCustomerById" name="parameters"/>
</wsdl:message>
<wsdl:message name="HBgetCustomerByIdResponse">
<wsdl:part element="tns:HBgetCustomerByIdResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="HomeBankWS">
<wsdl:operation name="HBgetCustomerById">
<wsdl:input message="tns:HBgetCustomerByIdRequest"/>
<wsdl:output message="tns:HBgetCustomerByIdResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HomeBankWSSOAP" type="tns:HomeBankWS">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HBgetCustomerById">
<soap:operation soapAction="http://www.example.org/HomeBankWS/HBgetCustomerById"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HomeBankWS">
<wsdl:port binding="tns:HomeBankWSSOAP" name="HomeBankWSSOAP">
<soap:address location="http://www.example.org/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>