on 02-17-2006 8:14 PM
Hi,
I need to call a XI using SOAP in ASP or VBA. I already did this using SAP Business Connector.
My asp code is:
<%
Dim objSoapClient
Dim strNumero1, strNumero2
Dim strRequest
Dim strResposta()
Const WSDL_URL = "http://10.1.28.141:8500/materiais/MateriaisOutboundSync.wsdl"
'Cria o objeto Soap Client
Set objSoapClient = CreateObject("MSSOAP.SoapClient30")
Set dom = CreateObject("MSXML2.DomDocument")
leu = dom.load("c:inetpubwwwrootmateriaisxmlTemplate.xml")
response.write dom.text
objSoapClient.ClientProperty("ServerHTTPRequest") = True
objSoapClient.mssoapinit WSDL_URL
objSoapClient.ConnectorProperty("EndPointURL") = WSDL_URL
objSoapClient.ConnectorProperty("ProxyUser") = "st00163"
objSoapClient.ConnectorProperty("ProxyPassword") = "tome51"
' Envia dados para o metodo e retorna valor
strResposta = objSoapClient.MateriaisOutboundSync(dom, strResposta )
' Fecha o objeto
Set objSoapClient = Nothing
%>
and my XML is:
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"><enableSession>true</enableSession></sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body><ns1:Y_XI_MATERIAIS_01 xmlns:ns1='urn:sap-com:document:sap:rfc:functions'><I_MATERIAIS><MATNR>1</MATNR><EAN11>1</EAN11><COR>1</COR><TAMANHO>1</TAMANHO></I_MATERIAIS><T_MATERIAIS><item><MATNR>1</MATNR><EAN11>1</EAN11><COR>1</COR><TAMANHO>1</TAMANHO></item></T_MATERIAIS></ns1:Y_XI_MATERIAIS_01></SOAP-ENV:Body></SOAP-ENV:Envelope>
This generate this error:
Error Type:
SoapMapper (0x80004002)
SoapMapper:Saving SoapMapper I_MATERIAIS failed HRESULT=0x80004002: No such interface supported - Client:Unspecified client error. HRESULT=0x80004002: No such interface supported
/materiais/teste2.asp, line 29
Thanks
Hi Evando,
I really don't undestand ASP but from the error message that you have got I feel that there is some problem in the interface that you have given. Can you double check that and try to post a message using a stand alone soap clinet to see if that works
If it works then we can infer that the problem is really not in the interface but if it fails agian you may to cheak he interface tha you are using to connect to XI.
You can download the SOAP client form the folowing link
Thanks and Regards
Arvind
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.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.