![]() |
|
|
|
#1
|
|||
|
|||
|
Hello,
i'm writing a web service client application in Delphi 2010 (Rad studio 2010 version 14.0.3615.26342). Using THttpRIO component with these setting: WSDLLocation=https://ws-telematicoprova.agenziadogane.it/TelematicoFtpEjbHttpRouter/TelematicoFtpWsBindingImplService/META-INF/wsdl/TelematicoFtp.wsdl Port=TelematicoFtpWsBindingImpl (automatically obtained in design time) Service=TelematicoFtpWsBindingImplService (automatically obtained in design time) HTTPWebNode.UserName=XXXXXX HTTPWebNode.Password=YYYYYY i generated code with WSDL Importer with these settings: WSDL Source: https://ws-telematicoprova.agenziado...maticoFtp.wsdl User Name: XXXXXX Password: YYYYYY Proxy: [blank] Automatic SOAP Versioning. (Recommended) Other: as default It seems to connect in a right way, but As soon as i call one of the functions i receive this exception: EDOMParseError "Invalid at the top level of document Line: 1 --MIMEBoundaryurn_uuid_847C5CE04B841C7BA" In httprio OnAfterExecute event I get this response : ------------------------------------------------------------------------------------------------------ --MIMEBoundaryurn_uuid_847C5CE04B841C7BA013394340358 56 Content-Type: application/xop+xml; charset=utf-8; type="text/xml" Content-Transfer-Encoding: binary Content-ID: <0.urn:uuid:847C5CE04B841C7BA01339434035857@apache .org> <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault><faultcode>soapenv:Server</faultcode> <faultstring>java.lang.NullPointerException</faultstring> </soapenv:Fault></soapenv:Body></soapenv:Envelope> --MIMEBoundaryurn_uuid_847C5CE04B841C7BA013394340358 56-- ------------------------------------------------------------------------------------------------------ i generated again code with WSDL Importer with same settings but changing the option: - Process only WSDL Binding extensions for the SOAP 1.1 Protocol instead of -Automatic SOAP Versioning. (Recommended) and had the same exception. At last attempt i generated again code with WSDL Importer with same settings but changing the option: - Process only WSDL Binding extensions for the SOAP 1.2 Protocol and in this case i had another exception: ESOAPHTTPException "Unable to retrieve the URL endpoint for Service/Port 'TelematicoFtpWsBindingImplService/TelematicoFtpWsBindingImpl' from WSDL https://ws-telematicoprova.agenziadogane.it/TelematicoFtpEjbHttpRouter/TelematicoFtpWsBindingImplService/META-INF/wsdl/TelematicoFtp.wsdl" I tested the web service with SoapUI 4.5.0 and same settings. It's running ok. I tested the dephi application changing settings with another web service and it's running ok. please help me cheers Enzo Rubino |
![]() |
| Tags |
| edomparseerror, esoaphttpexception, soap, thttprio |
| Thread Tools | |
| Display Modes | |
|
|