Consultor Eletrônico



Kbase P142473: Parameters in the CONNECT() method that include the # sign are being truncated
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/9/2009
Status: Unverified

SYMPTOM(s):

Parameters in the CONNECT() method that include the # sign are being truncated

Parameters in the CONNECT() method that include the hash sign are being truncated

Parameters in the CONNECT() method that include the pound sign are being truncated

Error receiving Web Service Response: Fatal Error: 401 Unauthorized (11773)

Error receiving Web Service Response: Authorization required. Status code 401 (Unauthorized) received. (11773)

FACT(s) (Environment):

OpenEdge 10.x
Windows

CAUSE:

The # sign is used as a special character to comment a line in a Progress .pf file. The CONNECT() method accepts a .pf file through the -pf parameter, as such the CONNECT() method also interprets the # sign as a comment.

FIX:

Enclose the parameter values between single or double quotes, for example:
hWebService:CONNECT(" -WSDL 'http://localhost/MyWSDLDoc.wsdl' -SOAPEndpointUserid 'MyUsername' -SOAPEndpointPassword 'MyPassword' ").