Visual Basic 6.0 va MagentoSoap bilan bog'liq muammolar

chunki bir muncha vaqtdan beri "magento-Soap-Inferface" bilan suhbatlashish uchun Visual Basic 6 da vositani ishlab chiqarishga harakat qilaman.

Quyidagi versiyalarni ishlataman: - Magento versiya 1.5.0.0 - Visual Basic 6 uchun Microsoft Soap Tookit 3.0

VBda bu kabi kodlash:

Private Sub Command1_Click()
  Dim paramstring As String
  Dim soapClient, sessionID
  Dim attributeSets() As returnData

  Set soapClient = CreateObject("MSSOAP.SoapClient30")   
  soapClient.MSSoapInit "http://localhost/magento/index.php/api/soap/?wsdl"
  sessionID = soapClient.login("dede", "1q2w3e4r5t6y7u")
  attributeSets = soapClient.call(sessionID, "product_attribute_set.list", 0)    
End Sub

harakat qilaman va xato

Ish vaqti xatosi '-2147467259 (80004004) SoapMapper: http://xml.apache.org/xml-soap SoapMapper uchun Map fisi topilmadi HRESULT = 0x80004005: aniqlanmagan xatolik - Soap Mapper: tipdagi xarita elementi uchun Mapper yaratolmaydi. http: //xml.apache. org/xml-sovuni . HRESULT = 0x80004005: aniqlanmagan xatolik - SoapMapper: SoapMapper-ga biron bir ma'lumotni qayta tiklash muvaffaqiyatsiz tugadi.

Qanday qilib tavsif etsam, bu muammo faqatgina anyType yoki fixedArray-ga qaytganda paydo bo'ladi.

Iltimos, menga yordam bering.

0
VB6-dan veb-xizmatlarini chaqirishning oddiy usuli MAQOM proksi-serverini MAQOM interfeysi sifatida xizmatning funksiyasini ochadigan COM obyektini yaratishdir. Sizning muammoingizni hal qiladimi?
qo'shib qo'ydi muallif GTG, manba

1 javoblar

XML so'rov sxemasi kutilganiga mos kelmaydi. Proksi-serverni kiritish shart emas

misol uchun

Microsoft XML, versiya 2.0 yoki undan yuqori versiyasiga havola qo'shing

Ushbu usulni tekshiring

 Public Function PostRequest(urlService As String, soapAction As String, xmlRequest As String) As String

   Dim oHttReq  As XMLHTTPRequest
   Dim Log      As Logger
   Dim w        As w32
   Dim filepath As String
   Dim response As String

   Set oHttReq = New XMLHTTPRequest

   oHttReq.open "POST", urlService, False
   oHttReq.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
   oHttReq.setRequestHeader "SOAPAction", soapAction
   oHttReq.send xmlRequest       

   PostRequest = oHttReq.responseText

   If Not oHttReq Is Nothing Then
     Set oHttReq = Nothing
   End If       

 End Function

in url service put url of the asmx web service: some how http://myserver/serviceinterface/serviceinterface.asmx

sovun ishida avval sizda xizmat ko'rsatadigan ba'zi usulga qayta ko'rib chiqilib, ta'rifni ko'rib chiqdik. Bu erda SoapAction tagini chaqirish mumkin, ba'zilari esa SOAPAction: "http://localhost/commonxmlschemas/technology/createcharge" (faqat misol)

siz sovun so'rovini ham ko'rasiz

 POST /myserver/serviceinterface/serviceinterface.asmx HTTP/1.1
 Host: myserver
 Content-Type: text/xml; charset=utf-8
 Content-Length: length
 SOAPAction: "http://localhost/commonxmlschemas/technology/createcharge"

 <?xml version="1.0" encoding="utf-8"?>
 
   
     
       
         
         
       
     
   
   
     
       
         
           string
           int
         
         string
       
     
   
 

nusxa ko'chirish

  <?xml to  

xmlRequest parametri endi xmlRequest parametrlarini to'ldiradi va uni PostRequest usuliga jo'natadi

oddiy, yo'qmi?

0
qo'shib qo'ydi
PhP |BotsUz
PhP |BotsUz
93 ishtirokchilar

Phpni o'rganishni Hohlasangiz https://t.me/joinchat/AAAAAE-KRc5dd5tPMmGmWA A'zo bo'lin