cancel
Showing results for 
Search instead for 
Did you mean: 

ASP calling XI by SOAP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa...

Thanks and Regards

Arvind

Former Member
0 Kudos

Hi,

Thanks for your response... I did it using C# (.net), but when I try to do it in ASP(not is .net), the error is generated.

Answers (1)

Answers (1)

Former Member
0 Kudos

.