Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Creating Object Correctly
Message
De
22/02/2005 07:44:19
 
 
À
21/02/2005 13:49:58
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00985142
Message ID:
00989174
Vues:
86
Hi Viv

Just to let you know where I am at because there has been a slight development.

I got an email yesterday saying that they had changed the wsdl file to contain an ip address rather than 'localhost' and that this might have been causing a problem (I did point out that I had emailed them with your suggestion of this last Tuesday!) They have said that even though this is not a long term solution it might be useful for testing. I did try this when you suggested it last week by using a local copy of the wsdl but was still getting errors even though the error was different. Anyway, after speaking to them today, it appears that for it to work in this way, it has to have password authenitcation. I then looked back at your previous replies because I remembered we had discussed this earlier.

I have changed the setupclient call to be:
loRegisterCustomer = loWSHandler.SetupClient("http://domain&5MyUserName:MyPassword@ip address:8081/3connect/services/RegisterCustomerV1?wsdl", "RegistrationCustomerService", "RegisterCustomer")

This all appears to work ok. I have checked all the properties of loRegisterCustomer after the setupclient has executed and they are all blank but when I execute
loRegisterCustomer.CreateSale("PayMonthly")

they contain the following:
loRegisterCustomer.FaultCode = Client
loRegisterCustomer.FaultDetail = Error: 1429 - OLE IDispatch exception code 0 from Connection failure.: Connection failure.:No matching authorization scheme enable on connector. HRESULT=0x80004005: Unspecified error
- Client:An unanticipated error occurred during the processing of this request. HRESULT=0x80004005: Unspecified error
- Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x80004005: Unspecified error
- Client:Unspecified client error. HRESULT=0x80004005: Unspecified error

I have amended _ws3client.SetConnectorProperties to contain the lines:
THIS.wsObject.ConnectorProperty("AuthUser") = "MyUserName"
THIS.wsObject.ConnectorProperty("AuthPassword") = "MyPassword"

These are the only lines in there. Is this all I need to do? I haven't put any code in _ws3client.SetClientProperties

I did go into IE and enter
http://domain&5MyUserName:MyPassword@ip address:8081/3connect/services/RegisterCustomerV1?wsdl
thinking it might work but just get 'Page cannot be displayed'. Apparently, any details passed in this way are all converted to lower case and my password contains upper case characters. I am told this is how it must be for security reasons - don't know if this is an issue in VFP.

Thanks

Sue
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform