Missing operation for soapAction [http://schemas.some-uri.com/two/1.0/fimi.wsdl/InitSessionRq] and body element [{http://schemas.some-uri.com/two/1.0/fimi.wsdl}InitSessionRq] with SOAP Version [SOAP 1.1]
Запрос созданный XML Spy выглядит так:
POST http://localhost:8888/ HTTP/1.1 Content-Type: text/xml; Charset=UTF-8 User-Agent: XML Spy SOAPAction: "http://schemas.some-uri.com/two/1.0/fimi.wsdl/InitSessionRq" Host: localhost:8888 Content-Length: 825 Connection: Keep-Alive Cache-Control: no-cache <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://schemas.some-uri.com/two/1.0/fimi.xsd" xmlns:m1="http://schemas.some-uri.com/two/1.0/fimi_types.xsd"> <SOAP-ENV:Body> <m:InitSessionRq xmlns:m="http://schemas.some-uri.com/two/1.0/fimi.wsdl"> <m0:Request Ver="9.1" Product="" Echo="" Encoding="" Session="" BusinessDate="" RetAddress="" Comment="" Savepoint="" Clerk="" Password="" Language="" TransactionNumber=""> <m1:NeedDicts>0</m1:NeedDicts> <m1:AllVendors>0</m1:AllVendors> <m1:AvoidSession>0</m1:AvoidSession> </m0:Request> </m:InitSessionRq> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Запрос созданный SoapUI выглядит так:
POST http://192.168.10.93:8888/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/soap+xml;charset=UTF-8;action="http://schemas.some-uri.com/two/1.0/fimi.wsdl/InitSessionRq" User-Agent: Jakarta Commons-HttpClient/3.1 Host: 192.168.10.93:8888 Content-Length: 1230 <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:fimi="http://schemas.some-uri.com/two/1.0/fimi.wsdl" xmlns:fimi1="http://schemas.some-uri.com/two/1.0/fimi.xsd" xmlns:fimi2="http://schemas.some-uri.com/two/1.0/fimi_types.xsd"> <soap:Header/> <soap:Body> <fimi:InitSessionRq> <fimi1:InitSessionRq> <fimi1:Request Ver="9.1" Product="FIMI" Echo="gero et" Encoding="sonoras imperio" Session="3" BusinessDate="2004-02-15T00:44:14" RetAddress="temperat iras" Comment="turbine corripuit" Savepoint="regemque dedit" Clerk="fremunt celsa" Password="ferant rapidi" Language="3" TransactionNumber="sceptra tenens"> <fimi2:NeedDicts>1</fimi2:NeedDicts> <fimi2:AllVendors>3</fimi2:AllVendors> <fimi2:AvoidSession>3</fimi2:AvoidSession> </fimi1:Request> </fimi1:InitSessionRq> </fimi:InitSessionRq> </soap:Body> </soap:Envelope>
Я разницу вижу, но вопрос такой: кто прав? Раньше они друг с другом нормально работали, т.е. возможно проблема в wsdl?