Problem in connecting to a webservice

Posted by Istvan Hollo on 23-Nov-2007 07:28

Hi,

I want to connect to a webservice, which is provided by a Microsot server, SQL db and was declared in dotnet, but

hWebSrvc:CONNECT("-WSDL http://www ... /service.asmx?wsdl")

gives me an error on ": Part : Body has neither 'type' or 'element' attribute specified (11748)'

Any ideas what could be the problem?

TIA,

-istvan

All Replies

Posted by rstanciu on 26-Nov-2007 09:51

Try to document your WSDL first.

$DLC/bin/bprowsdldoc http://www ... /service.asmx?wsdl

If the error persist, the WSDL is not a valid document.

If you have to pass the server authentification try:

hWebService:CONNECT(

''-WSDL 'http://www ... /service.asmx?wsdl'

-WSDLUserid user

-WSDLPassword pwd

-SOAPEndpointUserid user

-SOAPEndpointPassword pwd

-Service yourService

-Port yourPort

").

Posted by rfagot on 27-Sep-2012 08:07

Hi,

I’m trying to use WebServices to connect to AspOne and depose EDI documents.

Here the code :

DEF VAR hWebService AS HANDLE NO-UNDO.

DEF VAR hDepositWebServicePortType AS HANDLE NO-UNDO.

DEF VAR cName AS CHAR NO-UNDO.

DEF VAR lSucces AS CHAR NO-UNDO.

CREATE SERVER hWebService.

hWebService:CONNECT("-WSDL https://services-teleprocedures.aspone.fr/wspreprod/deposit?wsdl").

I’m obtain the error below :

Error loading WSDL document

https://services-teleprocedures.aspone.fr/wspreprod/deposit?wsdl line 6 column 13 :error: Cannot get 'ISO-8859-1' transcoder from the TranscoderRepository (11748)

I changed the -cpinternal from iso8859-1 to utf-8 in my .PF without success.

Any suggestions?

Does someone already use the services from the firm AspOne (French people here ?)

Regards,

This thread is closed