Home > Software engineering >  Vb 6.0 calls the BPS interface motion error, be urgent! Online etc.
Vb 6.0 calls the BPS interface motion error, be urgent! Online etc.

Time:09-16

Private Sub cmdXD_Click ()
Dim SOAP As New SoapClient30 'object instantiation SOAP
Dim the Result As a String 'webservice interface return code
Dim the XML As a String 'generate XML format characters
Dim oHTTP As XMLHTTP 'HTTP objects
Dim oXmlDoc As DOMDocument
Dim verifyCode1 As String 'check code
Dim verifyCode As String 'after the MD5 encryption check code

TxtFHSJ. Text=Format (Now, "yyyy - mm - dd hh: mm: ss")
XML=GetWebXml () 'to get a message first parameter
VerifyCode1=XML & amp; "J8DzkIFgmlomPt0aLuwU" 'message and check code splicing
VerifyCode=Base64Encode (MD532OR16 (verifyCode1, 16)) 'the second parameter MD5 16 bit encryption to 64
MsgBox verifyCode
TxtQQBWXX. Text=XML & amp; "" & amp; VerifyCode

SOAP. MSSoapInit "http://bsp-ois.sit.sf-express.com:9080/bsp-ois/ws/sfexpressService? WSDL 'initialize connection
"'SOAP. MSSoapInit "http://localhost:2649/Home/Text"
SOAP. ClientProperty (" ServerHTTPRequest ")=True
SOAP. ConnectorProperty (" Timeout ")=3600000 'connection properties
Result=SOAP. SfexpressService (XML, verifyCode)
TxtFHBWXX. Text=Result

CodePudding user response:

Parameters have been verified against the no problem, two parameters are string type

CodePudding user response:

Universal answer:
let the other side to provide the sample program

CodePudding user response:

CodePudding user response:

Learn to use OleView view or ocx DLL interface,

CodePudding user response:

The other values provided the c #, all have already sealed inside, VB6.0 by use of these can only be written by hand

CodePudding user response:

No problem if the other side of the c # code (provided by the "official" there will be no problem commonly), just means that your "translation" is not correct,

CodePudding user response:

Don't be A language code is modified to B language code busywork,
Also don't use A language code to directly invoke B language code base, this complicated things so easy to get wrong,
Just make A, B language code of input and output is redirected to A text file, or modify A, B language code let it through text file input and output,
Can easily make A, B coordination between the two languages,
For example:
A will request data written to A file a.t xt, renamed after finish aa. TXT
B find aa. TXT, read its contents, call the corresponding function, and writes the results file b.t xt, after finish delete aa. TXT, then b.t xt renamed bb. TXT
Found A bb. TXT, read the content, after finish delete bb. TXT
Above can be replaced by any kind of A language or development environment, B can be replaced by any kind of with the development of A different language or development environment,
Unless A or B does not support to determine whether A file exists, file read and write and file name,
But who can name does not support to determine whether a file exists, file read and write and file name for the development of language or development environment?
Can put the temporary files on the RamDisk efficiency decrease wear disk,
Data structure is very complex, a text file format problems refer to a json or XML

The communication methods between the temporary text file sharing this process there are plenty of advantages, compared to other method only listed below I can think of now:
Loose coupling between process,
Can be on the same machine, process, also can cross machine, across the operating system, hardware platform, and even multinational,
, convenient debugging, and monitoring, only let the third party or artificial view the temporary text files,
Switch, convenient online service, need to delete or create the temporary text files,
, is convenient to realize distributed and load balancing,
Services to provide convenient, queue, queue is full and it is almost impossible to happen (unless the hard disk space full)
DE...

"Across different languages, machine, across the operating system, hardware platform, multinational, cross *. *" misery,
Back is "the use of Shared a plain text file information communication" of the shore!

CodePudding user response:

Can't use the XMLHTTP call interface? Why use SoapClient30?

CodePudding user response:

Miss zhao refresh record, 1 copy two pieces of Scott's sayings, simply make a little red book, but you didn't find the other side is a web service call? SOAPCLIENT can normal initialization,
Test just now, you the overloading method is only one parameter, just pass the XML, the building Lord look document not carefully

CodePudding user response:

references 9 f Runnerchin response:
miss zhao refresh record, 1 copy for two period of Scott's sayings, simply make a little red book, but you didn't find each other is a web service call? SOAPCLIENT can normal initialization,
Test just now, you the overloading method is only one parameter, just pass the XML, the building Lord look document not carefully

What I use is wild west, not the book, also on not jedaiah hall,

CodePudding user response:

references 9 f Runnerchin response:
miss zhao refresh record, 1 copy to the two paragraphs Scott quotations, just a little red book, but you didn't find the other side is a web service call? SOAPCLIENT can normal initialization,
.


CodePudding user response:

I also encountered similar problems, VB call API motion, good trouble,

CodePudding user response:

The building Lord solved? Add Q82801915 under communication
  •  Tags:  
  • API
  • Related