Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2012, 04:03 PM
Enzo Rubino Enzo Rubino is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Default Web Service Client error

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
Reply With Quote
Reply

Tags
edomparseerror, esoaphttpexception, soap, thttprio

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.