on 09-10-2014 8:53 PM
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(PROCESS_TYPE) TYPE CRMT_PROCESS_TYPE
*" VALUE(SUCCESS) TYPE CRMT_PROBABILITY OPTIONAL
*" EXPORTING
*" VALUE(MESSAGE) TYPE CHAR255
*" VALUE(OBJECT_ID) TYPE CRMT_OBJECT_ID
Code of WEB SERVICE
<n0:ZcrmOrderMaintainUday xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
<Phase>Str</Phase>
<ProcessType>Stri</ProcessType>
</n0:ZcrmOrderMaintainUday>
Private Sub CommandButton1_Click()
Dim sURL As String
Dim sEnv As String
Dim xmlhtp As New MSXML2.XMLHTTP40
Dim xmlDoc As New DOMDocument
sEnv = "<?xml version=""1.0"" encoding=""utf-8""?>"
sEnv = sEnv & "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"
'sEnv = sEnv & "<soap:Envelope xmlns:xsi="""http://www.w3.org/2001/XMLSchema-instance"http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd="""http://www.w3.org/2001/XMLSchema"]http://www.w3.org/2001/XMLSchema[/URL]"" xmlns:soap=""[URL="http://schemas.xmlsoap.org/soap/envelope/"]http://schemas.xmlsoap.org/soap/envelope/"">"
sEnv = sEnv & " <soap:Body>"
sEnv = sEnv & " <sdef_ZWS_TEST_UDAY_WEB xmlns=""http://ides.studynest.org/webservices" > ""
sEnv = sEnv & " <DESC>Test Of Visit Reprot by Prasmi</DESC>"
sEnv = sEnv & " <PROCESS_TYPE>LEAD</PROCESS_TYPE>"
sEnv = sEnv & " </sdef_ZWS_TEST_UDAY_WEB>"
sEnv = sEnv & " </soap:Body>"
sEnv = sEnv & "</soap:Envelope>"
With xmlhtp
.Open "post", sURL, False
.setRequestHeader "Host", "ides.studynest.org"
.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
.setRequestHeader "soapAction", "http://ides.studynest.org:8023/sap/bc/srt/wsdl/sdef_ZWS_TEST_UDAY_WEB/wsdl11/ws_policy/document?sap-..."
.setRequestHeader "Accept-encoding", "zip"
.send (sEnv)
xmlDoc.LoadXML .responseText
MsgBox .responseText
End With
End Sub
the url to your web service needs to be the endpoint. It looks like you copied the url from the service in se80. Instead, go to SOA manager and get the wsdl. Then put the wsdl in the web browser and extract the endpoint. it will be in the tags: "soap:address location="
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.